wok view barnyard2/receipt @ rev 24033

updated dialog-dev (1.3_20190211 -> 1.3_20210324)
author Hans-G?nter Theisgen
date Wed Apr 07 15:56:56 2021 +0100 (2021-04-07)
parents 425adfcc0a16
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="barnyard2"
4 VERSION="2.1.13"
5 CATEGORY="system-tools"
6 SHORT_DESC="Output spool reader for Snort"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/firnsy/barnyard2"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/firnsy/$PACKAGE/archive/v${VERSION/./-}/$TARBALL"
14 DEPENDS="libpcap"
15 BUILD_DEPENDS="libpcap-dev libtool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|typedef int SOCKET|// &|' src/output-plugins/spo_alert_fwsam.c
21 ./autogen.sh &&
22 ./configure \
23 --sysconfdir=/etc/barnyard2 \
24 $CONFIGURE_ARGS &&
25 make &&
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 mkdir -p $fs/var/log/barnyard2
34 }
36 # Post install commands
37 post_install()
38 {
39 [ -z "$quiet" ] && echo
41 # addgroup snort if needed
42 if ! grep -q 'snort:' "$1/etc/group"; then
43 action 'Adding group Snort...'
44 chroot "$1/" /bin/addgroup snort
45 status
46 fi
48 # adduser snort if needed
49 if ! grep -q 'snort:' "$1/etc/passwd"; then
50 action 'Adding user Snort...'
51 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
52 -g "Snort Daemon user" -H -D -S -G snort snort
53 status
54 fi
56 chroot "$1/" chown snort.snort /var/log/barnyard2
57 }