summaryrefslogtreecommitdiff
path: root/social/opentracker
diff options
context:
space:
mode:
Diffstat (limited to 'social/opentracker')
-rw-r--r--social/opentracker/PKGBUILD19
-rw-r--r--social/opentracker/opentracker.service11
2 files changed, 19 insertions, 11 deletions
diff --git a/social/opentracker/PKGBUILD b/social/opentracker/PKGBUILD
index 2826a21ef..5ecf00b3a 100644
--- a/social/opentracker/PKGBUILD
+++ b/social/opentracker/PKGBUILD
@@ -2,21 +2,18 @@
# Maintainer: Jonas Heinrich <onny@project-insanity.org>
pkgname=opentracker
-pkgver=20120911
-pkgrel=2
+pkgver=20130126
+pkgrel=1
pkgdesc='An open and free bittorrent tracker (open mode)'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://erdgeist.org/arts/software/opentracker/'
license=('custom:Beer' 'GPL')
makedepends=('libowfat' 'cvs')
depends=('bash' 'zlib')
backup=('etc/opentracker/config')
-source=('opentracker.rc'
+source=("http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz"{,.sig}
'opentracker.service'
'license.txt')
-md5sums=('390bde9d010e79ab1309c02dcf9972e8'
-'3c638b71d5ecb65fb7964796975b2078'
-'865211941e882c0aff5d36a22ac9efaa')
_cvsroot=':pserver:anoncvs@cvs.erdgeist.org:/home/cvsroot'
_cvsmod='opentracker'
@@ -60,11 +57,11 @@ package(){
install -D -m 644 opentracker.conf.sample $pkgdir/etc/opentracker/config
install -D -m 644 $srcdir/license.txt $pkgdir/usr/share/licenses/opentracker/license.txt
- # create /etc/rc.d/opentracker
- mkdir -p "$pkgdir/etc/rc.d/"
- install -m 755 "$srcdir/opentracker.rc" "$pkgdir/etc/rc.d/opentracker"
-
# Create opentracker service
mkdir -p "$pkgdir/usr/lib/systemd/system/"
install -m 644 "$srcdir/opentracker.service" "$pkgdir/usr/lib/systemd/system/"
}
+md5sums=('702a05fc2c205c6367a7e95334d8e152'
+ '3c80785c33c97dffe6f119417865a309'
+ '3c638b71d5ecb65fb7964796975b2078'
+ '865211941e882c0aff5d36a22ac9efaa')
diff --git a/social/opentracker/opentracker.service b/social/opentracker/opentracker.service
new file mode 100644
index 000000000..5f1b887ea
--- /dev/null
+++ b/social/opentracker/opentracker.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenTracker Daemon
+After=network.target
+
+[Service]
+User=nobody
+ExecStart=/usr/bin/opentracker -f /etc/opentracker/config
+ExecStop=/bin/kill -INT $MAINPID
+
+[Install]
+WantedBy=multi-user.target