wok-next view 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 source
1 # SliTaz package receipt v2.
3 PACKAGE="pptpclient"
4 VERSION="1.8.0"
5 CATEGORY="network"
6 SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol client."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="pptp"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://pptpclient.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 TAGS="vpn tunnel"
15 BUILD_DEPENDS="ppp perl"
16 SPLIT="pptpclient pptpclient-extra pptpclient-man"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 case $PACKAGE in
29 pptpclient)
30 CONFIG_FILES="/etc/ppp/options.pptp"
31 DEPENDS="ppp"
32 SUGGESTED="pptpclient-extra"
33 mkdir -p $fs/usr/sbin
34 cp -a $install/usr/sbin/pptp $fs/usr/sbin
35 cp -a $install/etc $fs/
36 ;;
37 pptpclient-extra)
38 CAT="network|PPTP client configuration helper."
39 DEPENDS="pptpclient perl"
40 mkdir -p $fs/usr/sbin
41 cp -a $install/usr/sbin/pptpsetup $fs/usr/sbin
42 sed -i 's/die ".* MPPE .* in kernel/echo "$0: no MPPE kernel module/' \
43 $fs/usr/sbin/pptpsetup
44 sed -i 's/wc --lines/wc -l/' $fs/usr/sbin/pptpsetup
45 sed -i '/# system checking/{n;s/^/#/;n;s/^/#/;}' $fs/usr/sbin/pptpsetup
46 ;;
47 pptpclient-man)
48 CAT="network|PPTP client man pages."
49 mkdir -p $fs/usr/
50 cp -a $install/usr/share $fs/usr/
51 ;;
52 esac
53 }