# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344200048 -7200 # Node ID 7b6013bffe8ce77b16ed52c1431084f402e18c56 # Parent 332ec562ab2e70e8616a259df576444913c30b43 Accommodate OpenSUSE PAM config and modernize for 64-bit platforms. diff -r 332ec562ab2e -r 7b6013bffe8c pam/pam.spec --- a/pam/pam.spec Sun Aug 05 22:52:01 2012 +0200 +++ b/pam/pam.spec Sun Aug 05 22:54:08 2012 +0200 @@ -32,7 +32,7 @@ Group: Meta License: PD Version: 0 -Release: 20110219 +Release: 20120800 # list of sources Source0: pamtool @@ -61,6 +61,7 @@ # search for configuration location for cfgloc in \ + /etc/pam.d/other \ /etc/pam.d \ /etc/pam.conf \ ; do @@ -75,6 +76,9 @@ mod=`cat $pam_cfgloc/* 2>/dev/null | grep -i '^#*[ ]*other' | head -1 | awk '{ print $3; }'` elif [ -f $pam_cfgloc ]; then mod=`cat $pam_cfgloc 2>/dev/null | grep -i '^#*[ ]*other' | head -1 | awk '{ print $4; }'` + if [ ".$mod" = . ]; then \ + mod=`cat $pam_cfgloc 2>/dev/null | grep -i '^#*[ ]*auth' | head -1 | awk '{ print $3; }'` + fi else mod="" fi @@ -98,9 +102,13 @@ # search for library directory for libdir in \ /lib \ + /lib64 \ /usr/lib \ + /usr/lib64 \ /usr/local/lib \ + /usr/local/lib64 \ /opt/lib \ + /opt/lib64 \ ; do for ext in a so sl so.0; do if [ -f "$libdir/libpam.$ext" ]; then