wok-6.x view n2n/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | e7c6d93c6e42 |
children | 27c5a4be1423 |
line source
1 # SliTaz package receipt.
3 PACKAGE="n2n"
4 VERSION="2.4"
5 CATEGORY="network"
6 SHORT_DESC="A Layer Two Peer-to-Peer VPN."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.ntop.org/products/n2n/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/ntop/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS="openssl-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make PREFIX=/usr &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
35 # cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/sbin $fs/usr
37 }