diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-01 10:18:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-01 10:18:13 +0000 |
commit | 93dfbba194f96215a717cb2ff4fc76156165c404 (patch) | |
tree | 9ef7a70b7f7952463042ac79ccb46e5cc1669ea3 /main/snort/APKBUILD | |
parent | a66e332dd08f66ad6c76b8c6d22dbbba7ca31f63 (diff) | |
download | aports-93dfbba194f96215a717cb2ff4fc76156165c404.tar.bz2 aports-93dfbba194f96215a717cb2ff4fc76156165c404.tar.xz |
main/snort: build fix for automake-1.13
Diffstat (limited to 'main/snort/APKBUILD')
-rw-r--r-- | main/snort/APKBUILD | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/main/snort/APKBUILD b/main/snort/APKBUILD index 0e220b15f4..d612b0b06e 100644 --- a/main/snort/APKBUILD +++ b/main/snort/APKBUILD @@ -14,6 +14,7 @@ makedepends="pcre-dev libpcap-dev libnet-dev libdnet-dev daq-dev install="$pkgname.pre-install" subpackages="$pkgname-doc $pkgname-dev" source="http://www.snort.org/dl/snort-current/snort-$pkgver.tar.gz + automake.patch snort.initd snort.confd " @@ -21,9 +22,13 @@ pkgusers="snort" pkggroups="snort" _builddir="$srcdir/$pkgname-$pkgver" - -build() { +prepare() { cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done # fix parallel builds sed -i -e 's/^all-local:.*/all-local: $(LTLIBRARIES)/' \ @@ -32,8 +37,13 @@ build() { sed -i -e 's|/usr/local|/usr|' etc/snort.conf || return 1 sed -i -e 's|\.\./|/var/lib/snort/|' etc/snort.conf || return 1 - aclocal -I m4 && autoconf && automake --add-missing && libtoolize || return 1 + libtoolize --force && aclocal -I m4 && autoconf \ + && automake --add-missing || return 1 +} + +build() { + cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ @@ -66,5 +76,6 @@ package() { } md5sums="e79ee6b4fbb32edc5dfed2d7dfcc6813 snort-2.9.4.tar.gz +6a8b6d9c00971d419f0c1ea036c76ea4 automake.patch b65d10cce3e79f38aa6fb5e0aa494144 snort.initd 446f8d2b3435b8a6be738da978670605 snort.confd" |