wok-current view firehol/receipt @ rev 20038

Add ipset, ipset-dev, iprange, firehol
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 24 19:59:19 2017 +0200 (2017-08-24)
parents
children 49e861a5cc92
line source
1 # SliTaz package receipt.
3 PACKAGE="firehol"
4 VERSION="3.1.4"
5 CATEGORY="security"
6 SHORT_DESC="A firewall for humans..."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://firehol.org/"
11 WGET_URL="https://github.com/firehol/firehol/releases/download/v$VERSION/$TARBALL"
12 CONFIG_FILES="/etc/firehol"
14 BUILD_DEPENDS="iproute2 iprange ipset"
15 DEPENDS="$BUILD_DEPENDS bash"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --prefix=/usr \
21 --sysconfdir=/etc \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share $fs/usr/sbin
31 cp -a $install/etc $fs
32 for i in $(ls $install/usr/sbin); do
33 ln -s /usr/libexec/firehol/$VERSION/$i $fs/usr/sbin
34 done
35 cp -a $install/usr/libexec $fs/usr
36 cp -a $install/usr/share/update-ipsets $fs/usr/share
37 }