aboutsummaryrefslogtreecommitdiffstats
path: root/fix_pamd
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2008-02-10 14:24:43 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2008-02-10 14:24:43 +0000
commit7c291669bab5cf44b615a7073eb0752be7a44612 (patch)
tree7df29cadeddfb6419661e052ca933161d5e38c3a /fix_pamd
parent0fd87f896eea780920497633ec02f2759e80ab89 (diff)
downloadspec-helper-7c291669bab5cf44b615a7073eb0752be7a44612.tar
spec-helper-7c291669bab5cf44b615a7073eb0752be7a44612.tar.gz
spec-helper-7c291669bab5cf44b615a7073eb0752be7a44612.tar.bz2
spec-helper-7c291669bab5cf44b615a7073eb0752be7a44612.tar.xz
spec-helper-7c291669bab5cf44b615a7073eb0752be7a44612.zip
name harmonization
Diffstat (limited to 'fix_pamd')
-rwxr-xr-xfix_pamd11
1 files changed, 11 insertions, 0 deletions
diff --git a/fix_pamd b/fix_pamd
new file mode 100755
index 0000000..d9a332d
--- /dev/null
+++ b/fix_pamd
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if test -z "$DONT_FIX_PAMD_CONFIGS"; then
+ configs=`find $RPM_BUILD_ROOT/etc/pam.d/ -type f ! -type l 2> /dev/null`
+ if [ -n "$configs" ]; then
+ echo -n "Fixing pam.d config files..."
+ perl -pi -e "s,/(lib|lib64)/security/,," $configs
+ echo "done"
+ fi
+fi
+