wok-next annotate rp-pppoe/receipt @ rev 72
UP : tazpkg (1.5)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Dec 26 11:33:50 2007 +0100 (2007-12-26) |
parents | |
children | 972322439d00 |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="rp-pppoe" |
pankso@8 | 4 VERSION="3.8" |
pankso@8 | 5 CATEGORY="base-apps" |
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@8 | 9 WEB_SITE="http://www.roaringpenguin.com/en/penguin/openSourceProducts/rpPppoe" |
pankso@8 | 10 WGET_URL="http://www.roaringpenguin.com/files/download/$TARBALL" |
pankso@8 | 11 |
pankso@8 | 12 # Rules to configure and make the package. |
pankso@8 | 13 compile_rules() |
pankso@8 | 14 { |
pankso@8 | 15 cd $src/src |
pankso@8 | 16 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pankso@8 | 17 --mandir=/usr/share/man $CONFIGURE_ARGS |
pankso@8 | 18 make |
pankso@8 | 19 } |
pankso@8 | 20 |
pankso@8 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 22 genpkg_rules() |
pankso@8 | 23 { |
pankso@8 | 24 mkdir -p $fs/usr/sbin |
pankso@8 | 25 cp -a $src/src/pppoe $fs/usr/sbin |
pankso@8 | 26 cp -a $src/src/pppoe-server $fs/usr/sbin |
pankso@8 | 27 cp -a $src/src/pppoe-relay $fs/usr/sbin |
pankso@8 | 28 cp -a $src/src/pppoe-sniff $fs/usr/sbin |
pankso@8 | 29 strip -s $fs/usr/sbin/* |
pankso@8 | 30 |
pankso@8 | 31 # Scripts to /usr/sbin. |
pankso@8 | 32 # |
pankso@8 | 33 cp $src/scripts/pppoe-connect $fs/usr/sbin |
pankso@8 | 34 cp $src/scripts/pppoe-start $fs/usr/sbin |
pankso@8 | 35 cp $src/scripts/pppoe-status $fs/usr/sbin |
pankso@8 | 36 cp $src/scripts/pppoe-stop $fs/usr/sbin |
pankso@8 | 37 # |
pankso@8 | 38 # BUG |
pankso@8 | 39 #cp $src/scripts/pppoe-setup $fs/usr/sbin |
pankso@8 | 40 cp stuff/pppoe-setup $fs/usr/sbin |
pankso@8 | 41 chmod -R 755 $fs/usr/sbin/* |
pankso@8 | 42 |
pankso@8 | 43 # Config |
pankso@8 | 44 mkdir -p $fs/etc/ppp/plugins |
pankso@8 | 45 cp $src/configs/pppoe.conf $fs/etc/ppp |
pankso@8 | 46 cp $src/configs/firewall-standalone $fs/etc/ppp |
pankso@8 | 47 cp $src/configs/firewall-masq $fs/etc/ppp |
pankso@8 | 48 cp $src/configs/pppoe-server-options $fs/etc/ppp |
pankso@8 | 49 echo "# Directory created by rp-pppoe for kernel-mode plugin" > \ |
pankso@8 | 50 $fs/etc/ppp/plugins/README |
pankso@8 | 51 } |