wok-current view ppp-pam/receipt @ rev 7710
merge
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Sun Dec 19 23:29:00 2010 +0800 (2010-12-19) |
parents | ce752ae970e1 |
children | 02bbaa9d12ba |
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 }
55 pre_remove()
56 {
57 tazpkg get-install ${PACKAGE%-pam}
58 }