wok-next view barnyard2/receipt @ rev 20841

p11-kit: configure asks for glib2
author Erkan Yilmaz <erkan@slitaz.org>
date Wed Jun 20 08:39:52 2018 +0000 (2018-06-20)
parents 757d032c55c7
children d5aab818505e
line source
1 # SliTaz package receipt v2.
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.securixlive.com/download/barnyard2/$TARBALL"
14 BUILD_DEPENDS="libpcap-dev"
16 compile_rules() {
17 ./configure \
18 --sysconfdir=/etc/barnyard2 \
19 $CONFIGURE_ARGS &&
20 fix libtool &&
21 make &&
22 make install || return 1
24 mkdir -p $install/var/log/barnyard2/
25 }
27 genpkg_rules() {
28 copy @std
29 DEPENDS="libpcap"
30 }
32 post_install() {
33 # addgroup snort if needed
34 if ! grep -q 'snort:' "$1/etc/group"; then
35 chroot "$1/" /bin/addgroup snort
36 fi
38 # adduser snort if needed
39 if ! grep -q 'snort:' "$1/etc/passwd"; then
40 chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
41 -g "Snort Daemon user" -H -D -S -G snort snort
42 fi
44 chroot "$1/" chown snort.snort /var/log/barnyard2
45 }