summaryrefslogtreecommitdiff
path: root/social/opentracker/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-09-06 02:06:11 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-09-06 02:06:11 -0300
commit9088da5f2dc47ac8fb7b6a7add6bd6d970e97cfd (patch)
tree5f1e1c366fd1cac4ed63e2f42ecb1d07bfd1a355 /social/opentracker/PKGBUILD
parentc9c71d29263fd54eb93d4382781becbd865dffe4 (diff)
downloadabslibre-9088da5f2dc47ac8fb7b6a7add6bd6d970e97cfd.tar.gz
abslibre-9088da5f2dc47ac8fb7b6a7add6bd6d970e97cfd.tar.bz2
abslibre-9088da5f2dc47ac8fb7b6a7add6bd6d970e97cfd.zip
social/opentracker-20110831-1
Diffstat (limited to 'social/opentracker/PKGBUILD')
-rw-r--r--social/opentracker/PKGBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/social/opentracker/PKGBUILD b/social/opentracker/PKGBUILD
new file mode 100644
index 000000000..61702974c
--- /dev/null
+++ b/social/opentracker/PKGBUILD
@@ -0,0 +1,60 @@
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgname=opentracker
+pkgver=20110831
+pkgrel=1
+pkgdesc='An open and free bittorrent tracker'
+arch=('i686' 'x86_64')
+url='http://erdgeist.org/arts/software/opentracker/'
+license=('custom:Beer' 'GPL')
+makedepends=('libowfat' 'cvs')
+depends=('bash' 'zlib')
+backup=('etc/opentracker/config')
+source=("http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz"
+ 'opentracker.rc.d'
+ 'license.txt')
+md5sums=('ad992e0b7e8f84ddab391da5307e67c6'
+ '390bde9d010e79ab1309c02dcf9972e8'
+ '865211941e882c0aff5d36a22ac9efaa')
+
+_cvsroot=':pserver:anoncvs@cvs.erdgeist.org:/home/cvsroot'
+_cvsmod='opentracker'
+
+mksource() {
+ pushd "${srcdir}"
+ msg 'Connecting to CVS server....'
+ if [ -d ${_cvsmod}/CVS ]; then
+ cd ${_cvsmod}
+ cvs -z3 update -d
+ else
+ cvs -z3 -d ${_cvsroot} co -f ${_cvsmod}
+ cd ${_cvsmod}
+ fi
+
+ msg 'CVS checkout done or server timeout'
+ popd
+
+ tar czf ${pkgname}-${pkgver}.tar.gz ${_cvsmod}/
+}
+
+build() {
+ cd "${srcdir}/${_cvsmod}"
+ msg 'Starting make...'
+
+ 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
+}