wok view xl2tpd/receipt @ rev 25694

dropbear: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 21 14:12:01 2024 +0000 (5 weeks ago)
parents 870e1ce31226
children
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://github.com/xelerance/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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's/-lpcap \$(LDLIBS) -o pfc pfc.o/$(LDLIBS) -o pfc pfc.o -lpcap/' \
31 Makefile
32 make PREFIX=/usr DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 mkdir -p $fs/etc/xl2tpd
40 mkdir -p $fs/var/run/xl2tpd
42 cp -a $src/doc $install/usr/share/
43 rm $install/usr/share/doc/*.?
44 cp -a $src/?[A-Z]* $src/examples $install/usr/share/doc
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/sbin $fs/usr
47 }