wok annotate iprange/receipt @ rev 25090
updated parallel (20200322 -> 20220522)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 09:48:53 2022 +0100 (2022-06-18) |
parents | 245d8b81fa0c |
children |
rev | line source |
---|---|
pascal@20038 | 1 # SliTaz package receipt. |
pascal@20038 | 2 |
pascal@20038 | 3 PACKAGE="iprange" |
Hans-G?nter@21058 | 4 VERSION="1.0.4" |
pascal@20038 | 5 CATEGORY="security" |
Hans-G?nter@21058 | 6 SHORT_DESC="Manage IP ranges." |
pascal@20038 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20038 | 8 LICENSE="GPL2" |
Hans-G?nter@21058 | 9 WEB_SITE="https://github.com/firehol/iprange" |
Hans-G?nter@21058 | 10 |
pascal@20038 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@20038 | 12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL" |
pascal@20038 | 13 |
pascal@24055 | 14 current_version() |
pascal@24055 | 15 { |
pascal@24055 | 16 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 17 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 18 } |
pascal@24055 | 19 |
pascal@20038 | 20 # Rules to configure and make the package. |
pascal@20038 | 21 compile_rules() |
pascal@20038 | 22 { |
Hans-G?nter@21058 | 23 ./configure \ |
Hans-G?nter@21058 | 24 --prefix=/usr \ |
pascal@20038 | 25 $CONFIGURE_ARGS && |
Hans-G?nter@21058 | 26 make -j 1 && |
pascal@20038 | 27 make DESTDIR=$DESTDIR install |
pascal@20038 | 28 } |
pascal@20038 | 29 |
pascal@20038 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20038 | 31 genpkg_rules() |
pascal@20038 | 32 { |
Hans-G?nter@21058 | 33 mkdir -p $install/usr/share/doc |
Hans-G?nter@21058 | 34 mkdir -p $fs/usr |
Hans-G?nter@21058 | 35 cp $src/README* $install/usr/share/doc |
Hans-G?nter@21058 | 36 cp -a $install/usr/bin $fs/usr |
pascal@20038 | 37 } |