wok view l2tpd/receipt @ rev 25624

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