wok-next rev 20166

pptpclient: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 18:44:13 2017 +0100 (2017-11-01)
parents 0159f236d2ed
children 6645caf6acbf
files pptpclient-extra/receipt pptpclient-man/receipt pptpclient/receipt
line diff
     1.1 --- a/pptpclient-extra/receipt	Wed Nov 01 18:37:43 2017 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,25 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="pptpclient-extra"
     1.7 -VERSION="1.8.0"
     1.8 -CATEGORY="network"
     1.9 -SHORT_DESC="PPTP client configuration helper."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -LICENSE="GPL2"
    1.12 -WANTED="pptpclient"
    1.13 -SOURCE="pptp"
    1.14 -WEB_SITE="http://pptpclient.sourceforge.net/"
    1.15 -
    1.16 -DEPENDS="pptpclient perl"
    1.17 -
    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 -	cp -a $install/usr/sbin/pptpsetup $fs/usr/sbin
    1.23 -	sed -i 's/die ".* MPPE .* in kernel/echo "$0: no MPPE kernel module/' \
    1.24 -		$fs/usr/sbin/pptpsetup
    1.25 -	sed -i 's/wc --lines/wc -l/' $fs/usr/sbin/pptpsetup
    1.26 -	sed -i '/# system checking/{n;s/^/#/;n;s/^/#/;}' $fs/usr/sbin/pptpsetup
    1.27 -}
    1.28 -
     2.1 --- a/pptpclient-man/receipt	Wed Nov 01 18:37:43 2017 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,18 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="pptpclient-man"
     2.7 -VERSION="1.8.0"
     2.8 -CATEGORY="network"
     2.9 -SHORT_DESC="PPTP client man pages."
    2.10 -MAINTAINER="pascal.bellard@slitaz.org"
    2.11 -LICENSE="GPL2"
    2.12 -WANTED="pptpclient"
    2.13 -SOURCE="pptp"
    2.14 -WEB_SITE="http://pptpclient.sourceforge.net/"
    2.15 -
    2.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.17 -genpkg_rules()
    2.18 -{
    2.19 -	mkdir -p $fs/usr/
    2.20 -	cp -a $install/usr/share $fs/usr/
    2.21 -}
     3.1 --- a/pptpclient/receipt	Wed Nov 01 18:37:43 2017 +0100
     3.2 +++ b/pptpclient/receipt	Wed Nov 01 18:44:13 2017 +0100
     3.3 @@ -1,4 +1,4 @@
     3.4 -# SliTaz package receipt.
     3.5 +# SliTaz package receipt v2.
     3.6  
     3.7  PACKAGE="pptpclient"
     3.8  VERSION="1.8.0"
     3.9 @@ -10,12 +10,10 @@
    3.10  TARBALL="$SOURCE-$VERSION.tar.gz"
    3.11  WEB_SITE="http://pptpclient.sourceforge.net/"
    3.12  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    3.13 -CONFIG_FILES="/etc/ppp/options.pptp"
    3.14  TAGS="vpn tunnel"
    3.15  
    3.16 -DEPENDS="ppp"
    3.17  BUILD_DEPENDS="ppp perl"
    3.18 -SUGGESTED="pptpclient-extra"
    3.19 +SPLIT="pptpclient pptpclient-extra pptpclient-man"
    3.20  
    3.21  # Rules to configure and make the package.
    3.22  compile_rules()
    3.23 @@ -27,7 +25,29 @@
    3.24  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.25  genpkg_rules()
    3.26  {
    3.27 -	mkdir -p $fs/usr/sbin
    3.28 -	cp -a $install/usr/sbin/pptp $fs/usr/sbin
    3.29 -	cp -a $install/etc $fs/
    3.30 +	case $PACKAGE in
    3.31 +	pptpclient)
    3.32 +		CONFIG_FILES="/etc/ppp/options.pptp"
    3.33 +		DEPENDS="ppp"
    3.34 +		SUGGESTED="pptpclient-extra"
    3.35 +		mkdir -p $fs/usr/sbin
    3.36 +		cp -a $install/usr/sbin/pptp $fs/usr/sbin
    3.37 +		cp -a $install/etc $fs/
    3.38 +		;;
    3.39 +	pptpclient-extra)
    3.40 +		CAT="network|PPTP client configuration helper."
    3.41 +		DEPENDS="pptpclient perl"
    3.42 +		mkdir -p $fs/usr/sbin
    3.43 +		cp -a $install/usr/sbin/pptpsetup $fs/usr/sbin
    3.44 +		sed -i 's/die ".* MPPE .* in kernel/echo "$0: no MPPE kernel module/' \
    3.45 +			$fs/usr/sbin/pptpsetup
    3.46 +		sed -i 's/wc --lines/wc -l/' $fs/usr/sbin/pptpsetup
    3.47 +		sed -i '/# system checking/{n;s/^/#/;n;s/^/#/;}' $fs/usr/sbin/pptpsetup
    3.48 +		;;
    3.49 +	pptpclient-man)
    3.50 +		CAT="network|PPTP client man pages."
    3.51 +		mkdir -p $fs/usr/
    3.52 +		cp -a $install/usr/share $fs/usr/
    3.53 +		;;
    3.54 +	esac
    3.55  }