aboutsummaryrefslogtreecommitdiffstats
path: root/main/snort
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-07-20 11:33:41 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-07-20 11:33:41 +0000
commitf1ed814b290153779a7a6df2716beab9d73dfedf (patch)
treeb6c10ff17a28250a13ae7d735b573e344c0320ca /main/snort
parentf3dbd65f4442183756eb1e7701ffa2cda2ae8aee (diff)
downloadaports-f1ed814b290153779a7a6df2716beab9d73dfedf.tar.bz2
aports-f1ed814b290153779a7a6df2716beab9d73dfedf.tar.xz
main/snort: setup package in order to accommodate snort rules in /var/lib/snort
Diffstat (limited to 'main/snort')
-rw-r--r--main/snort/APKBUILD13
1 files changed, 12 insertions, 1 deletions
diff --git a/main/snort/APKBUILD b/main/snort/APKBUILD
index f1df701741..05d577b146 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=2
+pkgrel=3
pkgdesc="An open source network intrusion prevention and detection system"
url="http://www.snort.org/"
arch="all"
@@ -27,6 +27,8 @@ build() {
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
+ sed -i -e 's|\.\./|/var/lib/snort/|' etc/snort.conf || return 1
+
aclocal -I m4 && autoconf && automake --add-missing && libtoolize || return 1
./configure --prefix=/usr \
@@ -48,6 +50,15 @@ package() {
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
+ mkdir -p "$pkgdir"/var/lib/snort/rules
+ mkdir -p "$pkgdir"/var/log/snort
+ for file in classification.config reference.config threshold.conf \
+ unicode.map
+ do
+ ln -s /var/lib/snort/etc/$file "$pkgdir"/etc/snort/$file
+ done
+ touch "$pkgdir"/var/lib/snort/rules/white_list.rules
+ touch "$pkgdir"/var/lib/snort/rules/black_list.rules
}
md5sums="e128f5d5d14dad335dc0c549c7fe2e98 snort-2.9.3.tar.gz