From 3ed565983048f1226dd3f258a3f0acaf04536dda Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 Jan 2013 01:12:11 -0800 Subject: Sun Jan 27 01:11:57 PST 2013 --- social/opentracker/PKGBUILD | 19 ++++++++----------- social/opentracker/opentracker.service | 11 +++++++++++ 2 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 social/opentracker/opentracker.service (limited to 'social') 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 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 -- cgit v1.2.3-54-g00ecf