Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37045185
en ru br
ALT Linux repos
S:1.9.0-alt4
5.0: 1.4.5.1-alt1
4.1: 1.4.3.1-alt1
4.0: 1.4.2-alt1
3.0: 1.2.1-alt1

Group :: System/Base
RPM: pam-config

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/pam.d/system-auth
CONFIG_LOCAL=/etc/pam.d/system-auth-local
CONFIG_LDAP=/etc/pam.d/system-auth-ldap

[ -f "$CONFIG_LOCAL" ] ||
CONFIG_LOCAL="$CONFIG"

new_summary "pam_mktemp support in system authentication"

new_subst enabled \
'^(account|session)[[:space:]]+required[[:space:]]+pam_mktemp.so[[:space:]]*$' \
's,^#\(\(account\|session\)[[:space:]]\+required[[:space:]]\+pam_mktemp.so[[:space:]]*\)$,\1,'
new_subst disabled \
'^#(account|session)[[:space:]]+required[[:space:]]+pam_mktemp.so[[:space:]]*$' \
's,^\(\(account\|session\)[[:space:]]\+required[[:space:]]\+pam_mktemp.so[[:space:]]*\)$,#\1,'

new_help enabled "Enable pam_mktemp support"
new_help disabled "Disable pam_mktemp support"

if is_builtin_mode "$*"; then
control_subst "$CONFIG" "$*"
else
control_subst "$CONFIG_LOCAL" "$*" || exit 1
if [ -f "$CONFIG_LDAP" ]; then
control_subst "$CONFIG_LDAP" "$*" || exit 1
fi
fi
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin