wok view barnyard2/receipt @ rev 21339

updated gnuradio (3.7.10.1 -> 3.7.13.4)
author Hans-G?nter Theisgen
date Sat Apr 20 11:34:23 2019 +0100 (21 months ago)
parents f269baf1f70e
children 976ee80905da
line source
1 # SliTaz package receipt.
3 PACKAGE="barnyard2"
4 VERSION="2.1.13"
5 CATEGORY="system-tools"
6 SHORT_DESC="Output spool reader for Snort"
7 MAINTAINER="erjo@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 DEPENDS="libpcap"
15 BUILD_DEPENDS="libpcap-dev libtool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./autogen.sh &&
21 ./configure \
22 --sysconfdir=/etc/barnyard2 \
23 $CONFIGURE_ARGS &&
24 make &&
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 cp -a $install/* $fs
32 mkdir -p $fs/var/log/barnyard2
33 }
35 # Post install commands
36 post_install()
37 {
38 [ -z "$quiet" ] && echo
40 # addgroup snort if needed
41 if ! grep -q 'snort:' "$1/etc/group"; then
42 action 'Adding group Snort...'
43 chroot "$1/" /bin/addgroup snort
44 status
45 fi
47 # adduser snort if needed
48 if ! grep -q 'snort:' "$1/etc/passwd"; then
49 action 'Adding user Snort...'
50 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
51 -g "Snort Daemon user" -H -D -S -G snort snort
52 status
53 fi
55 chroot "$1/" chown snort.snort /var/log/barnyard2
56 }