wok annotate barnyard2/receipt @ rev 21115
libaio: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 19 18:51:13 2019 +0100 (2019-03-19) |
parents | f269baf1f70e |
children | 976ee80905da |
rev | line source |
---|---|
erjo@11427 | 1 # SliTaz package receipt. |
erjo@11427 | 2 |
erjo@11427 | 3 PACKAGE="barnyard2" |
Hans-G?nter@20739 | 4 VERSION="2.1.13" |
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" |
Hans-G?nter@20739 | 9 WEB_SITE="https://github.com/firnsy/barnyard2" |
Hans-G?nter@20739 | 10 |
erjo@11427 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20739 | 12 WGET_URL="https://github.com/firnsy/$PACKAGE/archive/v${VERSION/./-}/$TARBALL" |
erjo@11427 | 13 |
erjo@11427 | 14 DEPENDS="libpcap" |
Hans-G?nter@20741 | 15 BUILD_DEPENDS="libpcap-dev libtool" |
erjo@11427 | 16 |
erjo@11427 | 17 # Rules to configure and make the package. |
erjo@11427 | 18 compile_rules() |
erjo@11427 | 19 { |
Hans-G?nter@20740 | 20 ./autogen.sh && |
al@18668 | 21 ./configure \ |
al@18668 | 22 --sysconfdir=/etc/barnyard2 \ |
al@18668 | 23 $CONFIGURE_ARGS && |
Hans-G?nter@20739 | 24 make && |
Hans-G?nter@20739 | 25 make install |
erjo@11427 | 26 } |
erjo@11427 | 27 |
erjo@11427 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11427 | 29 genpkg_rules() |
erjo@11427 | 30 { |
erjo@11427 | 31 cp -a $install/* $fs |
al@18668 | 32 mkdir -p $fs/var/log/barnyard2 |
erjo@11427 | 33 } |
erjo@11427 | 34 |
erjo@11427 | 35 # Post install commands |
erjo@11427 | 36 post_install() |
erjo@11427 | 37 { |
al@18668 | 38 [ -z "$quiet" ] && echo |
erjo@11427 | 39 |
al@18668 | 40 # addgroup snort if needed |
al@18668 | 41 if ! grep -q 'snort:' "$1/etc/group"; then |
al@18668 | 42 action 'Adding group Snort...' |
al@18668 | 43 chroot "$1/" /bin/addgroup snort |
al@18668 | 44 status |
al@18668 | 45 fi |
erjo@11427 | 46 |
al@18668 | 47 # adduser snort if needed |
pascal@18730 | 48 if ! grep -q 'snort:' "$1/etc/passwd"; then |
al@18668 | 49 action 'Adding user Snort...' |
al@18668 | 50 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \ |
al@18668 | 51 -g "Snort Daemon user" -H -D -S -G snort snort |
al@18668 | 52 status |
al@18668 | 53 fi |
al@18668 | 54 |
al@18668 | 55 chroot "$1/" chown snort.snort /var/log/barnyard2 |
erjo@11427 | 56 } |