summaryrefslogtreecommitdiffstats
path: root/opentracker
diff options
context:
space:
mode:
Diffstat (limited to 'opentracker')
-rw-r--r--opentracker/PKGBUILD54
-rw-r--r--opentracker/license.txt2
-rw-r--r--opentracker/opentracker.rc.d37
3 files changed, 0 insertions, 93 deletions
diff --git a/opentracker/PKGBUILD b/opentracker/PKGBUILD
deleted file mode 100644
index 4bd6e5e..0000000
--- a/opentracker/PKGBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# Contributor: Pierre Schmitz <pierre@archlinux.de>
-
-pkgname=opentracker
-pkgver=20090828
-pkgrel=1
-pkgdesc='An open and free bittorrent tracker'
-arch=('i686' 'x86_64')
-url='http://erdgeist.org/arts/software/opentracker/'
-license=('custom' 'GPL')
-makedepends=('libowfat' 'cvs')
-depends=('bash' 'zlib')
-backup=('etc/opentracker/config')
-source=('opentracker.rc.d' 'license.txt')
-md5sums=('390bde9d010e79ab1309c02dcf9972e8'
- '865211941e882c0aff5d36a22ac9efaa')
-
-_cvsroot=':pserver:anoncvs@cvs.erdgeist.org:/home/cvsroot'
-_cvsmod='opentracker'
-
-build() {
- cd "$srcdir"
- msg 'Connecting to CVS server....'
- if [ -d $_cvsmod/CVS ]; then
- cd $_cvsmod
- cvs -z3 update -d
- else
- cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
- cd $_cvsmod
- fi
-
- msg 'CVS checkout done or server timeout'
- msg 'Starting make...'
-
- rm -rf "$srcdir/$_cvsmod-build"
- cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
- cd "$srcdir/$_cvsmod-build"
-
- sed -e 's#PREFIX?=..#PREFIX?=/usr#' \
- -e 's#LIBOWFAT_HEADERS=$(PREFIX)/libowfat#LIBOWFAT_HEADERS=$(PREFIX)/include#' \
- -e 's#LIBOWFAT_LIBRARY=$(PREFIX)/libowfat#LIBOWFAT_LIBRARY=$(PREFIX)/lib#' \
- -e 's/#FEATURES+=-DWANT_ACCESSLIST_WHITE/FEATURES+=-DWANT_ACCESSLIST_WHITE/' \
- -e 's/#FEATURES+=-DWANT_RESTRICT_STATS/FEATURES+=-DWANT_RESTRICT_STATS/' \
- -e 's/FEATURES+=-DWANT_FULLSCRAPE/#FEATURES+=-DWANT_FULLSCRAPE/' \
- -i Makefile
- sed -e 's|# tracker.rootdir /usr/local/etc/opentracker|tracker.rootdir /etc/opentracker|' \
- -e 's|# access.stats 192.168.0.23|access.stats 127.0.0.1|' \
- -i opentracker.conf.sample
-
- make || return 1
- install -D -m 755 opentracker $pkgdir/usr/bin/opentracker
- install -D -m 755 $srcdir/opentracker.rc.d $pkgdir/etc/rc.d/opentracker
- 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
-}
diff --git a/opentracker/license.txt b/opentracker/license.txt
deleted file mode 100644
index ff1bb40..0000000
--- a/opentracker/license.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-This software was written by Dirk Engling <erdgeist@erdgeist.org>
-It is considered beerware. Prost. Skol. Cheers or whatever.
diff --git a/opentracker/opentracker.rc.d b/opentracker/opentracker.rc.d
deleted file mode 100644
index b1aa34c..0000000
--- a/opentracker/opentracker.rc.d
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-# general config
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/bin/opentracker`
-
-case "$1" in
- start)
- stat_busy "Starting opentracker Daemon"
- [ -z "$PID" ] && su nobody -s /bin/sh -c "/usr/bin/opentracker -f /etc/opentracker/config&"
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon opentracker
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping opentracker Daemon"
- [ ! -z "$PID" ] && kill $PID &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon opentracker
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac