wok-6.x view rp-pppoe/receipt @ 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 e30d1487cb38
children 7b74d9bf8919
line source
1 # SliTaz package receipt.
3 PACKAGE="rp-pppoe"
4 VERSION="3.10"
5 CATEGORY="network"
6 SHORT_DESC="Tools to configure a PPPOE network connection."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.roaringpenguin.com/products/pppoe"
10 WGET_URL="http://www.roaringpenguin.com/files/download/$TARBALL"
11 TAGS="network pppoe"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src/src
17 ./configure --prefix=/usr --infodir=/usr/share/info \
18 --mandir=/usr/share/man $CONFIGURE_ARGS &&
19 make
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/sbin
26 cp -a $src/src/pppoe $fs/usr/sbin
27 cp -a $src/src/pppoe-server $fs/usr/sbin
28 cp -a $src/src/pppoe-relay $fs/usr/sbin
29 cp -a $src/src/pppoe-sniff $fs/usr/sbin
31 #
32 # BUG
33 #cp $src/scripts/pppoe-setup $fs/usr/sbin
34 cp stuff/pppoe-setup $fs/usr/sbin
36 # Scripts to /usr/sbin.
37 #
38 cp $src/scripts/pppoe-connect $fs/usr/sbin
39 cp $src/scripts/pppoe-start $fs/usr/sbin
40 cp $src/scripts/pppoe-status $fs/usr/sbin
41 cp $src/scripts/pppoe-stop $fs/usr/sbin
42 sed -i 's|/usr/bin/id|id|' $fs/usr/sbin/pppoe-connect \
43 $fs/usr/sbin/pppoe-setup $fs/usr/sbin/pppoe-start
44 # Config
45 mkdir -p $fs/etc/ppp/plugins
46 cp $src/configs/pppoe.conf $fs/etc/ppp
47 cp $src/configs/firewall-standalone $fs/etc/ppp
48 cp $src/configs/firewall-masq $fs/etc/ppp
49 cp $src/configs/pppoe-server-options $fs/etc/ppp
50 echo "# Directory created by rp-pppoe for kernel-mode plugin" > \
51 $fs/etc/ppp/plugins/README
53 # Fix permissions on all scripts
54 chmod -R 755 $fs/usr/sbin/*
55 }