wok-next view barnyard2/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | ab28311c1bec |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="barnyard2"
4 VERSION="2.1.13"
5 CATEGORY="system-tools"
6 SHORT_DESC="Output spool reader for Snort"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/firnsy/barnyard2"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/firnsy/$PACKAGE/archive/v${VERSION/./-}/$TARBALL"
14 BUILD_DEPENDS="autoconf automake libpcap-dev"
16 compile_rules()
17 {
18 autoreconf -fvi &&
19 ./configure \
20 --sysconfdir=/etc/barnyard2 \
21 $CONFIGURE_ARGS &&
22 fix libtool &&
23 make &&
24 make install || return 1
26 mkdir -p $install/var/log/barnyard2/
27 }
29 genpkg_rules()
30 {
31 copy @std
32 DEPENDS="libpcap"
33 }
35 post_install()
36 {
37 # addgroup snort if needed
38 if ! grep -q 'snort:' "$1/etc/group"
39 then
40 chroot "$1/" /bin/addgroup snort
41 fi
43 # adduser snort if needed
44 if ! grep -q 'snort:' "$1/etc/passwd"
45 then
46 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
47 -g "Snort Daemon user" -H -D -S -G snort snort
48 fi
50 chroot "$1/" chown snort.snort /var/log/barnyard2
51 }