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