wok-next diff pptpclient/receipt @ rev 20430

fake-sane: fix copy-paste typo
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 24 13:29:11 2018 +0200 (2018-01-24)
parents f36ee1d882ae
children d5aab818505e
line diff
     1.1 --- a/pptpclient/receipt	Tue Oct 31 18:57:22 2017 +0100
     1.2 +++ b/pptpclient/receipt	Wed Jan 24 13:29:11 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="pptpclient"
     1.8  VERSION="1.8.0"
     1.9 @@ -10,12 +10,10 @@
    1.10  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.11  WEB_SITE="http://pptpclient.sourceforge.net/"
    1.12  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.13 -CONFIG_FILES="/etc/ppp/options.pptp"
    1.14  TAGS="vpn tunnel"
    1.15  
    1.16 -DEPENDS="ppp"
    1.17  BUILD_DEPENDS="ppp perl"
    1.18 -SUGGESTED="pptpclient-extra"
    1.19 +SPLIT="pptpclient pptpclient-extra pptpclient-man"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23 @@ -27,7 +25,29 @@
    1.24  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.25  genpkg_rules()
    1.26  {
    1.27 -	mkdir -p $fs/usr/sbin
    1.28 -	cp -a $install/usr/sbin/pptp $fs/usr/sbin
    1.29 -	cp -a $install/etc $fs/
    1.30 +	case $PACKAGE in
    1.31 +	pptpclient)
    1.32 +		CONFIG_FILES="/etc/ppp/options.pptp"
    1.33 +		DEPENDS="ppp"
    1.34 +		SUGGESTED="pptpclient-extra"
    1.35 +		mkdir -p $fs/usr/sbin
    1.36 +		cp -a $install/usr/sbin/pptp $fs/usr/sbin
    1.37 +		cp -a $install/etc $fs/
    1.38 +		;;
    1.39 +	pptpclient-extra)
    1.40 +		CAT="network|PPTP client configuration helper."
    1.41 +		DEPENDS="pptpclient perl"
    1.42 +		mkdir -p $fs/usr/sbin
    1.43 +		cp -a $install/usr/sbin/pptpsetup $fs/usr/sbin
    1.44 +		sed -i 's/die ".* MPPE .* in kernel/echo "$0: no MPPE kernel module/' \
    1.45 +			$fs/usr/sbin/pptpsetup
    1.46 +		sed -i 's/wc --lines/wc -l/' $fs/usr/sbin/pptpsetup
    1.47 +		sed -i '/# system checking/{n;s/^/#/;n;s/^/#/;}' $fs/usr/sbin/pptpsetup
    1.48 +		;;
    1.49 +	pptpclient-man)
    1.50 +		CAT="network|PPTP client man pages."
    1.51 +		mkdir -p $fs/usr/
    1.52 +		cp -a $install/usr/share $fs/usr/
    1.53 +		;;
    1.54 +	esac
    1.55  }