wok annotate ipset/receipt @ rev 20045
Improvements
author | Leonardo Laporte <hackdorte@yandex.com> |
---|---|
date | Thu Aug 31 04:02:39 2017 -0300 (2017-08-31) |
parents | |
children | c697de7825ae |
rev | line source |
---|---|
pascal@20038 | 1 # SliTaz package receipt. |
pascal@20038 | 2 |
pascal@20038 | 3 PACKAGE="ipset" |
pascal@20038 | 4 VERSION="6.32" |
pascal@20038 | 5 CATEGORY="security" |
pascal@20038 | 6 SHORT_DESC="Hi speed match for an entry against a set of firewall rules." |
pascal@20038 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20038 | 8 LICENSE="GPL2" |
pascal@20038 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20038 | 10 WEB_SITE="http://ipset.netfilter.org/" |
pascal@20038 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@20038 | 12 |
pascal@20038 | 13 DEPENDS="libmnl" |
pascal@20038 | 14 BUILD_DEPENDS="linux-module-headers libltdl libmnl-dev pkg-config" |
pascal@20038 | 15 |
pascal@20038 | 16 # Rules to configure and make the package. |
pascal@20038 | 17 compile_rules() |
pascal@20038 | 18 { |
pascal@20038 | 19 KVERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)-slitaz |
pascal@20038 | 20 sed -i "s/uname -r/echo $KVERSION/" configure |
pascal@20038 | 21 ./configure --prefix=/usr \ |
pascal@20038 | 22 $CONFIGURE_ARGS && |
pascal@20038 | 23 make && |
pascal@20038 | 24 make DESTDIR=$DESTDIR install |
pascal@20038 | 25 } |
pascal@20038 | 26 |
pascal@20038 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20038 | 28 genpkg_rules() |
pascal@20038 | 29 { |
pascal@20038 | 30 mkdir -p $fs/usr/lib |
pascal@20038 | 31 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20038 | 32 cp -a $install/usr/sbin $fs/usr |
pascal@20038 | 33 } |