wok-next diff ppp/receipt @ rev 20213

directfb: add libpng patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 04 22:29:34 2017 +0100 (2017-11-04)
parents 50aef5b483cb
children 9d04ac35b45f
line diff
     1.1 --- a/ppp/receipt	Tue Aug 09 11:14:54 2016 +0200
     1.2 +++ b/ppp/receipt	Sat Nov 04 22:29:34 2017 +0100
     1.3 @@ -6,24 +6,25 @@
     1.4  SHORT_DESC="Implements the Point-to-Point Protocol (PPP)."
     1.5  MAINTAINER="pankso@slitaz.org"
     1.6  LICENSE="BSD GPL"
     1.7 -TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.8  WEB_SITE="http://ppp.samba.org/"
     1.9 -WGET_URL="https://github.com/paulusmack/ppp/archive/$TARBALL"
    1.10  CONFIG_FILES="/etc/ppp/options /etc/ppp/*secrets"
    1.11  HOST_ARCH="i486 arm"
    1.12 +SUGGESTED="tazpanel"
    1.13  
    1.14 -BUILD_DEPENDS="wget"
    1.15 -SUGGESTED="tazpanel"
    1.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 +WGET_URL="$GITHUB/paulusmack/ppp/tarball/ppp-$VERSION"
    1.18 +
    1.19 +SIBLINGS="ppp-pam"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23  {
    1.24  	case "$ARCH" in
    1.25 -	arm*)
    1.26 -		export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH
    1.27 +		arm*)
    1.28 +			export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH
    1.29  	esac
    1.30 -	./configure --prefix=/usr \
    1.31 -		$CONFIGURE_ARGS &&
    1.32 +
    1.33 +	./configure $CONFIGURE_ARGS &&
    1.34  	make &&
    1.35  	make DESTDIR=$DESTDIR/usr install
    1.36  }
    1.37 @@ -34,10 +35,10 @@
    1.38  	mkdir -p $fs/usr $fs/var/www/tazpanel/menu.d/network/VPN
    1.39  	cp -a $install/usr/sbin $fs/usr
    1.40  	[ -d "$install/usr/lib" ] && cp -a $install/usr/lib $fs/usr
    1.41 -	cp -a $stuff/ppp.cgi $fs/var/www/tazpanel
    1.42 -	ln -s ../../ppp.cgi $fs/var/www/tazpanel/menu.d/network/ppp
    1.43 +	cp -a   $stuff/ppp.cgi $fs/var/www/tazpanel
    1.44 +	ln -s    ../../ppp.cgi $fs/var/www/tazpanel/menu.d/network/ppp
    1.45  	ln -s ../../../ppp.cgi $fs/var/www/tazpanel/menu.d/network/VPN/ppp
    1.46 -	
    1.47 +
    1.48  	# Config files.
    1.49  	mkdir -p $fs/etc/ppp/scripts $fs/etc/ppp/ip-up.d $fs/etc/ppp/ip-down.d
    1.50  	cp $stuff/README.scripts $fs/etc/ppp
    1.51 @@ -48,7 +49,7 @@
    1.52  	cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts
    1.53  	sed -i 's:ppp/ppp-on-dialer:ppp/scripts/ppp-on-dialer:' \
    1.54  		$fs/etc/ppp/scripts/ppp-on
    1.55 -	
    1.56 +
    1.57  	cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts
    1.58  	cp -a $src/scripts/callback $fs/etc/ppp/scripts
    1.59  	cp -a $src/scripts/redialer $fs/etc/ppp/scripts
    1.60 @@ -90,7 +91,7 @@
    1.61  	chmod 711 $fs/etc/ppp/ip-up $fs/etc/ppp/ip-down
    1.62  
    1.63  	# insert #!/bin/sh  on top line in ip* scripts
    1.64 -	sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip* 2>/dev/null	
    1.65 +	sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip* 2>/dev/null
    1.66  	# add empty peers dir
    1.67  	mkdir -p $fs/etc/ppp/peers
    1.68  	# hide login/pass from regular users