aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-11-02 10:50:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-02 10:54:33 +0000
commit25d0ce9a2946277dd4309e7e716ade84e1cf67ee (patch)
treed187c9b183fc247e25d7c98f806e8b0abfc778b6 /main
parent723afdb7d06e9c27519f8917b52c35a03189b183 (diff)
downloadaports-25d0ce9a2946277dd4309e7e716ade84e1cf67ee.tar.bz2
aports-25d0ce9a2946277dd4309e7e716ade84e1cf67ee.tar.xz
main/snort: upgrade to 2.8.5.1 and fix for parallel builds
Diffstat (limited to 'main')
-rw-r--r--main/snort/APKBUILD23
1 files changed, 16 insertions, 7 deletions
diff --git a/main/snort/APKBUILD b/main/snort/APKBUILD
index 8b42689e27..15ac9717ac 100644
--- a/main/snort/APKBUILD
+++ b/main/snort/APKBUILD
@@ -1,16 +1,16 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
-# Maintainter: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snort
-pkgver=2.8.4
-pkgrel=1
+pkgver=2.8.5.1
+pkgrel=0
pkgdesc="An open source network intrusion prevention and detection system"
url="http://www.snort.org/"
license="GPL"
depends=
-makedepends="pcre-dev libpcap-dev libnet-dev"
+makedepends="pcre-dev libpcap-dev libnet-dev autoconf automake libtool bison flex"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dev"
-source="http://www.snort.org/dl/$pkgname-$pkgver.tar.gz
+source="http://dl.snort.org/snort-current/snort-$pkgver.tar.gz
snort.initd
snort.confd
"
@@ -18,19 +18,28 @@ source="http://www.snort.org/dl/$pkgname-$pkgver.tar.gz
build() {
cd "$srcdir/$pkgname-$pkgver"
+ # fix parallel builds
+ sed -i -e 's/^all-local:.*/all-local: $(LTLIBRARIES)/' \
+ src/dynamic-preprocessors/*/Makefile.am || return 1
+ aclocal -I m4 && autoconf && automake --add-missing && libtoolize || return 1
+
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-ipv6 \
--enable-gre
- make -j1 || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR="$pkgdir" install
install -D -m 755 ../snort.initd "$pkgdir"/etc/init.d/snort
install -D -m 644 ../snort.confd "$pkgdir"/etc/conf.d/snort
}
-md5sums="193179da8db8aac5ee6b0a751ce7b76d snort-2.8.4.tar.gz
+md5sums="b1abf3a9fa3486720c9a2b5eff920417 snort-2.8.5.1.tar.gz
ffda56f7c20f5cea1c37c971e0f1d6c9 snort.initd
446f8d2b3435b8a6be738da978670605 snort.confd"