diff options
Diffstat (limited to 'main/snort/APKBUILD')
-rw-r--r-- | main/snort/APKBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/main/snort/APKBUILD b/main/snort/APKBUILD index 05d577b146..b5335451ea 100644 --- a/main/snort/APKBUILD +++ b/main/snort/APKBUILD @@ -1,8 +1,9 @@ # Contributor: Michael Mason <ms13sp@gmail.com> +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=snort pkgver=2.9.3 -pkgrel=3 +pkgrel=4 pkgdesc="An open source network intrusion prevention and detection system" url="http://www.snort.org/" arch="all" @@ -15,7 +16,9 @@ subpackages="$pkgname-doc $pkgname-dev" source="http://www.snort.org/dl/snort-current/snort-$pkgver.tar.gz snort.initd snort.confd - " + " +pkgusers="snort" +pkggroups="snort" _builddir="$srcdir/$pkgname-$pkgver" @@ -49,9 +52,10 @@ 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 + install -D -m 644 rpm/snort.logrotate "$pkgdir"/etc/logrotate.d/snort mkdir -p "$pkgdir"/usr/lib/snort_dynamicrules mkdir -p "$pkgdir"/var/lib/snort/rules - mkdir -p "$pkgdir"/var/log/snort + mkdir -m 770 -p "$pkgdir"/var/log/snort && chown snort.snort "$pkgdir"/var/log/snort for file in classification.config reference.config threshold.conf \ unicode.map do @@ -62,5 +66,5 @@ package() { } md5sums="e128f5d5d14dad335dc0c549c7fe2e98 snort-2.9.3.tar.gz -ffda56f7c20f5cea1c37c971e0f1d6c9 snort.initd +b65d10cce3e79f38aa6fb5e0aa494144 snort.initd 446f8d2b3435b8a6be738da978670605 snort.confd" |