From 2da022a8f0642c8990ba999256fc8b9ccada29f2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 30 Jun 2010 15:55:28 +0000 Subject: main/opentracker: moved from testing fixes #190 --- main/opentracker/APKBUILD | 36 +++++++++++++++++++++++++++ main/opentracker/opentracker.initd | 38 +++++++++++++++++++++++++++++ main/opentracker/opentracker.pre-install | 5 ++++ testing/opentracker/APKBUILD | 36 --------------------------- testing/opentracker/opentracker.initd | 38 ----------------------------- testing/opentracker/opentracker.pre-install | 5 ---- 6 files changed, 79 insertions(+), 79 deletions(-) create mode 100644 main/opentracker/APKBUILD create mode 100644 main/opentracker/opentracker.initd create mode 100644 main/opentracker/opentracker.pre-install delete mode 100644 testing/opentracker/APKBUILD delete mode 100644 testing/opentracker/opentracker.initd delete mode 100644 testing/opentracker/opentracker.pre-install diff --git a/main/opentracker/APKBUILD b/main/opentracker/APKBUILD new file mode 100644 index 000000000..681d55263 --- /dev/null +++ b/main/opentracker/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: +# Maintainer: +pkgname=opentracker +pkgver=0_cvs20100625 +pkgrel=1 +pkgdesc="an open and free bittorrent tracker" +url="http://erdgeist.org/arts/software/opentracker/" +license="GPL" +depends= +makedepends="libowfat-dev" +install="$pkgname.pre-install" +subpackages= +source="http://dev.alpinelinux.org/opentracker/opentracker-$pkgver.tar.gz + opentracker.initd" + +_builddir="$srcdir"/$pkgname +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + install -d "$pkgdir"/usr/bin + make BINDIR="$pkgdir"/usr/bin install || return 1 + install -m644 -D opentracker.conf.sample \ + "$pkgdir"/etc/opentracker/opentracker.conf + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname +} + +md5sums="8d02a6f7a241c6b8c98e2dbde086cfcf opentracker-0_cvs20100625.tar.gz +1e1e687e78959833463ceb55101a3173 opentracker.initd" diff --git a/main/opentracker/opentracker.initd b/main/opentracker/opentracker.initd new file mode 100644 index 000000000..33d281778 --- /dev/null +++ b/main/opentracker/opentracker.initd @@ -0,0 +1,38 @@ +#!/sbin/runscript + +# Sample init.d file for alpine linux. + +name=opentracker +daemon=/usr/bin/$name +conf=${opentracker_conf:-/etc/opentracker/opentracker.conf} +pidfile=/var/run/opentracker.pid + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --make-pidfile \ + --pidfile ${pidfile} \ + --background \ + --stdout /dev/null \ + --stderr /dev/null \ + --exec ${daemon} \ + -- \ + -d /var/empty \ + -f $conf \ + -u ${opentracker_user:-opentracker} \ + ${opentracker_opts} + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet --pidfile ${pidfile} \ + --exec ${daemon} + eend $? +} + diff --git a/main/opentracker/opentracker.pre-install b/main/opentracker/opentracker.pre-install new file mode 100644 index 000000000..c6fc95ed1 --- /dev/null +++ b/main/opentracker/opentracker.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +adduser -D -S -H -h /var/empty -s /sbin/false opentracker 2>/dev/null +exit 0 + diff --git a/testing/opentracker/APKBUILD b/testing/opentracker/APKBUILD deleted file mode 100644 index 681d55263..000000000 --- a/testing/opentracker/APKBUILD +++ /dev/null @@ -1,36 +0,0 @@ -# Contributor: -# Maintainer: -pkgname=opentracker -pkgver=0_cvs20100625 -pkgrel=1 -pkgdesc="an open and free bittorrent tracker" -url="http://erdgeist.org/arts/software/opentracker/" -license="GPL" -depends= -makedepends="libowfat-dev" -install="$pkgname.pre-install" -subpackages= -source="http://dev.alpinelinux.org/opentracker/opentracker-$pkgver.tar.gz - opentracker.initd" - -_builddir="$srcdir"/$pkgname -prepare() { - cd "$_builddir" -} - -build() { - cd "$_builddir" - make || return 1 -} - -package() { - cd "$_builddir" - install -d "$pkgdir"/usr/bin - make BINDIR="$pkgdir"/usr/bin install || return 1 - install -m644 -D opentracker.conf.sample \ - "$pkgdir"/etc/opentracker/opentracker.conf - install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname -} - -md5sums="8d02a6f7a241c6b8c98e2dbde086cfcf opentracker-0_cvs20100625.tar.gz -1e1e687e78959833463ceb55101a3173 opentracker.initd" diff --git a/testing/opentracker/opentracker.initd b/testing/opentracker/opentracker.initd deleted file mode 100644 index 33d281778..000000000 --- a/testing/opentracker/opentracker.initd +++ /dev/null @@ -1,38 +0,0 @@ -#!/sbin/runscript - -# Sample init.d file for alpine linux. - -name=opentracker -daemon=/usr/bin/$name -conf=${opentracker_conf:-/etc/opentracker/opentracker.conf} -pidfile=/var/run/opentracker.pid - -depend() { - need net - after firewall -} - -start() { - ebegin "Starting ${name}" - start-stop-daemon --start --quiet \ - --make-pidfile \ - --pidfile ${pidfile} \ - --background \ - --stdout /dev/null \ - --stderr /dev/null \ - --exec ${daemon} \ - -- \ - -d /var/empty \ - -f $conf \ - -u ${opentracker_user:-opentracker} \ - ${opentracker_opts} - eend $? -} - -stop() { - ebegin "Stopping ${name}" - start-stop-daemon --stop --quiet --pidfile ${pidfile} \ - --exec ${daemon} - eend $? -} - diff --git a/testing/opentracker/opentracker.pre-install b/testing/opentracker/opentracker.pre-install deleted file mode 100644 index c6fc95ed1..000000000 --- a/testing/opentracker/opentracker.pre-install +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -adduser -D -S -H -h /var/empty -s /sbin/false opentracker 2>/dev/null -exit 0 - -- cgit v1.2.3