Upgraded Linux-PAM to 1.5.1

This commit is contained in:
dslm4515
2021-03-22 17:31:45 -05:00
parent edabbd9f6d
commit b45225d2de
4 changed files with 6 additions and 394 deletions

View File

@ -1,14 +1,14 @@
#! /bin/bash
# Linux-PAM-1.4.0
# Source: https://github.com/linux-pam/linux-pam/releases/download/v1.4.0/Linux-PAM-1.4.0.tar.xz
# Linux-PAM-1.5.1
# Source: https://github.com/linux-pam/linux-pam/releases/download/v1.5.1/Linux-PAM-1.5.1.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: None
# Optional: Berkeley DB-5.3.28, libnsl-1.2.0, libtirpc-1.2.6, libaudit, and Prelude
# Optional: Berkeley DB, libnsl, libtirpc, libaudit, and Prelude
# Optional for docs: docbook-xml-4.5, docbook-xsl-1.79.2, fop-2.5, libxslt-1.1.34 and either Lynx-2.8.9rel.1 or W3m
# disable insecure modules
@ -16,11 +16,6 @@ sed -e 's/pam_rhosts//g' -i modules/Makefile.am
autoreconf -fvi &&
# Use patches from Alpine:
patch -Np1 -i ../patches/Linux-PAM-alpine/0001-avoid-opendir-since-it-may-be-called-during-fork-exe.patch
patch -Np1 -i ../patches/Linux-PAM-alpine/0adbaeb273da1d45213134aa271e95987103281c.patch
patch -Np1 -i ../patches/Linux-PAM-alpine/c9593778a6133bf29eb2f47c24cc6d2f5d729fc8.patch
# Enable utmps support
patch -Np1 -i ../patches/Linux-PAM-adelie/use-utmpx.patch
@ -29,7 +24,7 @@ ac_cv_search_crypt=no \
--sysconfdir=/etc \
--libdir=/usr/lib \
--enable-securedir=/lib/security \
--docdir=/usr/share/doc/Linux-PAM-1.4.0 \
--docdir=/usr/share/doc/Linux-PAM-1.5.1 \
--disable-nls \
--disable-audit $BUILDTUPLE &&
@ -86,7 +81,7 @@ su -c "ln -sfv ../../lib/libpam.so.0.85.1 usr/lib/libpam.so"
su -c "ln -sfv ../../lib/libpam.so.0.85.1 usr/lib/libpam.so.0"
su -c "ln -sfv libpam.so.0.85.1 lib/libpam.so.0"
read -p "Enter to build package" &&
su -c "makepkg -l y -c n $PKGS/linux-pam-1.4.0-$(uname -m)-mlfs.txz" &&
su -c "makepkg -l y -c n $PKGS/linux-pam-1.5.1-$(uname -m)-mlfs.txz" &&
cp -v install/doinst.sh /tmp/
cat >> /tmp/doinst.sh << "EOF"
@ -96,5 +91,5 @@ EOF
su -c "mv -v /tmp/doinst.sh install/"
su -c "makepkg -l y -c n $PKGS/linux-pam-1.4.0-$(uname -m)-mlfs.txz" &&
su -c "makepkg -l y -c n $PKGS/linux-pam-1.5.1-$(uname -m)-mlfs.txz" &&
su -c "rm -rf ${BUILD}/*"