Browse Source

pam: cleaned pam.conf by using tar -C and overlay_install()

cross
Alejandro Mery 16 years ago
parent
commit
36b79112bf
  1. 0
      base/pam/install/etc_pam.d_other.txt
  2. 0
      base/pam/install/etc_pam.d_system-auth.txt
  3. 22
      base/pam/pam.conf

0
base/pam/etc_pamd_other.txt → base/pam/install/etc_pam.d_other.txt

0
base/pam/etc_pamd_system-auth.txt → base/pam/install/etc_pam.d_system-auth.txt

22
base/pam/pam.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../pam/pam.conf # Filename: package/.../pam/pam.conf
# Copyright (C) 2006 - 2007 The OpenSDE Project # Copyright (C) 2006 - 2009 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf # Copyright (C) 1998 - 2003 Clifford Wolf
# #
@ -28,23 +28,10 @@ else
var_append extraconfopt " " "--disable-prelude" var_append extraconfopt " " "--disable-prelude"
fi fi
install_pam_configs() {
mkdir -p $root/etc/pam.d
for x in $confdir/etc_pamd_*.txt; do
file="`echo $x | sed -e 's,.*etc_pamd_,/etc/pam.d/,' -e s,.txt,,`"
if [ ! -f $root$file ]; then
cp -vf $x $root$file
else
touch $root$file
fi
done
}
# Install default pam.d/* files (without them, # Install default pam.d/* files (without them,
# nobody can log in on the system.. ;-) # nobody can log in on the system.. ;-)
# #
hook_add postmake 5 "install_pam_configs" hook_add postmake 5 "overlay_apply '$confdir/install'"
# Outch: --disable-debug enables debugging... # Outch: --disable-debug enables debugging...
# #
@ -55,8 +42,5 @@ var_remove confopt " " "--disable-debug"
hook_add postmake 5 "install_pam_docs" hook_add postmake 5 "install_pam_docs"
install_pam_docs() { install_pam_docs() {
( tar -C "$root$docdir" -v $taropt `match_source_file -p docs`
cd $root$docdir
tar -v $taropt `match_source_file -p '.*doc.*'`
)
} }

Loading…
Cancel
Save