wok annotate l2tpd/receipt @ rev 21205
Add lbzip2 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 07 20:34:36 2019 +0200 (2019-04-07) |
parents | 633236fac7b8 |
children | 65d7d867e0c1 |
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@4920 | 15 # Rules to configure and make the package. |
pascal@4920 | 16 compile_rules() |
pascal@4920 | 17 { |
pascal@4920 | 18 sed -i 's/dont know how to handle mandatory attribute.*"$/&,/' avp.c |
pascal@4920 | 19 sed -i 's/static struct addr_ent/struct addr_ent/' aaa.c |
pascal@4920 | 20 sed -i 's/recv packet from.*,$/&\\n \\/' network.c |
pascal@4920 | 21 sed -i 's/If you do, please$/&\\n \\/' call.c |
pascal@4920 | 22 make |
pascal@4920 | 23 } |
pascal@4920 | 24 |
pascal@4920 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4920 | 26 genpkg_rules() |
pascal@4920 | 27 { |
pascal@20415 | 28 mkdir -p $fs/usr/sbin $fs/etc/l2tp $fs/var/run/l2tp-control |
pascal@20412 | 29 mkdir -p $install/usr/share/man |
pascal@20415 | 30 touch $fs/etc/l2tp/l2tp-secrets $fs/etc/l2tp/l2tpd.conf |
pascal@20412 | 31 cp -a $src/?[A-Z]* $src/doc $install/usr/share |
pascal@20412 | 32 mv $install/usr/share/doc/*.? $install/usr/share/man |
pascal@4920 | 33 cp -a $src/l2tpd $fs/usr/sbin |
pascal@4920 | 34 } |