wok annotate ppp-pam/receipt @ rev 3919
linux: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 18 19:22:04 2009 +0200 (2009-08-18) |
parents | |
children | b315a2103f94 |
rev | line source |
---|---|
pascal@2225 | 1 # SliTaz package receipt. |
pascal@2225 | 2 |
pascal@2225 | 3 PACKAGE="ppp-pam" |
pascal@2225 | 4 VERSION="2.4.4" |
pascal@2225 | 5 CATEGORY="network" |
pascal@2225 | 6 SHORT_DESC="Implements the Point-to-Point Protocol (PPP) with PAM support." |
pascal@2225 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2225 | 8 SOURCE="ppp" |
pascal@2225 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2225 | 10 WEB_SITE="http://ppp.samba.org/" |
pascal@2225 | 11 WGET_URL="ftp://ftp.samba.org/pub/ppp/$TARBALL" |
pascal@2225 | 12 DEPENDS="pam" |
pascal@2225 | 13 BUILD_DEPENDS="pam pam-dev" |
pascal@2225 | 14 CONFIG_FILES="/etc/ppp" |
pascal@2225 | 15 PROVIDE="ppp:pam" |
pascal@2225 | 16 |
pascal@2225 | 17 # Rules to configure and make the package. |
pascal@2225 | 18 compile_rules() |
pascal@2225 | 19 { |
pascal@2225 | 20 cd $src |
pascal@2225 | 21 sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux |
pascal@2225 | 22 ./configure --prefix=/usr --mandir=/usr/share/man \ |
pascal@2225 | 23 $CONFIGURE_ARGS && |
pascal@2225 | 24 make && |
pascal@2225 | 25 make DESTDIR=$PWD/_pkg/usr install |
pascal@2225 | 26 } |
pascal@2225 | 27 |
pascal@2225 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2225 | 29 genpkg_rules() |
pascal@2225 | 30 { |
pascal@2225 | 31 mkdir -p $fs/usr |
pascal@2225 | 32 cp -a $_pkg/usr/sbin $fs/usr |
pascal@2225 | 33 cp -a $_pkg/usr/lib $fs/usr |
pascal@2225 | 34 strip -s $fs/usr/sbin/* |
pascal@2225 | 35 strip -s $fs/usr/lib/pppd/$VERSION/* |
pascal@2225 | 36 # Config files. |
pascal@2225 | 37 mkdir -p $fs/etc/ppp/scripts |
pascal@2225 | 38 cp ../$SOURCE/stuff/README.scripts $fs/etc/ppp |
pascal@2225 | 39 cp -a $src/etc.ppp/* $fs/etc/ppp |
pascal@2225 | 40 # PPP scripts. |
pascal@2225 | 41 cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts |
pascal@2225 | 42 cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts |
pascal@2225 | 43 sed -i 's,ppp/ppp-on-dialer,ppp/script/ppp-on-dialer,' $fs/etc/ppp/scripts/ppp-on-dialer |
pascal@2225 | 44 cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts |
pascal@2225 | 45 cp -a $src/scripts/callback $fs/etc/ppp/scripts |
pascal@2225 | 46 cp -a $src/scripts/redialer $fs/etc/ppp/scripts |
pascal@2225 | 47 } |