wok-4.x view ppp-pam/receipt @ rev 5717
gtkdatabox: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 24 12:15:42 2010 +0200 (2010-06-24) |
parents | 4736cbc67cec |
children | a3501d98b7a1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ppp-pam"
4 VERSION="2.4.5"
5 CATEGORY="network"
6 SHORT_DESC="Implements the Point-to-Point Protocol (PPP) with PAM support."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="ppp"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://ppp.samba.org/"
11 WGET_URL="ftp://ftp.samba.org/pub/ppp/$TARBALL"
12 DEPENDS="pam"
13 BUILD_DEPENDS="pam pam-dev"
14 CONFIG_FILES="/etc/ppp"
15 PROVIDE="ppp:pam"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux
22 ./configure --prefix=/usr --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg/usr install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $_pkg/usr/sbin $fs/usr
33 cp -a $_pkg/usr/lib $fs/usr
34 strip -s $fs/usr/sbin/*
35 strip -s $fs/usr/lib/pppd/$VERSION/*
36 # Config files.
37 mkdir -p $fs/etc/ppp/scripts
38 cp ../$SOURCE/stuff/README.scripts $fs/etc/ppp
39 cp -a $src/etc.ppp/* $fs/etc/ppp
40 # PPP scripts.
41 cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts
42 cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts
43 sed -i 's,ppp/ppp-on-dialer,ppp/script/ppp-on-dialer,' $fs/etc/ppp/scripts/ppp-on-dialer
44 cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts
45 cp -a $src/scripts/callback $fs/etc/ppp/scripts
46 cp -a $src/scripts/redialer $fs/etc/ppp/scripts
48 cp -a $src/scripts/ip-up.local.add $fs/etc/ppp/scripts/ip-up
49 cp -a $src/scripts/ip-down.local.add $fs/etc/ppp/scripts/ip-down
50 chmod +x $fs/etc/ppp/scripts/ip*
51 # insert #!/bin/sh on top line in ip* scripts
52 sed -i '1i\#!/bin/sh' $fs/etc/ppp/scripts/ip*
53 }