# SliTaz package receipt. PACKAGE="firehol" VERSION="3.1.7" CATEGORY="security" SHORT_DESC="A firewall for humans..." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/firehol/firehol/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://github.com/firehol/firehol/releases/download/v$VERSION/$TARBALL" BUILD_DEPENDS="curl iprange iproute2 ipset" DEPENDS="$BUILD_DEPENDS bash" CONFIG_FILES="/etc/firehol" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share mkdir -p $fs/usr/sbin cp -a $install/etc $fs for i in $(ls $install/usr/sbin) do ln -s /usr/libexec/firehol/$VERSION/$i $fs/usr/sbin done cp -a $install/usr/libexec $fs/usr cp -a $install/usr/share/update-ipsets $fs/usr/share }