wok-next view barnyard2/receipt @ rev 11727
Move from undigest: python-antlr python-caldav python-gdata python-vatnumber python-vobject python-webdav python-xlwt python-zsi
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 21 09:18:42 2012 +0100 (2012-02-21) |
parents | |
children | 97d1a1a41ec6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="barnyard2"
4 VERSION="1.9"
5 CATEGORY="system"
6 SHORT_DESC="Output spool reader for Snort"
7 MAINTAINER="erjo@slitaz.org"
8 WEB_SITE="http://www.securixlive.com/barnyard2/"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WGET_URL="http://www.securixlive.com/download/barnyard2/$TARBALL"
12 DEPENDS="libpcap"
13 BUILD_DEPENDS="libpcap-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --sysconfdir=/etc/barnyard2 $CONFIGURE_ARGS && make && make install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
26 cp -a $install/* $fs
28 mkdir -p /var/log/barnyard2
29 }
31 # Post install commands
32 post_install()
33 {
34 echo "Processing post install commands..."
36 # addgroup snort if needed
37 if ! grep -q 'snort:' $1/etc/group; then
38 echo -n "Adding group Snort..."
39 chroot $1/ /bin/addgroup snort
40 status
41 fi
42 # adduser snort if needed
43 if ! grep -q 'snort:' $1/etc/passwd; then
44 echo -n "Adding user Snort..."
45 chroot $1/ /bin/adduser -s /bin/false -h /dev/null \
46 -g "Snort Daemon user" -H -D -S -G snort snort
47 status
48 fi
50 chroot $1/ chown snort.snort /var/log/barnyard2
51 }