wok annotate ppp-pam/receipt @ rev 20099
Up slitaz-doc (159)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 07 22:35:34 2017 +0200 (2017-10-07) |
parents | 44b43b66e908 |
children | a78610b2eb47 |
rev | line source |
---|---|
pascal@2225 | 1 # SliTaz package receipt. |
pascal@2225 | 2 |
pascal@2225 | 3 PACKAGE="ppp-pam" |
pascal@18107 | 4 VERSION="2.4.7" |
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@14781 | 8 LICENSE="BSD GPL" |
pascal@2225 | 9 SOURCE="ppp" |
pascal@2225 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2225 | 11 WEB_SITE="http://ppp.samba.org/" |
pascal@18107 | 12 WGET_URL="https://github.com/paulusmack/ppp/archive/$TARBALL" |
pascal@19305 | 13 CONFIG_FILES="/etc/ppp/options /etc/ppp/*secrets" |
pascal@18107 | 14 |
pascal@2225 | 15 DEPENDS="pam" |
pascal@18107 | 16 BUILD_DEPENDS="wget pam pam-dev" |
pascal@2225 | 17 PROVIDE="ppp:pam" |
pascal@2225 | 18 |
pascal@2225 | 19 # Rules to configure and make the package. |
pascal@2225 | 20 compile_rules() |
pascal@2225 | 21 { |
pascal@2225 | 22 sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux |
pascal@18107 | 23 ./configure --prefix=/usr \ |
pascal@18107 | 24 $CONFIGURE_ARGS && |
pascal@2225 | 25 make && |
pascal@11797 | 26 make DESTDIR=$DESTDIR/usr install |
pascal@2225 | 27 } |
pascal@2225 | 28 |
pascal@2225 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2225 | 30 genpkg_rules() |
pascal@2225 | 31 { |
pascal@2225 | 32 mkdir -p $fs/usr |
pascal@15603 | 33 cp -a $install/usr/sbin $fs/usr |
pascal@18107 | 34 [ -d "$install/usr/lib" ] && cp -a $install/usr/lib $fs/usr |
pascal@2225 | 35 } |
pascal@7632 | 36 |
pascal@7632 | 37 pre_remove() |
pascal@7632 | 38 { |
pascal@7632 | 39 tazpkg get-install ${PACKAGE%-pam} |
pascal@7632 | 40 } |