wok annotate ppp-pam/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | ac8ca9758df1 |
children |
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@20669 | 11 WEB_SITE="https://ppp.samba.org/" |
pascal@18107 | 12 WGET_URL="https://github.com/paulusmack/ppp/archive/$TARBALL" |
pascal@23902 | 13 CONFIG_FILES="/etc/ppp/options" |
pascal@23902 | 14 SECRET_FILES="/etc/ppp/*secrets" |
pascal@18107 | 15 |
pascal@2225 | 16 DEPENDS="pam" |
pascal@18107 | 17 BUILD_DEPENDS="wget pam pam-dev" |
pascal@2225 | 18 PROVIDE="ppp:pam" |
pascal@2225 | 19 |
pascal@25601 | 20 # What is the latest version available today? |
pascal@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24299 | 23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@25601 | 24 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
pascal@2225 | 27 # Rules to configure and make the package. |
pascal@2225 | 28 compile_rules() |
pascal@2225 | 29 { |
pascal@2225 | 30 sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux |
pascal@18107 | 31 ./configure --prefix=/usr \ |
pascal@18107 | 32 $CONFIGURE_ARGS && |
pascal@2225 | 33 make && |
pascal@11797 | 34 make DESTDIR=$DESTDIR/usr install |
pascal@2225 | 35 } |
pascal@2225 | 36 |
pascal@2225 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2225 | 38 genpkg_rules() |
pascal@2225 | 39 { |
pascal@2225 | 40 mkdir -p $fs/usr |
pascal@15603 | 41 cp -a $install/usr/sbin $fs/usr |
pascal@18107 | 42 [ -d "$install/usr/lib" ] && cp -a $install/usr/lib $fs/usr |
pascal@2225 | 43 } |
pascal@7632 | 44 |
pascal@7632 | 45 pre_remove() |
pascal@7632 | 46 { |
pascal@7632 | 47 tazpkg get-install ${PACKAGE%-pam} |
pascal@7632 | 48 } |