wok-next rev 5097

rollback rp-pppoe receipt changes
author Rohit Joshi <jozee@slitaz.org>
date Tue Mar 16 11:02:31 2010 +0000 (2010-03-16)
parents 4736cbc67cec
children 4bcc6ed80629
files rp-pppoe/receipt
line diff
     1.1 --- a/rp-pppoe/receipt	Tue Mar 16 09:56:47 2010 +0000
     1.2 +++ b/rp-pppoe/receipt	Tue Mar 16 11:02:31 2010 +0000
     1.3 @@ -15,20 +15,41 @@
     1.4  {
     1.5  	cd $src/src
     1.6  	./configure --prefix=/usr --infodir=/usr/share/info \
     1.7 -	--mandir=/usr/share/man \
     1.8 -	$CONFIGURE_ARGS &&
     1.9 -	make &&
    1.10 -	make DESTDIR=$PWD/../_pkg install
    1.11 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.12 +	make
    1.13  }
    1.14  
    1.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.16  genpkg_rules()
    1.17  {
    1.18 -	mkdir -p $fs/usr
    1.19 +	mkdir -p $fs/usr/sbin
    1.20 +	cp -a $src/src/pppoe $fs/usr/sbin
    1.21 +	cp -a $src/src/pppoe-server $fs/usr/sbin
    1.22 +	cp -a $src/src/pppoe-relay $fs/usr/sbin
    1.23 +	cp -a $src/src/pppoe-sniff $fs/usr/sbin
    1.24  	
    1.25 -	cp -a $_pkg/etc $fs
    1.26 -	cp -a $_pkg/usr/sbin $fs/usr	
    1.27 -
    1.28 +	#
    1.29 +	# BUG
    1.30 +	#cp $src/scripts/pppoe-setup $fs/usr/sbin
    1.31 +	cp stuff/pppoe-setup $fs/usr/sbin
    1.32 +	
    1.33 +	# Scripts to /usr/sbin.
    1.34 +	#
    1.35 +	cp $src/scripts/pppoe-connect $fs/usr/sbin
    1.36 +	cp $src/scripts/pppoe-start $fs/usr/sbin
    1.37 +	cp $src/scripts/pppoe-status $fs/usr/sbin
    1.38 +	cp $src/scripts/pppoe-stop $fs/usr/sbin
    1.39 +	sed -i 's|/usr/bin/id|id|' $fs/usr/sbin/pppoe-connect \
    1.40 +		$fs/usr/sbin/pppoe-setup $fs/usr/sbin/pppoe-start
    1.41 +	# Config
    1.42 +	mkdir -p $fs/etc/ppp/plugins
    1.43 +	cp $src/configs/pppoe.conf $fs/etc/ppp
    1.44 +	cp $src/configs/firewall-standalone $fs/etc/ppp
    1.45 +	cp $src/configs/firewall-masq $fs/etc/ppp
    1.46 +	cp $src/configs/pppoe-server-options $fs/etc/ppp
    1.47 +	echo "# Directory created by rp-pppoe for kernel-mode plugin" > \
    1.48 +		$fs/etc/ppp/plugins/README
    1.49 +	
    1.50  	# Fix permissions on all scripts
    1.51  	chmod -R 755 $fs/usr/sbin/*
    1.52  }