wok rev 20412
*l2tp*: add doc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 02 11:32:59 2018 +0200 (2018-08-02) |
parents | e0d366200e99 |
children | 51a07cab339e |
files | l2tpd/receipt rp-l2tp/receipt xl2tpd/receipt |
line diff
1.1 --- a/l2tpd/receipt Wed Aug 01 09:50:52 2018 +0200 1.2 +++ b/l2tpd/receipt Thu Aug 02 11:32:59 2018 +0200 1.3 @@ -9,12 +9,12 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.5 WEB_SITE="http://sourceforge.net/projects/$PACKAGE/" 1.6 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.7 +CONFIG_FILES="/etc/l2tp" 1.8 TAGS="vpn tunnel" 1.9 1.10 # Rules to configure and make the package. 1.11 compile_rules() 1.12 { 1.13 - cd $src 1.14 sed -i 's/dont know how to handle mandatory attribute.*"$/&,/' avp.c 1.15 sed -i 's/static struct addr_ent/struct addr_ent/' aaa.c 1.16 sed -i 's/recv packet from.*,$/&\\n \\/' network.c 1.17 @@ -25,7 +25,10 @@ 1.18 # Rules to gen a SliTaz package suitable for Tazpkg. 1.19 genpkg_rules() 1.20 { 1.21 - mkdir -p $fs/usr/sbin 1.22 + mkdir -p $fs/usr/sbin $fs/etc/ldap $fs/var/run/l2tp-control 1.23 + mkdir -p $install/usr/share/man 1.24 + touch $fs/etc/ldap/l2tp-secrets $fs/etc/l2tp/l2tpd.conf 1.25 + cp -a $src/?[A-Z]* $src/doc $install/usr/share 1.26 + mv $install/usr/share/doc/*.? $install/usr/share/man 1.27 cp -a $src/l2tpd $fs/usr/sbin 1.28 } 1.29 -
2.1 --- a/rp-l2tp/receipt Wed Aug 01 09:50:52 2018 +0200 2.2 +++ b/rp-l2tp/receipt Thu Aug 02 11:32:59 2018 +0200 2.3 @@ -10,14 +10,14 @@ 2.4 WEB_SITE="http://rp-l2tp.sourceforge.net/" 2.5 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 2.6 TAGS="vpn tunnel" 2.7 +CONFIG_FILES="/etc/l2tp" 2.8 2.9 # Rules to configure and make the package. 2.10 compile_rules() 2.11 { 2.12 - cd $src 2.13 ./configure --prefix=/usr --infodir=/usr/share/info \ 2.14 - --mandir=/usr/share/man \ 2.15 - $CONFIGURE_ARGS && 2.16 + --mandir=/usr/share/man \ 2.17 + $CONFIGURE_ARGS && 2.18 make && 2.19 make DESTDIR=$DESTDIR install 2.20 } 2.21 @@ -31,4 +31,3 @@ 2.22 cp -a $src/handlers/l2tp-control $fs/usr/sbin 2.23 cp -a $src/handlers/*.so $fs/usr/lib/l2tp/plugins 2.24 } 2.25 -
3.1 --- a/xl2tpd/receipt Wed Aug 01 09:50:52 2018 +0200 3.2 +++ b/xl2tpd/receipt Thu Aug 02 11:32:59 2018 +0200 3.3 @@ -10,6 +10,7 @@ 3.4 WEB_SITE="http://www.xelerance.com/software/xl2tpd" 3.5 WGET_URL="$WEB_SITE/$TARBALL" 3.6 TAGS="vpn tunnel" 3.7 +CONFIG_FILES="/etc/lx2tpd" 3.8 3.9 DEPENDS="libpcap" 3.10 BUILD_DEPENDS="libpcap-dev" 3.11 @@ -17,7 +18,6 @@ 3.12 # Rules to configure and make the package. 3.13 compile_rules() 3.14 { 3.15 - cd $src 3.16 sed -i 's/-lpcap \$(LDLIBS) -o pfc pfc.o/$(LDLIBS) -o pfc pfc.o -lpcap/' Makefile 3.17 make PREFIX=/usr DESTDIR=$DESTDIR install 3.18 } 3.19 @@ -25,8 +25,10 @@ 3.20 # Rules to gen a SliTaz package suitable for Tazpkg. 3.21 genpkg_rules() 3.22 { 3.23 - mkdir -p $fs/usr 3.24 + mkdir -p $fs/usr $fs/etc/lx2tpd $fs/var/run/xl2tpd 3.25 + cp -a doc $install/usr/share/ 3.26 + rm $install/usr/share/doc/*.? 3.27 + cp -a ?[A-Z]* exemples $install/usr/share/doc 3.28 cp -a $install/usr/bin $fs/usr 3.29 cp -a $install/usr/sbin $fs/usr 3.30 } 3.31 -