wok-current view ppp-pam/receipt @ rev 10072
subversion: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 20 05:28:41 2011 +0000 (2011-05-20) |
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 }