diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2002-06-26 12:18:04 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2002-06-26 12:18:04 +0000 |
commit | b0afd1c27eeec6e2c18c41d254f9234df0b7244d (patch) | |
tree | 1809cf0b7fe187dce99622378e70bc272a78f210 | |
parent | 3fbfca30c9eb524661ea80d19e063dadd07c294c (diff) | |
download | spec-helper-b0afd1c27eeec6e2c18c41d254f9234df0b7244d.tar spec-helper-b0afd1c27eeec6e2c18c41d254f9234df0b7244d.tar.gz spec-helper-b0afd1c27eeec6e2c18c41d254f9234df0b7244d.tar.bz2 spec-helper-b0afd1c27eeec6e2c18c41d254f9234df0b7244d.tar.xz spec-helper-b0afd1c27eeec6e2c18c41d254f9234df0b7244d.zip |
- spec-helper: fix modules location in pam.d config files.
- spec-helper.spec: 0.6-5mdk
-rwxr-xr-x | spec-helper | 17 | ||||
-rw-r--r-- | spec-helper.spec | 5 |
2 files changed, 20 insertions, 2 deletions
diff --git a/spec-helper b/spec-helper index 35e95e8..d21cdd6 100755 --- a/spec-helper +++ b/spec-helper @@ -23,13 +23,14 @@ export PATH # usage usage() { - echo "usage: spec-helper [-l|-c|-m|-s|-L]" 1>&2 + echo "usage: spec-helper [-l|-c|-m|-s|-L|-g|-p]" 1>&2 echo "-c don't clean up files" 1>&2 echo "-m don't compress files" 1>&2 echo "-s don't strip files" 1>&2 echo "-l don't fix full link as relative." 1>&2 echo "-L don't build lib symlinks." 1>&2 echo "-g don't grpintify init scripts." 1>&2 + echo "-p don't fix pam.d configs." 1>&2 } # handle options @@ -41,6 +42,7 @@ while [ $# != 0 ]; do -l) DONT_RELINK=1;; -L) DONT_SYMLINK_LIBS=1;; -g) DONT_GPRINTIFY=1;; + -p) DONT_FIX_PAMD_CONFIGS=1;; *) usage; exit 1;; esac @@ -64,6 +66,19 @@ if test -z "$DONT_GPRINTIFY"; then fi fi +if test -z "$DONT_FIX_PAMD_CONFIGS"; then + configs=`ls $RPM_BUILD_ROOT/etc/pam.d/* 2> /dev/null` + if [ -n "$configs" ]; then + echo -n "Fixing pam.d config files..." + lib64= + case `arch` in + x86_64* | sparc64* | ppc64* ) lib64=yes;; + esac + test -n "$lib64" && perl -pi -e "s|/lib/security|/lib64/security|" $configs + echo "done" + fi +fi + exit 0 # spec-helper ends here diff --git a/spec-helper.spec b/spec-helper.spec index 3437a69..8a3d7dd 100644 --- a/spec-helper.spec +++ b/spec-helper.spec @@ -1,6 +1,6 @@ %define name spec-helper %define version 0.6 -%define release 4mdk +%define release 5mdk Summary: Tools to ease the creation of rpm packages Name: %{name} @@ -40,6 +40,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/spec-helper %changelog +* Wed Jun 26 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.6-5mdk +- fix modules location in pam.d config files. + * Wed Feb 20 2002 Frederic Lepied <flepied@mandrakesoft.com> 0.6-4mdk - don't gprintify if init scripts doesn't contain a source functions |