wok-6.x view xl2tpd/receipt @ rev 24415

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