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