wok-6.x view rp-pppoe/receipt @ rev 2220

Cups-pam: fix stuff dir
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 12 09:22:35 2009 +0000 (2009-02-12)
parents 91beb274e543
children f203ac49775d
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"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src/src
16 ./configure --prefix=/usr --infodir=/usr/share/info \
17 --mandir=/usr/share/man $CONFIGURE_ARGS
18 make
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/sbin
25 cp -a $src/src/pppoe $fs/usr/sbin
26 cp -a $src/src/pppoe-server $fs/usr/sbin
27 cp -a $src/src/pppoe-relay $fs/usr/sbin
28 cp -a $src/src/pppoe-sniff $fs/usr/sbin
29 strip -s $fs/usr/sbin/*
31 # Scripts to /usr/sbin.
32 #
33 cp $src/scripts/pppoe-connect $fs/usr/sbin
34 cp $src/scripts/pppoe-start $fs/usr/sbin
35 cp $src/scripts/pppoe-status $fs/usr/sbin
36 cp $src/scripts/pppoe-stop $fs/usr/sbin
37 sed -i 's|/usr/bin/id|id|' $fs/usr/sbin/pppoe-connect \
38 $fs/usr/sbin/pppoe-setup $fs/usr/sbin/pppoe-start
39 #
40 # BUG
41 #cp $src/scripts/pppoe-setup $fs/usr/sbin
42 cp stuff/pppoe-setup $fs/usr/sbin
43 chmod -R 755 $fs/usr/sbin/*
45 # Config
46 mkdir -p $fs/etc/ppp/plugins
47 cp $src/configs/pppoe.conf $fs/etc/ppp
48 cp $src/configs/firewall-standalone $fs/etc/ppp
49 cp $src/configs/firewall-masq $fs/etc/ppp
50 cp $src/configs/pppoe-server-options $fs/etc/ppp
51 echo "# Directory created by rp-pppoe for kernel-mode plugin" > \
52 $fs/etc/ppp/plugins/README
53 }