diff options
Diffstat (limited to 'base/pam')
15 files changed, 166 insertions, 0 deletions
diff --git a/base/pam/Linux-PAM-1.1.6-audiolimits.patch.xz b/base/pam/Linux-PAM-1.1.6-audiolimits.patch.xz Binary files differnew file mode 100644 index 0000000..ba1ff44 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-audiolimits.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-cryptnullcheck.patch.xz b/base/pam/Linux-PAM-1.1.6-cryptnullcheck.patch.xz Binary files differnew file mode 100644 index 0000000..b507eb9 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-cryptnullcheck.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-faillock.patch.xz b/base/pam/Linux-PAM-1.1.6-faillock.patch.xz Binary files differnew file mode 100644 index 0000000..9603580 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-faillock.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-lastlogretval.patch.xz b/base/pam/Linux-PAM-1.1.6-lastlogretval.patch.xz Binary files differnew file mode 100644 index 0000000..3967b4e --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-lastlogretval.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-limitsuser.patch.xz b/base/pam/Linux-PAM-1.1.6-limitsuser.patch.xz Binary files differnew file mode 100644 index 0000000..68e3bba --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-limitsuser.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-namespacedestdir.patch.xz b/base/pam/Linux-PAM-1.1.6-namespacedestdir.patch.xz Binary files differnew file mode 100644 index 0000000..acfd571 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-namespacedestdir.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-namespacemntopts.patch.xz b/base/pam/Linux-PAM-1.1.6-namespacemntopts.patch.xz Binary files differnew file mode 100644 index 0000000..7660ee8 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-namespacemntopts.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-notally.patch.xz b/base/pam/Linux-PAM-1.1.6-notally.patch.xz Binary files differnew file mode 100644 index 0000000..231fd8d --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-notally.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-nouserenv.patch.xz b/base/pam/Linux-PAM-1.1.6-nouserenv.patch.xz Binary files differnew file mode 100644 index 0000000..71ba366 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-nouserenv.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-rundir.patch.xz b/base/pam/Linux-PAM-1.1.6-rundir.patch.xz Binary files differnew file mode 100644 index 0000000..f00297c --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-rundir.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-stdnoclose.patch.xz b/base/pam/Linux-PAM-1.1.6-stdnoclose.patch.xz Binary files differnew file mode 100644 index 0000000..2af77a5 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-stdnoclose.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-strictaliasing.patch.xz b/base/pam/Linux-PAM-1.1.6-strictaliasing.patch.xz Binary files differnew file mode 100644 index 0000000..cbd9959 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-strictaliasing.patch.xz diff --git a/base/pam/Linux-PAM-1.1.6-tmpfilesd.patch.xz b/base/pam/Linux-PAM-1.1.6-tmpfilesd.patch.xz Binary files differnew file mode 100644 index 0000000..e6b59a8 --- /dev/null +++ b/base/pam/Linux-PAM-1.1.6-tmpfilesd.patch.xz diff --git a/base/pam/pam.build b/base/pam/pam.build new file mode 100755 index 0000000..5124f8d --- /dev/null +++ b/base/pam/pam.build @@ -0,0 +1,166 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=pam +VERSION=1.1.6 +BUILD=3 +DEPENDS=('cracklib >= 2.8.22-1' 'libdb >= 5.3.21-1') + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: pam (pluggable authentication modules) +${NAME}: +${NAME}: PAM is a system security tool that allows system administrators to +${NAME}: set authentication policy without having to recompile programs that +${NAME}: handle authentication. +${NAME}: +${NAME}: Homepage: http://www.us.kernel.org/pub/linux/libs/pam/index.html +${NAME}: +${NAME}: +${NAME}: +${NAME}: +EOF + +cat >> ${PKG}/install/doinst.sh <<EOF +#!/bin/sh + +config() { + NEW="\$1" + OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r \$OLD ]; then + mv \$NEW \$OLD + elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then + # toss the redundant copy + rm \$NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +if [ ! -d run/faillock ]; then + install -m 0755 -d run/faillock +fi + +config etc/security/access.conf.new +config etc/security/group.conf.new +config etc/security/limits.conf.new +config etc/security/namespace.conf.new +config etc/security/namespace.init.new +config etc/security/pam_env.conf.new +config etc/security/time.conf.new +config etc/default/passwd.new +config etc/environment.new +config etc/pam.d/other.new +config etc/pam.d/system-auth.new +config etc/pam.d/system-local-login.new +config etc/pam.d/system-login.new +config etc/pam.d/system-remote-login.new +config etc/pam.d/system-services.new +config var/log/tallylog.new +rm -f var/log/tallylog.new +EOF + +#TODO: when switching to PAM remember to enable /usr/bin/login in 'util-linux' +# and disable /usr/bin/login in 'shadow'. + +#NOTE: Maybe /etc/environment should be in another package + +# Sources + +SRCNAME[0]=Linux-PAM +SRCVERS[0]=${VERSION} +SRCPACK[0]=https://fedorahosted.org/releases/l/i/linux-pam/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2 +SRCCOPY[0]="BSD3 GPL2" + +build0() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --disable-rpath \ + --enable-static=no \ + --enable-shared=yes \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --sbindir="${SYS_DIR[sbin]}" \ + --disable-audit \ + --disable-selinux \ + --disable-prelude \ + --enable-securedir="${SYS_DIR[lib]}/plugins/security" \ + --enable-isadir="../../${SYS_DIR[lib]}/plugins/security" +make ${JOBS} +make install DESTDIR="${PKG}" SCONFIGDIR="${SYS_DIR[etc]}/security" +doc AUTHORS +changelog NEWS +config ${PKG}${SYS_DIR[etc]}/security/{access,group,limits,namespace,pam_env,time}.conf +config ${PKG}${SYS_DIR[etc]}/security/namespace.init +config ${PKG}${SYS_DIR[etc]}/environment +install.dir ${PKG}${SYS_DIR[etc]}/tmpfiles.d +install.cfg pam.conf.tmpfiles ${PKG}${SYS_DIR[etc]}/tmpfiles.d/pam.conf +install.dir ${PKG}${SYS_DIR[var]}/log +install -m 0600 /dev/null ${PKG}${SYS_DIR[var]}/log/tallylog.new +chmod 4755 ${PKG}${SYS_DIR[sbin]}/unix_chkpwd +chmod 0700 ${PKG}${SYS_DIR[sbin]}/unix_update +rm -rf \ + ${PKG}${SYS_DIR[doc]}/Linux-PAM +# Compatibility stuff +( + cd ${PKG}${SYS_DIR[lib]}/plugins/security + ln -s pam_unix.so pam_unix_acct.so + ln -s pam_unix.so pam_unix_auth.so + ln -s pam_unix.so pam_unix_passwd.so + ln -s pam_unix.so pam_unix_session.so +) +} + +SRCNAME[1]=pam_unix2 +SRCVERS[1]=2.9.1 +SRCPACK[1]=http://archlinux.c3sl.ufpr.br/other/pam_unix2/${SRCNAME[1]}-${SRCVERS[1]}.tar.bz2 +SRCCOPY[1]="GPL2" + +build1() +{ +sed -i 's|$(libdir)/security|$(libdir)/plugins/security|g' src/Makefile.{in,am} +LDFLAGS="-L${PKG}${SYS_DIR[lib]}" \ +CPPFLAGS="-I${PKG}${SYS_DIR[include]}" \ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --disable-rpath \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS THANKS +changelog NEWS +config ${PKG}${SYS_DIR[etc]}/default/passwd +} + +SRCNAME[2]=pam-policy +SRCVERS[2]=$(date +%Y%m%d) +# TODO: broken. Files are included in this repo. + +build2() +{ +make install-pam-package DESTDIR="${PKG}" EXT=".new" +} diff --git a/base/pam/pam_unix2-2.9.1-glibc216.patch.xz b/base/pam/pam_unix2-2.9.1-glibc216.patch.xz Binary files differnew file mode 100644 index 0000000..ddc7fc3 --- /dev/null +++ b/base/pam/pam_unix2-2.9.1-glibc216.patch.xz |