summaryrefslogtreecommitdiffstats
path: root/main/snort
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-07-20 09:13:30 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-07-20 09:13:30 +0000
commitf3dbd65f4442183756eb1e7701ffa2cda2ae8aee (patch)
treead73ae23ca7b1f737866306dec3071eec213f352 /main/snort
parent119f1b40d38e640b559d3d5e7851b48161da9615 (diff)
downloadaports-f3dbd65f4442183756eb1e7701ffa2cda2ae8aee.tar.bz2
aports-f3dbd65f4442183756eb1e7701ffa2cda2ae8aee.tar.xz
main/snort: fix paths in default config file
Diffstat (limited to 'main/snort')
-rw-r--r--main/snort/APKBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/snort/APKBUILD b/main/snort/APKBUILD
index 2e59cd3f9..f1df70174 100644
--- a/main/snort/APKBUILD
+++ b/main/snort/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snort
pkgver=2.9.3
-pkgrel=1
+pkgrel=2
pkgdesc="An open source network intrusion prevention and detection system"
url="http://www.snort.org/"
arch="all"
@@ -25,6 +25,8 @@ build() {
# fix parallel builds
sed -i -e 's/^all-local:.*/all-local: $(LTLIBRARIES)/' \
src/dynamic-preprocessors/*/Makefile.am || return 1
+ # correct paths in default config file
+ sed -i -e 's|/usr/local|/usr|' etc/snort.conf || return 1
aclocal -I m4 && autoconf && automake --add-missing && libtoolize || return 1
./configure --prefix=/usr \
@@ -45,6 +47,7 @@ package() {
install -D -m 755 ../snort.initd "$pkgdir"/etc/init.d/snort
install -D -m 644 ../snort.confd "$pkgdir"/etc/conf.d/snort
install -D -m 644 etc/snort.conf "$pkgdir"/etc/snort/snort.conf
+ mkdir -p "$pkgdir"/usr/lib/snort_dynamicrules
}
md5sums="e128f5d5d14dad335dc0c549c7fe2e98 snort-2.9.3.tar.gz