summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-10-22 22:16:01 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-10-22 22:16:01 -0300
commit8f1c821159a4d7342ffde140de880439bfd6ad8d (patch)
tree84e56d2bd41de3516201a17f7c879cf2fab1c95d
parent1be81d73436aacbd645c294f3999baffc19291f3 (diff)
social/opentracker-20111020-1
-rw-r--r--social/opentracker/PKGBUILD28
1 files changed, 16 insertions, 12 deletions
diff --git a/social/opentracker/PKGBUILD b/social/opentracker/PKGBUILD
index 61702974c..f328607e7 100644
--- a/social/opentracker/PKGBUILD
+++ b/social/opentracker/PKGBUILD
@@ -1,19 +1,20 @@
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgname=opentracker
-pkgver=20110831
+pkgver=20111020
pkgrel=1
-pkgdesc='An open and free bittorrent tracker'
+pkgdesc='An open and free bittorrent tracker (open mode)'
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')
+install=${pkgname}.install
source=("http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz"
'opentracker.rc.d'
'license.txt')
-md5sums=('ad992e0b7e8f84ddab391da5307e67c6'
+md5sums=('1dbace4895b4e1d290790f8ebacb2a2f'
'390bde9d010e79ab1309c02dcf9972e8'
'865211941e882c0aff5d36a22ac9efaa')
@@ -41,18 +42,21 @@ 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|' \
+
+ 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
+# See Makefile for available features
+ make PREFIX=/usr \
+ LIBOWFAT_HEADERS=/usr/includes \
+ LIBOWFAT_LIBRARY=/usr/lib \
+ FEATURES="-DWANT_SYSLOGS -DDEBUG_HTTPERROR"
+}
+
+package(){
+ cd "${srcdir}/${_cvsmod}"
+
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