wok-current view ppp-pam/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents ac8ca9758df1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ppp-pam"
4 VERSION="2.4.9"
5 CATEGORY="network"
6 SHORT_DESC="Implements the Point-to-Point Protocol (PPP) with PAM support."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD GPL"
9 SOURCE="ppp"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://ppp.samba.org/"
12 WGET_URL="https://github.com/paulusmack/ppp/archive/$TARBALL"
13 CONFIG_FILES="/etc/ppp/options"
14 SECRET_FILES="/etc/ppp/*secrets"
16 DEPENDS="pam libpcap libssl"
17 BUILD_DEPENDS="wget pam pam-dev libpcap-dev openssl-dev"
18 PROVIDE="ppp:pam"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux
31 # Patch to use with glibc < 2.24
32 # see https://github.com/ppp-project/ppp/commit/98ec18f
33 patch -p1 < $stuff/ppp-glibc.patch
35 ./configure --prefix=/usr \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR/usr install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 [ -d "$install/usr/lib" ] && cp -a $install/usr/lib $fs/usr
47 }
49 pre_remove()
50 {
51 tazpkg get-install ${PACKAGE%-pam}
52 }