wok view barnyard2/receipt @ rev 19643

linld: fix cpuhaslm (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 21 12:01:33 2017 +0100 (2017-01-21)
parents fca172c323cf
children 324c13268efe
line source
1 # SliTaz package receipt.
3 PACKAGE="barnyard2"
4 VERSION="1.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Output spool reader for Snort"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.securixlive.com/barnyard2/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://www.securixlive.com/download/barnyard2/$TARBALL"
13 DEPENDS="libpcap"
14 BUILD_DEPENDS="libpcap-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure \
20 --sysconfdir=/etc/barnyard2 \
21 $CONFIGURE_ARGS &&
22 make && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $install/* $fs
29 mkdir -p $fs/var/log/barnyard2
30 }
32 # Post install commands
33 post_install()
34 {
35 [ -z "$quiet" ] && echo
37 # addgroup snort if needed
38 if ! grep -q 'snort:' "$1/etc/group"; then
39 action 'Adding group Snort...'
40 chroot "$1/" /bin/addgroup snort
41 status
42 fi
44 # adduser snort if needed
45 if ! grep -q 'snort:' "$1/etc/passwd"; then
46 action 'Adding user Snort...'
47 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
48 -g "Snort Daemon user" -H -D -S -G snort snort
49 status
50 fi
52 chroot "$1/" chown snort.snort /var/log/barnyard2
53 }