wok-next view barnyard2/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | 835b3b8ce6ac |
children | 4f1d38207ecf |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="barnyard2"
4 VERSION="1.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Output spool reader for Snort"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/firnsy/barnyard2"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.securixlive.com/download/barnyard2/$TARBALL"
14 BUILD_DEPENDS="libpcap-dev"
16 compile_rules() {
17 ./configure \
18 --sysconfdir=/etc/barnyard2 \
19 $CONFIGURE_ARGS &&
20 fix libtool &&
21 make &&
22 make install || return 1
24 mkdir -p $install/var/log/barnyard2/
25 }
27 genpkg_rules() {
28 copy @std
29 DEPENDS="libpcap"
30 }
32 post_install() {
33 # addgroup snort if needed
34 if ! grep -q 'snort:' "$1/etc/group"; then
35 chroot "$1/" /bin/addgroup snort
36 fi
38 # adduser snort if needed
39 if ! grep -q 'snort:' "$1/etc/passwd"; then
40 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
41 -g "Snort Daemon user" -H -D -S -G snort snort
42 fi
44 chroot "$1/" chown snort.snort /var/log/barnyard2
45 }