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