wok view barnyard2/receipt @ rev 20535
Add util-linux-losetup (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 26 09:47:18 2018 +0100 (2018-11-26) |
parents | 9e01bc6321ea |
children | da6e0e759943 |
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 ./configure \
20 --sysconfdir=/etc/barnyard2 \
21 $CONFIGURE_ARGS &&
22 make && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $install/* $fs
29 mkdir -p $fs/var/log/barnyard2
30 }
32 # Post install commands
33 post_install()
34 {
35 [ -z "$quiet" ] && echo
37 # addgroup snort if needed
38 if ! grep -q 'snort:' "$1/etc/group"; then
39 action 'Adding group Snort...'
40 chroot "$1/" /bin/addgroup snort
41 status
42 fi
44 # adduser snort if needed
45 if ! grep -q 'snort:' "$1/etc/passwd"; then
46 action 'Adding user Snort...'
47 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
48 -g "Snort Daemon user" -H -D -S -G snort snort
49 status
50 fi
52 chroot "$1/" chown snort.snort /var/log/barnyard2
53 }
55 ## -----------------------------------------------------------------------
56 ## Revision: 03/Aug/2017 - SliTaz DevTeam.
57 ## URL: "http://www.securixlive.com/barnyard2/" is OFF.
58 ## This looks good? => https://firnsy.com/projects | https://github.com/firnsy/barnyard2
59 ## !! Please, remove this after you update. Thank you.