wok annotate tunctl/receipt @ rev 25006
updated ntp (4.2.8.p13 -> 4.2.8.p15)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 16:37:26 2022 +0100 (2022-05-16) |
parents | 600aaedb561d |
children | b0069c845544 |
rev | line source |
---|---|
allan316@4527 | 1 # SliTaz package receipt. |
allan316@4527 | 2 |
allan316@4527 | 3 PACKAGE="tunctl" |
allan316@4527 | 4 VERSION="1.5" |
pankso@4804 | 5 CATEGORY="network" |
allan316@4527 | 6 SHORT_DESC="used to set up and maintain persistent TUN/TAP network interfaces" |
allan316@4527 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15590 | 8 LICENSE="GPL" |
allan316@4527 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
allan316@4527 | 10 WEB_SITE="http://tunctl.sourceforge.net" |
allan316@4527 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
allan316@4527 | 12 |
pascal@15590 | 13 DEPENDS="" |
pascal@15590 | 14 |
pascal@24340 | 15 # What is the latest version available today? |
pascal@24340 | 16 current_version() |
pascal@24340 | 17 { |
pascal@24340 | 18 wget -O - https://sourceforge.net/projects/tunctl/files/tunctl/ 2>/dev/null | \ |
pascal@24340 | 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 20 sed '/scope="row/!d;s|.*/tunctl/||;s|/.*||;q' |
pascal@24340 | 21 } |
pascal@24340 | 22 |
allan316@4527 | 23 # Rules to configure and make the package. |
allan316@4527 | 24 compile_rules() |
allan316@4527 | 25 { |
allan316@4527 | 26 cd $src |
pascal@15590 | 27 mkdir -p $DESTDIR/usr/bin |
allan316@4527 | 28 cc -g -Wall -o tunctl tunctl.c |
pascal@15590 | 29 cp -a tunctl $DESTDIR/usr/bin/ |
allan316@4527 | 30 } |
allan316@4527 | 31 |
allan316@4527 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@4527 | 33 genpkg_rules() |
allan316@4527 | 34 { |
allan316@4527 | 35 mkdir -p $fs/usr |
pascal@15590 | 36 cp -a $install/usr/bin $fs/usr |
allan316@4527 | 37 } |
allan316@4527 | 38 |