wok view barnyard2/receipt @ rev 17005

Add pulseaudio
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 12 13:55:28 2014 +0200 (2014-08-12)
parents 97d1a1a41ec6
children fca172c323cf
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 cd $src
20 ./configure --sysconfdir=/etc/barnyard2 $CONFIGURE_ARGS && make && make install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
27 cp -a $install/* $fs
29 mkdir -p /var/log/barnyard2
30 }
32 # Post install commands
33 post_install()
34 {
35 echo "Processing post install commands..."
37 # addgroup snort if needed
38 if ! grep -q 'snort:' $1/etc/group; then
39 echo -n "Adding group Snort..."
40 chroot $1/ /bin/addgroup snort
41 status
42 fi
43 # adduser snort if needed
44 if ! grep -q 'snort:' $1/etc/passwd; then
45 echo -n "Adding user Snort..."
46 chroot $1/ /bin/adduser -s /bin/false -h /dev/null \
47 -g "Snort Daemon user" -H -D -S -G snort snort
48 status
49 fi
51 chroot $1/ chown snort.snort /var/log/barnyard2
52 }