wok annotate n2n/receipt @ rev 25363
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 28 08:19:17 2022 +0000 (2022-07-28) |
parents | 5ea0ce1cecc0 |
children | 7364ffdaaa60 |
rev | line source |
---|---|
pascal@14154 | 1 # SliTaz package receipt. |
pascal@14154 | 2 |
pascal@14154 | 3 PACKAGE="n2n" |
Hans-G?nter@24944 | 4 VERSION="3.0" |
pascal@14154 | 5 CATEGORY="network" |
pascal@14154 | 6 SHORT_DESC="A Layer Two Peer-to-Peer VPN." |
pascal@14154 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14698 | 8 LICENSE="GPL3" |
Hans-G?nter@21507 | 9 WEB_SITE="https://www.ntop.org/products/n2n/" |
Hans-G?nter@21507 | 10 |
pascal@14154 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21507 | 12 WGET_URL="https://github.com/ntop/$PACKAGE/archive/$VERSION.tar.gz" |
pascal@14154 | 13 |
pascal@14154 | 14 DEPENDS="" |
Hans-G?nter@24944 | 15 BUILD_DEPENDS="automake libcap-dev openssl-dev" |
pascal@14154 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@14154 | 23 # Rules to configure and make the package. |
pascal@14154 | 24 compile_rules() |
pascal@14154 | 25 { |
Hans-G?nter@24944 | 26 ./autogen.sh && |
Hans-G?nter@24944 | 27 ./configure --prefix=/usr && |
Hans-G?nter@24944 | 28 make && |
Hans-G?nter@24944 | 29 make install DESTDIR=$DESTDIR |
pascal@14154 | 30 } |
pascal@14154 | 31 |
pascal@14154 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14154 | 33 genpkg_rules() |
pascal@14154 | 34 { |
Hans-G?nter@24944 | 35 cook_copy_folders sbin |
pascal@14154 | 36 } |