wok-next annotate barnyard2/receipt @ rev 13024
aaphoto, joe, kmod, mplayer-svn, polkit-dev, polkit-pam, ruby-enterprise, wordpress, xfe-extras: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 11 16:33:12 2012 +0200 (2012-06-11) |
parents | |
children | 97d1a1a41ec6 |
rev | line source |
---|---|
erjo@11427 | 1 # SliTaz package receipt. |
erjo@11427 | 2 |
erjo@11427 | 3 PACKAGE="barnyard2" |
erjo@11427 | 4 VERSION="1.9" |
erjo@11427 | 5 CATEGORY="system" |
erjo@11427 | 6 SHORT_DESC="Output spool reader for Snort" |
erjo@11427 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@11427 | 8 WEB_SITE="http://www.securixlive.com/barnyard2/" |
erjo@11427 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@11427 | 10 WGET_URL="http://www.securixlive.com/download/barnyard2/$TARBALL" |
erjo@11427 | 11 |
erjo@11427 | 12 DEPENDS="libpcap" |
erjo@11427 | 13 BUILD_DEPENDS="libpcap-dev" |
erjo@11427 | 14 |
erjo@11427 | 15 # Rules to configure and make the package. |
erjo@11427 | 16 compile_rules() |
erjo@11427 | 17 { |
erjo@11427 | 18 cd $src |
erjo@11427 | 19 ./configure --sysconfdir=/etc/barnyard2 $CONFIGURE_ARGS && make && make install |
erjo@11427 | 20 } |
erjo@11427 | 21 |
erjo@11427 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11427 | 23 genpkg_rules() |
erjo@11427 | 24 { |
erjo@11427 | 25 |
erjo@11427 | 26 cp -a $install/* $fs |
erjo@11427 | 27 |
erjo@11427 | 28 mkdir -p /var/log/barnyard2 |
erjo@11427 | 29 } |
erjo@11427 | 30 |
erjo@11427 | 31 # Post install commands |
erjo@11427 | 32 post_install() |
erjo@11427 | 33 { |
erjo@11427 | 34 echo "Processing post install commands..." |
erjo@11427 | 35 |
erjo@11427 | 36 # addgroup snort if needed |
erjo@11427 | 37 if ! grep -q 'snort:' $1/etc/group; then |
erjo@11427 | 38 echo -n "Adding group Snort..." |
erjo@11427 | 39 chroot $1/ /bin/addgroup snort |
erjo@11427 | 40 status |
erjo@11427 | 41 fi |
erjo@11427 | 42 # adduser snort if needed |
erjo@11427 | 43 if ! grep -q 'snort:' $1/etc/passwd; then |
erjo@11427 | 44 echo -n "Adding user Snort..." |
erjo@11427 | 45 chroot $1/ /bin/adduser -s /bin/false -h /dev/null \ |
erjo@11427 | 46 -g "Snort Daemon user" -H -D -S -G snort snort |
erjo@11427 | 47 status |
erjo@11427 | 48 fi |
erjo@11427 | 49 |
erjo@11427 | 50 chroot $1/ chown snort.snort /var/log/barnyard2 |
erjo@11427 | 51 } |
erjo@11427 | 52 |