wok annotate xl2tpd/receipt @ rev 24382

updated bluefish (2.2.10 -> 2.2.12)
author Hans-G?nter Theisgen
date Sun Feb 06 10:59:31 2022 +0100 (2022-02-06)
parents 704bb2b5d1d0
children 870e1ce31226
rev   line source
pascal@4531 1 # SliTaz package receipt.
pascal@4531 2
pascal@4531 3 PACKAGE="xl2tpd"
Hans-G?nter@22163 4 VERSION="1.3.15"
pascal@4531 5 CATEGORY="network"
Hans-G?nter@22163 6 TAGS="vpn tunnel"
pascal@4531 7 SHORT_DESC="Layer 2 Tunneling Protocol (L2TP) daemon."
pascal@4531 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14698 9 LICENSE="GPL2"
Hans-G?nter@22163 10 WEB_SITE="https://www.xelerance.com/software/xl2tpd"
Hans-G?nter@22163 11
pascal@4531 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22163 13 WGET_URL="https://github.com/xelerance/$PACKAGE/archive/v$VERSION.tar.gz"
pascal@4531 14
pankso@9825 15 DEPENDS="libpcap"
pankso@9825 16 BUILD_DEPENDS="libpcap-dev"
pankso@9825 17
Hans-G?nter@22163 18 CONFIG_FILES="/etc/xl2tpd"
Hans-G?nter@22163 19
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 23 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 24 }
pascal@24055 25
pascal@4531 26 # Rules to configure and make the package.
pascal@4531 27 compile_rules()
pascal@4531 28 {
Hans-G?nter@22163 29 sed -i 's/-lpcap \$(LDLIBS) -o pfc pfc.o/$(LDLIBS) -o pfc pfc.o -lpcap/' \
Hans-G?nter@22163 30 Makefile
pankso@9825 31 make PREFIX=/usr DESTDIR=$DESTDIR install
pascal@4531 32 }
pascal@4531 33
pascal@4531 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4531 35 genpkg_rules()
pascal@4531 36 {
Hans-G?nter@22163 37 mkdir -p $fs/usr
Hans-G?nter@22163 38 mkdir -p $fs/etc/xl2tpd
Hans-G?nter@22163 39 mkdir -p $fs/var/run/xl2tpd
Hans-G?nter@22163 40
Hans-G?nter@22163 41 cp -a $src/doc $install/usr/share/
pascal@20412 42 rm $install/usr/share/doc/*.?
Hans-G?nter@22163 43 cp -a $src/?[A-Z]* $src/examples $install/usr/share/doc
Hans-G?nter@22163 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22163 45 cp -a $install/usr/sbin $fs/usr
pascal@4531 46 }