wok annotate l2tpd/receipt @ rev 24482

updated diffutils (3.7 -> 3.8)
author Hans-G?nter Theisgen
date Fri Feb 18 14:45:09 2022 +0100 (2022-02-18)
parents 86790a278e70
children ad0bc3efbf37
rev   line source
pascal@4920 1 # SliTaz package receipt.
pascal@4920 2
pascal@4920 3 PACKAGE="l2tpd"
pascal@4920 4 VERSION="0.69"
pascal@4920 5 CATEGORY="network"
pascal@4920 6 SHORT_DESC="Layer 2 Virtual Private Network."
pascal@4920 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 8 LICENSE="GPL2"
pascal@4920 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/$PACKAGE/"
pascal@4920 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@20412 12 CONFIG_FILES="/etc/l2tp"
pascal@4920 13 TAGS="vpn tunnel"
pascal@4920 14
pascal@24411 15 # What is the latest version available today?
pascal@24411 16 current_version()
pascal@24411 17 {
pascal@24411 18 wget -O - https://sourceforge.net/projects/l2tpd/files/L2TPd/ 2>/dev/null | \
pascal@24411 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 20 sed '/scope="row/!d;s|.*/L2TPd/||;s|/.*||;q'
pascal@24411 21 }
pascal@24411 22
pascal@4920 23 # Rules to configure and make the package.
pascal@4920 24 compile_rules()
pascal@4920 25 {
pascal@4920 26 sed -i 's/dont know how to handle mandatory attribute.*"$/&,/' avp.c
pascal@4920 27 sed -i 's/static struct addr_ent/struct addr_ent/' aaa.c
pascal@4920 28 sed -i 's/recv packet from.*,$/&\\n \\/' network.c
pascal@4920 29 sed -i 's/If you do, please$/&\\n \\/' call.c
pascal@4920 30 make
pascal@4920 31 }
pascal@4920 32
pascal@4920 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4920 34 genpkg_rules()
pascal@4920 35 {
pascal@20415 36 mkdir -p $fs/usr/sbin $fs/etc/l2tp $fs/var/run/l2tp-control
pascal@20412 37 mkdir -p $install/usr/share/man
pascal@20415 38 touch $fs/etc/l2tp/l2tp-secrets $fs/etc/l2tp/l2tpd.conf
pascal@20412 39 cp -a $src/?[A-Z]* $src/doc $install/usr/share
pascal@20412 40 mv $install/usr/share/doc/*.? $install/usr/share/man
pascal@4920 41 cp -a $src/l2tpd $fs/usr/sbin
pascal@4920 42 }