summaryrefslogtreecommitdiff
path: root/community/inn
diff options
context:
space:
mode:
Diffstat (limited to 'community/inn')
-rw-r--r--community/inn/PKGBUILD18
1 files changed, 10 insertions, 8 deletions
diff --git a/community/inn/PKGBUILD b/community/inn/PKGBUILD
index dd354675d..adc62dab0 100644
--- a/community/inn/PKGBUILD
+++ b/community/inn/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 91652 2013-05-26 09:24:36Z bluewind $
+# $Id: PKGBUILD 92442 2013-06-05 11:48:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Edward Tjörnhammar <xhemi@cube2.se>
# Contributor: Edward Tjörnhammar <xhemi@cube2.se>
pkgname=inn
pkgver=2.5.3
-pkgrel=6
+pkgrel=7
pkgdesc="Complete open source Usenet system. De facto standard for handling news routing, news spool and serving the spool to customers."
url="http://www.isc.org/software/inn/"
arch=('i686' 'x86_64')
@@ -55,10 +55,16 @@ md5sums=('353fe95232828ddbc80debff86c240bc'
'050b7bffff3361c673a118739e42349e'
'960c800026ed6e03901cf0bafdfd53d8')
-build() {
+prepare() {
cd $srcdir/inn-$pkgver
+# sed -i 's|-export-dynamic gnu|-export-dynamic|' Makefile.global
+ [ $NOEXTRACT -eq 1 ] || patch -p3 < $srcdir/site.make.patch
+ sed -i 's|#define L_NOTICE.*|#define L_NOTICE LOG_NOTICE|' include/inn/options.h
+}
- [ $NOEXTRACT -eq 1 ] || PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
+build() {
+ cd $srcdir/inn-$pkgver
+ PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
--includedir=/usr/include/inn \
--sbindir=/usr/sbin \
--with-libtool \
@@ -78,7 +84,6 @@ build() {
--with-news-user=9 \
--with-news-group=13
# See https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_Database
-
test -f include/config.h
cat >>include/config.h <<EOF
#undef RUNASUSER
@@ -86,9 +91,6 @@ build() {
#undef RUNASGROUP
#define RUNASGROUP "news"
EOF
- sed -i 's|-export-dynamic gnu|-export-dynamic|' Makefile.global
- [ $NOEXTRACT -eq 1 ] || patch -p3 < $srcdir/site.make.patch
-
make
}