wok-6.x annotate barnyard2/receipt @ rev 19073
Fix: (Picozu the HTML5 online image editor.)
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Sat Apr 23 01:13:53 2016 -0300 (2016-04-23) |
parents | fca172c323cf |
children | 324c13268efe |
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 { |
al@18668 | 19 ./configure \ |
al@18668 | 20 --sysconfdir=/etc/barnyard2 \ |
al@18668 | 21 $CONFIGURE_ARGS && |
al@18668 | 22 make && make install |
erjo@11427 | 23 } |
erjo@11427 | 24 |
erjo@11427 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11427 | 26 genpkg_rules() |
erjo@11427 | 27 { |
erjo@11427 | 28 cp -a $install/* $fs |
al@18668 | 29 mkdir -p $fs/var/log/barnyard2 |
erjo@11427 | 30 } |
erjo@11427 | 31 |
erjo@11427 | 32 # Post install commands |
erjo@11427 | 33 post_install() |
erjo@11427 | 34 { |
al@18668 | 35 [ -z "$quiet" ] && echo |
erjo@11427 | 36 |
al@18668 | 37 # addgroup snort if needed |
al@18668 | 38 if ! grep -q 'snort:' "$1/etc/group"; then |
al@18668 | 39 action 'Adding group Snort...' |
al@18668 | 40 chroot "$1/" /bin/addgroup snort |
al@18668 | 41 status |
al@18668 | 42 fi |
erjo@11427 | 43 |
al@18668 | 44 # adduser snort if needed |
pascal@18730 | 45 if ! grep -q 'snort:' "$1/etc/passwd"; then |
al@18668 | 46 action 'Adding user Snort...' |
al@18668 | 47 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \ |
al@18668 | 48 -g "Snort Daemon user" -H -D -S -G snort snort |
al@18668 | 49 status |
al@18668 | 50 fi |
al@18668 | 51 |
al@18668 | 52 chroot "$1/" chown snort.snort /var/log/barnyard2 |
erjo@11427 | 53 } |