diff options
Diffstat (limited to 'main/snort')
-rw-r--r-- | main/snort/APKBUILD | 13 |
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 |