wok-4.x view ppp-pam/receipt @ rev 11689
ntop: update bdep
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 18 17:18:01 2012 +0100 (2012-02-18) |
parents | d1768332cee0 |
children | 03063b2a437d |
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 # Config files.
35 mkdir -p $fs/etc/ppp/scripts
36 cp ../$SOURCE/stuff/README.scripts $fs/etc/ppp
37 cp -a $src/etc.ppp/* $fs/etc/ppp
38 # PPP scripts.
39 cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts
40 cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts
41 sed -i 's,ppp/ppp-on-dialer,ppp/script/ppp-on-dialer,' $fs/etc/ppp/scripts/ppp-on-dialer
42 cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts
43 cp -a $src/scripts/callback $fs/etc/ppp/scripts
44 cp -a $src/scripts/redialer $fs/etc/ppp/scripts
46 cp -a $src/scripts/ip-up.local.add $fs/etc/ppp/scripts/ip-up
47 cp -a $src/scripts/ip-down.local.add $fs/etc/ppp/scripts/ip-down
48 chmod +x $fs/etc/ppp/scripts/ip*
49 # insert #!/bin/sh on top line in ip* scripts
50 sed -i '1i\#!/bin/sh' $fs/etc/ppp/scripts/ip*
51 }
53 pre_remove()
54 {
55 tazpkg get-install ${PACKAGE%-pam}
56 }