diff options
author | root <root@rshg054.dnsready.net> | 2011-10-23 23:14:59 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-23 23:14:59 +0000 |
commit | c0bc46632845dfc241d3290d8d3193287eaeb02e (patch) | |
tree | 15e467e4985d599a312014b62fd555cbc4cdffc7 /social/opentracker | |
parent | 789905b5e6b809a564832ba85b842988405e7375 (diff) |
Sun Oct 23 23:14:58 UTC 2011
Diffstat (limited to 'social/opentracker')
-rw-r--r-- | social/opentracker/PKGBUILD | 28 |
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 |