wok-next diff poptop/receipt @ rev 21276
try to build gens-gs again
author | Hans-G?nter Theisgen |
---|---|
date | Sat Dec 07 15:51:18 2019 +0100 (2019-12-07) |
parents | 85b9676f2614 |
children |
line diff
1.1 --- a/poptop/receipt Thu Nov 02 09:44:39 2017 +0100 1.2 +++ b/poptop/receipt Sat Dec 07 15:51:18 2019 +0100 1.3 @@ -3,55 +3,48 @@ 1.4 PACKAGE="poptop" 1.5 VERSION="1.3.4" 1.6 CATEGORY="network" 1.7 -SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol server." 1.8 +SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol server" 1.9 MAINTAINER="pascal.bellard@slitaz.org" 1.10 LICENSE="GPL2" 1.11 +WEB_SITE="http://poptop.sourceforge.net/" 1.12 + 1.13 SOURCE="pptpd" 1.14 TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 -WEB_SITE="http://poptop.sourceforge.net/" 1.16 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.17 -TAGS="vpn tunnel" 1.18 1.19 -SPLIT="poptop bcrelay poptop-man" 1.20 +SPLIT="bcrelay" 1.21 1.22 -# Rules to configure and make the package. 1.23 -compile_rules() 1.24 -{ 1.25 - PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION) 1.26 +compile_rules() { 1.27 + PPPVER=$(. $WOK/ppp/receipt; echo $VERSION) 1.28 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \ 1.29 plugins/patchlevel.h 1.30 - sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile 1.31 - ./configure --prefix=/usr \ 1.32 + sed -i "s|^LIBDIR.*|LIBDIR=$install/usr/lib/pptpd|" plugins/Makefile 1.33 + 1.34 + ./configure \ 1.35 + --prefix=/usr \ 1.36 --mandir=/usr/share/man \ 1.37 $CONFIGURE_ARGS && 1.38 make && 1.39 - make DESTDIR=$DESTDIR install 1.40 + make DESTDIR=$install install || return 1 1.41 + 1.42 + install -Dm644 samples/pptpd.conf $install/etc/pptpd.conf 1.43 + install -Dm644 samples/options.pptpd $install/etc/ppp/options.pptpd 1.44 + 1.45 + mkdir -p $install/etc/init.d/ 1.46 + ln -s daemon $install/etc/init.d/pptpd 1.47 } 1.48 1.49 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.50 -genpkg_rules() 1.51 -{ 1.52 +genpkg_rules() { 1.53 case $PACKAGE in 1.54 - poptop) 1.55 - CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd" 1.56 - DEPENDS="ppp bcrelay" 1.57 - mkdir -p $fs/usr $fs/etc/ppp $fs/etc/init.d 1.58 - cp -a $install/usr/lib $fs/usr 1.59 - cp -a $install/usr/sbin $fs/usr 1.60 - rm -f $fs/usr/sbin/bcrelay 1.61 - cp $src/samples/pptpd.conf $fs/etc 1.62 - cp $src/samples/options.pptpd $fs/etc/ppp 1.63 - ln -s daemon $fs/etc/init.d/pptpd 1.64 - ;; 1.65 - bcrelay) 1.66 - CAT="network|Broadcast relay daemon." 1.67 - mkdir -p $fs/usr/sbin 1.68 - cp -a $install/usr/sbin/bcrelay $fs/usr/sbin 1.69 - ;; 1.70 - poptop-man) 1.71 - CAT="network|PPTP server man pages." 1.72 - mkdir -p $fs/usr/ 1.73 - cp -a $install/usr/share $fs/usr/ 1.74 - ;; 1.75 + bcrelay) 1.76 + copy bcrelay 1.77 + CAT="network|broadcast relay daemon" 1.78 + ;; 1.79 + poptop) 1.80 + copy @std @rm 1.81 + CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd" 1.82 + DEPENDS="ppp bcrelay" 1.83 + TAGS="vpn tunnel" 1.84 + ;; 1.85 esac 1.86 }