wok-current view 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 (5 months ago)
parents 3ad63c8fc2f9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pam"
4 VERSION="1.5.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Pluggable Authentication Modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD GPL2"
9 SOURCE="Linux-PAM"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://www.linux-pam.org/"
12 WGET_URL="https://github.com/linux-pam/linux-pam/releases/download/v$VERSION/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="glibc-base libdb"
16 BUILD_DEPENDS="flex db-dev libdb"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Patch CVE-2024-22365
29 # see https://seclists.org/oss-sec/2024/q1/31
30 patch -p1 < $stuff/CVE-2024-22365.patch
32 sed -i 's|(uname -m)|(echo i686)|;s|`uname -m`|`echo i686`|' \
33 configure build-aux/config.guess
35 ./configure --sysconfdir=/etc \
36 $CONFIGURE_ARGS &&
37 make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/lib
44 cp -a $install/etc $fs
45 cp -a $install/sbin $fs
46 cp -a $install/lib/*so* $fs/lib
47 cp -a $install/lib/security $fs/lib
48 rm -f $fs/lib/security/*.la
49 cp -a $stuff/* $fs
50 }
52 pre_remove()
53 {
54 # If busybox-pam is installed, trigger its removal right now. Once pam shared
55 # library will be removed, it will be too late. Don't worry about this, while
56 # removing busybox-pam will replace itself by a non-pam busybox.
57 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
58 tazpkg remove busybox-pam --auto
59 fi
60 }