wok-6.x annotate rp-l2tp/receipt @ rev 24718

updated libarchive and libarchive-dev (3.4.2 -> 3.6.0)
author Hans-G?nter Theisgen
date Tue Mar 15 07:41:02 2022 +0100 (2022-03-15)
parents e09f8538625f
children 7dd01dedad38
rev   line source
pascal@4924 1 # SliTaz package receipt.
pascal@4924 2
pascal@4924 3 PACKAGE="rp-l2tp"
pascal@4924 4 VERSION="0.4"
pascal@4924 5 CATEGORY="network"
pascal@4924 6 SHORT_DESC="L2TP tunnel (vpn)."
pascal@4924 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 8 LICENSE="GPL2"
pascal@4924 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4924 10 WEB_SITE="http://rp-l2tp.sourceforge.net/"
pascal@4924 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@4925 12 TAGS="vpn tunnel"
pascal@20412 13 CONFIG_FILES="/etc/l2tp"
pascal@4924 14
pascal@24348 15 # What is the latest version available today?
pascal@24348 16 current_version()
pascal@24348 17 {
pascal@24348 18 wget -O - https://sourceforge.net/projects/rp-l2tp/files/rp-l2tp/ 2>/dev/null | \
pascal@24348 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 20 sed '/scope="row/!d;s|.*/rp-l2tp/||;s|/.*||;q'
pascal@24348 21 }
pascal@24348 22
pascal@4924 23 # Rules to configure and make the package.
pascal@4924 24 compile_rules()
pascal@4924 25 {
pascal@4924 26 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@20412 27 --mandir=/usr/share/man \
pascal@20412 28 $CONFIGURE_ARGS &&
pascal@4924 29 make &&
pascal@15593 30 make DESTDIR=$DESTDIR install
pascal@4924 31 }
pascal@4924 32
pascal@4924 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4924 34 genpkg_rules()
pascal@4924 35 {
pascal@4924 36 mkdir -p $fs/usr $fs/usr/lib/l2tp/plugins
pascal@15593 37 cp -a $install/etc $fs
pascal@15593 38 cp -a $install/usr/sbin $fs/usr
pascal@4924 39 cp -a $src/handlers/l2tp-control $fs/usr/sbin
pascal@4924 40 cp -a $src/handlers/*.so $fs/usr/lib/l2tp/plugins
pascal@4924 41 }