wok-current rev 18016

poptop: add config files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 02 15:04:14 2015 +0200 (2015-05-02)
parents 58f4bd56c8de
children 22d242cf69af
files poptop-man/receipt poptop/receipt
line diff
     1.1 --- a/poptop-man/receipt	Sat May 02 12:05:22 2015 +0200
     1.2 +++ b/poptop-man/receipt	Sat May 02 15:04:14 2015 +0200
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="PPTP server man pages."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  LICENSE="GPL2"
     1.7 -WEB_SITE="http://www.poptop.org/"
     1.8 +WEB_SITE="http://poptop.sourceforge.net/"
     1.9  WANTED="poptop"
    1.10  SOURCE="pptpd"
    1.11  
     2.1 --- a/poptop/receipt	Sat May 02 12:05:22 2015 +0200
     2.2 +++ b/poptop/receipt	Sat May 02 15:04:14 2015 +0200
     2.3 @@ -8,21 +8,20 @@
     2.4  LICENSE="GPL2"
     2.5  SOURCE="pptpd"
     2.6  TARBALL="$SOURCE-$VERSION.tar.gz"
     2.7 -WEB_SITE="http://www.poptop.org/"
     2.8 +WEB_SITE="http://poptop.sourceforge.net/"
     2.9  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.10  TAGS="vpn tunnel"
    2.11 -CONFIG_FILES="/etc/pptp.conf /etc/ppp"
    2.12 +CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd"
    2.13  
    2.14  DEPENDS="ppp"
    2.15  
    2.16  # Rules to configure and make the package.
    2.17  compile_rules()
    2.18  {
    2.19 -	cd $src
    2.20  	sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile
    2.21  	./configure --prefix=/usr \
    2.22 -	--mandir=/usr/share/man \
    2.23 -	$CONFIGURE_ARGS &&
    2.24 +		--mandir=/usr/share/man \
    2.25 +		$CONFIGURE_ARGS &&
    2.26  	make &&
    2.27  	make DESTDIR=$DESTDIR install
    2.28  }
    2.29 @@ -30,7 +29,8 @@
    2.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.31  genpkg_rules()
    2.32  {
    2.33 -	mkdir -p $fs/usr
    2.34 +	mkdir -p $fs/usr $fs/etc/ppp
    2.35  	cp -a $install/usr/sbin $fs/usr
    2.36 +	cp $src/samples/pptpd.conf $fs/etc
    2.37 +	cp $src/samples/options.pptpd $fs/etc/ppp
    2.38  }
    2.39 -