wok 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 | 16a08ab1ff03 |
children | 49e861a5cc92 |
files | firehol/receipt iprange/receipt ipset-dev/receipt ipset/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firehol/receipt Thu Aug 24 19:59:19 2017 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="firehol" 1.7 +VERSION="3.1.4" 1.8 +CATEGORY="security" 1.9 +SHORT_DESC="A firewall for humans..." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.13 +WEB_SITE="http://firehol.org/" 1.14 +WGET_URL="https://github.com/firehol/firehol/releases/download/v$VERSION/$TARBALL" 1.15 +CONFIG_FILES="/etc/firehol" 1.16 + 1.17 +BUILD_DEPENDS="iproute2 iprange ipset" 1.18 +DEPENDS="$BUILD_DEPENDS bash" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + ./configure --prefix=/usr \ 1.24 + --sysconfdir=/etc \ 1.25 + $CONFIGURE_ARGS && 1.26 + make && 1.27 + make DESTDIR=$DESTDIR install 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/usr/share $fs/usr/sbin 1.34 + cp -a $install/etc $fs 1.35 + for i in $(ls $install/usr/sbin); do 1.36 + ln -s /usr/libexec/firehol/$VERSION/$i $fs/usr/sbin 1.37 + done 1.38 + cp -a $install/usr/libexec $fs/usr 1.39 + cp -a $install/usr/share/update-ipsets $fs/usr/share 1.40 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/iprange/receipt Thu Aug 24 19:59:19 2017 +0200 2.3 @@ -0,0 +1,28 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="iprange" 2.7 +VERSION="1.0.3" 2.8 +CATEGORY="security" 2.9 +SHORT_DESC="manage IP ranges" 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +LICENSE="GPL2" 2.12 +TARBALL="$PACKAGE-$VERSION.tar.xz" 2.13 +WEB_SITE="https://github.com/firehol/iprange" 2.14 +WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL" 2.15 + 2.16 +# Rules to configure and make the package. 2.17 +compile_rules() 2.18 +{ 2.19 + ./configure --prefix=/usr \ 2.20 + $CONFIGURE_ARGS && 2.21 + make && 2.22 + make DESTDIR=$DESTDIR install 2.23 +} 2.24 + 2.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.26 +genpkg_rules() 2.27 +{ 2.28 + mkdir -p $install/usr/share/doc $fs/usr 2.29 + cp $src/README* $install/usr/share/doc 2.30 + cp -a $install/usr/bin $fs/usr 2.31 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/ipset-dev/receipt Thu Aug 24 19:59:19 2017 +0200 3.3 @@ -0,0 +1,21 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="ipset-dev" 3.7 +VERSION="6.32" 3.8 +CATEGORY="development" 3.9 +SHORT_DESC="Hi speed match for an entry against a set of firewall rules." 3.10 +MAINTAINER="pascal.bellard@slitaz.org" 3.11 +LICENSE="GPL2" 3.12 +WEB_SITE="http://ipset.netfilter.org/" 3.13 +WANTED="ipset" 3.14 + 3.15 +DEPENDS="ipset pkg-config" 3.16 + 3.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.18 +genpkg_rules() 3.19 +{ 3.20 + mkdir -p $fs/usr/lib 3.21 + cp -a $install/usr/lib/*a $fs/usr/lib 3.22 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 3.23 + cp -a $install/usr/include $fs/usr 3.24 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/ipset/receipt Thu Aug 24 19:59:19 2017 +0200 4.3 @@ -0,0 +1,33 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="ipset" 4.7 +VERSION="6.32" 4.8 +CATEGORY="security" 4.9 +SHORT_DESC="Hi speed match for an entry against a set of firewall rules." 4.10 +MAINTAINER="pascal.bellard@slitaz.org" 4.11 +LICENSE="GPL2" 4.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 4.13 +WEB_SITE="http://ipset.netfilter.org/" 4.14 +WGET_URL="${WEB_SITE}$TARBALL" 4.15 + 4.16 +DEPENDS="libmnl" 4.17 +BUILD_DEPENDS="linux-module-headers libltdl libmnl-dev pkg-config" 4.18 + 4.19 +# Rules to configure and make the package. 4.20 +compile_rules() 4.21 +{ 4.22 + KVERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)-slitaz 4.23 + sed -i "s/uname -r/echo $KVERSION/" configure 4.24 + ./configure --prefix=/usr \ 4.25 + $CONFIGURE_ARGS && 4.26 + make && 4.27 + make DESTDIR=$DESTDIR install 4.28 +} 4.29 + 4.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.31 +genpkg_rules() 4.32 +{ 4.33 + mkdir -p $fs/usr/lib 4.34 + cp -a $install/usr/lib/*.so* $fs/usr/lib 4.35 + cp -a $install/usr/sbin $fs/usr 4.36 +}