Package Details: opentracker 2016.10.02-4

Git Clone URL: https://aur.archlinux.org/opentracker.git (read-only)
Package Base: opentracker
Description: A free and open torrent tracker
Upstream URL: http://erdgeist.org/arts/software/opentracker/
Licenses: beerware
Submitter: Strit
Maintainer: Strit
Last Packager: Strit
Votes: 3
Popularity: 0.001920
First Submitted: 2015-12-21 17:54
Last Updated: 2016-12-15 11:28

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

moonman commented on 2016-12-23 06:40

Cheers

Strit commented on 2016-12-22 10:42

Thank you, I updated the pkgbuild and included the .service file as well.

moonman commented on 2016-12-14 12:57

---- PKGBUILD.old 2016-12-15 02:26:38.797595922 -0700
+++ PKGBUILD 2016-12-14 06:57:50.905582699 -0700
@@ -1,15 +1,20 @@
# Maintainer: Dan Johansen <strit83 at gmail dot com>
+# Contributor: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>

pkgname=opentracker
pkgver=2016.10.02
-pkgrel=2
+pkgrel=3
pkgdesc="A free and open torrent tracker"
-arch=('x86_64' 'i686' 'armv7h' 'armv6h' 'aarch64')
+arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="http://erdgeist.org/arts/software/opentracker/"
license=('Beerware')
+backup=('etc/opentracker/opentracker.conf')
makedepends=('git' 'cvs')
-source=('git://erdgeist.org/opentracker')
-md5sums=('SKIP')
+install="$pkgname.install"
+source=('git://erdgeist.org/opentracker'
+ "opentracker.service")
+md5sums=('SKIP'
+ 'a50d9ccbcf820cff15d082e9bc447bf1')

pkgver() {
cd "$srcdir/opentracker"
@@ -27,10 +32,7 @@
}

package() {
- install -dm755 $pkgdir/opt/$pkgname/
- install -d $pkgdir/usr/bin/
- install -m755 $srcdir/$pkgname/$pkgname $pkgdir/opt/$pkgname/$pkgname
- install -m755 $srcdir/$pkgname/$pkgname.conf.sample $pkgdir/opt/$pkgname/$pkgname.conf.sample
- ln -s "/opt/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
-
+ install -Dm755 $srcdir/$pkgname/$pkgname $pkgdir/usr/bin/$pkgname
+ install -Dm755 $srcdir/$pkgname/$pkgname.conf.sample $pkgdir/etc/$pkgname/$pkgname.conf
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}

All files available at:
https://github.com/moonman/MyPKGBUILDs/tree/master/opentracker

You will probably want to add an .install file that create a user and run opentracker as that user for security. But this will do for now :) Thanks for creating the package in the first place. Cheers.

EDIT: added install file after all.

Strit commented on 2016-12-14 07:46

@moonman
Good catch with the config file. Totally forgot about it.
About the /opt and /usr/bin placement, it was more of a "i don't really know where else to put it" issue.
And yes, I should get around to actually doing a .service file for it.

moonman commented on 2016-12-13 09:57

Just some friendly pointers:

No need to install to /opt and link to /usr/bin. /opt is for binary-only distributed file for the most part.
Where is the .service in the package?
Where is sample config file in the package?
https://erdgeist.org/gitweb/opentracker/tree/opentracker.conf.sample

There is no armv7l architecture (as far as precompiled binaries go) for ArchLinuxARM, there are arm, armv6h, armv7h, aarch64. h at the end stand for hardfloat and is not an architecture suffix.

Strit commented on 2016-10-05 10:37

@Mic92
Fixed. Thanks. :)

Mic92 commented on 2016-10-03 16:25

You put the wrong license here. opentracker has the beerware license.

Strit commented on 2016-07-29 08:58

@Calimero
Thanks. Updated it, so it works from a clean folder.
I guess the git and cvs runtime dependencies are not needed. The software does not need anything to run, I think.

Calimero commented on 2016-07-27 21:07

It probably builds when you have the PKGBUILD in a git repository (namely AUR's), but I used only the PKGBUILD in an empty directory. (what basically everyone does, you could reproduce)
==> Starting pkgver()...
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
==> ERROR: pkgver is not allowed to be empty.

The pkgver() functions starts with a cd command, which shouldn't be commented.
But more importantly, please have a look at my earlier paste: so that this pkgver function will work, I moved the git repository to the source=() array.
Edit: oops, git and cvs should be makedepends, too.

Strit commented on 2016-07-25 08:41

@Calimero
This package builds fine for me.
Now I can see why it shouldn't have conflicts opentracker, but it should state that it provides it, in case another package comes along that also provides it.

Can you elaborate on how this packages failed to build for you?

Calimero commented on 2016-07-21 15:45

I noticed that the build was broken and 'opentracker' was providing 'opentracker' (not very useful), here's a fixed version of the PKGBUILD: http://pastie.org/pastes/10914421/text