wok-stable annotate ppp/receipt @ rev 7882
Default slim.conf with xorg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 04 01:06:52 2011 +0100 (2011-01-04) |
parents | 1d1a4203b937 |
children | 02bbaa9d12ba |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="ppp" |
jozee@5100 | 4 VERSION="2.4.5" |
pankso@203 | 5 CATEGORY="network" |
pankso@6 | 6 SHORT_DESC="Implements the Point-to-Point Protocol (PPP)." |
pankso@6 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@6 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@6 | 9 WEB_SITE="http://ppp.samba.org/" |
pankso@6 | 10 WGET_URL="ftp://ftp.samba.org/pub/ppp/$TARBALL" |
pascal@1634 | 11 CONFIG_FILES="/etc/ppp" |
pankso@6 | 12 |
pankso@6 | 13 # Rules to configure and make the package. |
pankso@6 | 14 compile_rules() |
pankso@6 | 15 { |
pankso@6 | 16 cd $src |
pankso@6 | 17 ./configure --prefix=/usr --mandir=/usr/share/man \ |
pascal@1634 | 18 $CONFIGURE_ARGS && |
pascal@1634 | 19 make && |
pankso@6 | 20 make DESTDIR=$PWD/_pkg/usr install |
pankso@6 | 21 } |
pankso@6 | 22 |
pankso@6 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 24 genpkg_rules() |
pankso@6 | 25 { |
pankso@6 | 26 mkdir -p $fs/usr |
pankso@6 | 27 cp -a $_pkg/usr/sbin $fs/usr |
pankso@6 | 28 cp -a $_pkg/usr/lib $fs/usr |
pankso@6 | 29 strip -s $fs/usr/sbin/* |
pankso@6 | 30 strip -s $fs/usr/lib/pppd/$VERSION/* |
pankso@6 | 31 # Config files. |
pankso@6 | 32 mkdir -p $fs/etc/ppp/scripts |
pankso@6 | 33 cp stuff/README.scripts $fs/etc/ppp |
pankso@6 | 34 cp -a $src/etc.ppp/* $fs/etc/ppp |
pankso@6 | 35 # PPP scripts. |
pankso@6 | 36 cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts |
pankso@6 | 37 cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts |
jozee@5104 | 38 |
pankso@6 | 39 cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts |
pankso@6 | 40 cp -a $src/scripts/callback $fs/etc/ppp/scripts |
pankso@6 | 41 cp -a $src/scripts/redialer $fs/etc/ppp/scripts |
jozee@5092 | 42 |
jozee@5102 | 43 cp -a $src/scripts/ip-up.local.add $fs/etc/ppp/ip-up |
jozee@5102 | 44 cp -a $src/scripts/ip-down.local.add $fs/etc/ppp/ip-down |
jozee@5102 | 45 chmod +x $fs/etc/ppp/ip* |
jozee@5092 | 46 # insert #!/bin/sh on top line in ip* scripts |
jozee@5102 | 47 sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip* |
jozee@5104 | 48 # add empty peers dir |
jozee@5104 | 49 mkdir -p $fs/etc/ppp/peers |
jozee@5104 | 50 sed -i 's:ppp/ppp-on-dialer:ppp/script/ppp-on-dialer:' $fs/etc/ppp/scripts/ppp-on |
jozee@5102 | 51 |
pankso@6 | 52 } |