wok view l2tpd/receipt @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
parents 633236fac7b8
children 65d7d867e0c1
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 # Rules to configure and make the package.
16 compile_rules()
17 {
18 sed -i 's/dont know how to handle mandatory attribute.*"$/&,/' avp.c
19 sed -i 's/static struct addr_ent/struct addr_ent/' aaa.c
20 sed -i 's/recv packet from.*,$/&\\n \\/' network.c
21 sed -i 's/If you do, please$/&\\n \\/' call.c
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/sbin $fs/etc/l2tp $fs/var/run/l2tp-control
29 mkdir -p $install/usr/share/man
30 touch $fs/etc/l2tp/l2tp-secrets $fs/etc/l2tp/l2tpd.conf
31 cp -a $src/?[A-Z]* $src/doc $install/usr/share
32 mv $install/usr/share/doc/*.? $install/usr/share/man
33 cp -a $src/l2tpd $fs/usr/sbin
34 }