wok-6.x annotate barnyard2/receipt @ rev 17652
Up: tcl 8.6.3
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Feb 14 22:32:45 2015 +0000 (2015-02-14) |
parents | 97d1a1a41ec6 |
children | fca172c323cf |
rev | line source |
---|---|
erjo@11427 | 1 # SliTaz package receipt. |
erjo@11427 | 2 |
erjo@11427 | 3 PACKAGE="barnyard2" |
erjo@11427 | 4 VERSION="1.9" |
pascal@13026 | 5 CATEGORY="system-tools" |
erjo@11427 | 6 SHORT_DESC="Output spool reader for Snort" |
erjo@11427 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
erjo@11427 | 9 WEB_SITE="http://www.securixlive.com/barnyard2/" |
erjo@11427 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@11427 | 11 WGET_URL="http://www.securixlive.com/download/barnyard2/$TARBALL" |
erjo@11427 | 12 |
erjo@11427 | 13 DEPENDS="libpcap" |
erjo@11427 | 14 BUILD_DEPENDS="libpcap-dev" |
erjo@11427 | 15 |
erjo@11427 | 16 # Rules to configure and make the package. |
erjo@11427 | 17 compile_rules() |
erjo@11427 | 18 { |
erjo@11427 | 19 cd $src |
erjo@11427 | 20 ./configure --sysconfdir=/etc/barnyard2 $CONFIGURE_ARGS && make && make install |
erjo@11427 | 21 } |
erjo@11427 | 22 |
erjo@11427 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11427 | 24 genpkg_rules() |
erjo@11427 | 25 { |
erjo@11427 | 26 |
erjo@11427 | 27 cp -a $install/* $fs |
erjo@11427 | 28 |
erjo@11427 | 29 mkdir -p /var/log/barnyard2 |
erjo@11427 | 30 } |
erjo@11427 | 31 |
erjo@11427 | 32 # Post install commands |
erjo@11427 | 33 post_install() |
erjo@11427 | 34 { |
erjo@11427 | 35 echo "Processing post install commands..." |
erjo@11427 | 36 |
erjo@11427 | 37 # addgroup snort if needed |
erjo@11427 | 38 if ! grep -q 'snort:' $1/etc/group; then |
erjo@11427 | 39 echo -n "Adding group Snort..." |
erjo@11427 | 40 chroot $1/ /bin/addgroup snort |
erjo@11427 | 41 status |
erjo@11427 | 42 fi |
erjo@11427 | 43 # adduser snort if needed |
erjo@11427 | 44 if ! grep -q 'snort:' $1/etc/passwd; then |
erjo@11427 | 45 echo -n "Adding user Snort..." |
erjo@11427 | 46 chroot $1/ /bin/adduser -s /bin/false -h /dev/null \ |
erjo@11427 | 47 -g "Snort Daemon user" -H -D -S -G snort snort |
erjo@11427 | 48 status |
erjo@11427 | 49 fi |
erjo@11427 | 50 |
erjo@11427 | 51 chroot $1/ chown snort.snort /var/log/barnyard2 |
erjo@11427 | 52 } |
erjo@11427 | 53 |