wok-6.x annotate n2nc/receipt @ rev 25005
updated ntl (11.4.3 -> 11.5.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 16:29:07 2022 +0100 (2022-05-16) |
parents | 15030aba419f |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@12973 | 1 # SliTaz package receipt. |
pascal@12973 | 2 |
pascal@12973 | 3 PACKAGE="n2nc" |
pascal@12973 | 4 VERSION="r_133" |
pascal@12973 | 5 CATEGORY="network" |
pascal@12973 | 6 SHORT_DESC="Nat 2 Nat COnnector." |
pascal@12973 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@12973 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@12973 | 10 WEB_SITE="http://n2nc.sourceforge.net/" |
pascal@12973 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@12973 | 12 |
pascal@12973 | 13 DEPENDS="zlib libcrypto gcc-lib-base" |
pascal@15643 | 14 BUILD_DEPENDS="bash openssl-dev bzip2-dev zlib-dev automake autoconf libtool" |
pascal@12973 | 15 |
pascal@24402 | 16 # What is the latest version available today? |
pascal@24402 | 17 current_version() |
pascal@24402 | 18 { |
pascal@24402 | 19 wget -O - https://sourceforge.net/projects/n2nc/files/n2nc/ 2>/dev/null | \ |
pascal@24402 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24402 | 21 sed '/scope="row/!d;s|.*/n2nc/||;s|/.*||;s|-|_|;q' |
pascal@24402 | 22 } |
pascal@12973 | 23 # Rules to configure and make the package. |
pascal@12973 | 24 compile_rules() |
pascal@12973 | 25 { |
pascal@12973 | 26 mv $PACKAGE $src 2> /dev/null |
pascal@12973 | 27 cd $src |
pascal@15341 | 28 libtoolize --force |
pascal@15341 | 29 aclocal |
pascal@15341 | 30 autoheader |
pascal@15341 | 31 automake --force-missing --add-missing |
pascal@15341 | 32 autoconf |
pascal@12973 | 33 ./configure --prefix=/usr --mandir=/usr/share/man \ |
pascal@12973 | 34 --localstatedir=/var \ |
pascal@12973 | 35 $CONFIGURE_ARGS && |
pascal@12973 | 36 make && |
pascal@12973 | 37 make DESTDIR=$DESTDIR install |
pascal@12973 | 38 } |
pascal@12973 | 39 |
pascal@12973 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@12973 | 41 genpkg_rules() |
pascal@12973 | 42 { |
pascal@12973 | 43 mkdir -p $fs/usr |
pascal@15000 | 44 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 45 cp -a $install/usr/lib $fs/usr |
pascal@12973 | 46 } |