Accommodate OpenSUSE PAM config and modernize for 64-bit platforms.

Sun, 05 Aug 2012 22:54:08 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 05 Aug 2012 22:54:08 +0200
changeset 481
7b6013bffe8c
parent 480
332ec562ab2e
child 482
8c83aede6fbd

Accommodate OpenSUSE PAM config and modernize for 64-bit platforms.

pam/pam.spec file | annotate | diff | comparison | revisions
     1.1 --- a/pam/pam.spec	Sun Aug 05 22:52:01 2012 +0200
     1.2 +++ b/pam/pam.spec	Sun Aug 05 22:54:08 2012 +0200
     1.3 @@ -32,7 +32,7 @@
     1.4  Group:        Meta
     1.5  License:      PD
     1.6  Version:      0
     1.7 -Release:      20110219
     1.8 +Release:      20120800
     1.9  
    1.10  #   list of sources
    1.11  Source0:      pamtool
    1.12 @@ -61,6 +61,7 @@
    1.13  
    1.14      #   search for configuration location
    1.15      for cfgloc in \
    1.16 +        /etc/pam.d/other \
    1.17          /etc/pam.d \
    1.18          /etc/pam.conf \
    1.19      ; do
    1.20 @@ -75,6 +76,9 @@
    1.21          mod=`cat $pam_cfgloc/* 2>/dev/null | grep -i '^#*[ 	]*other' | head -1 | awk '{ print $3; }'`
    1.22      elif [ -f $pam_cfgloc ]; then
    1.23          mod=`cat $pam_cfgloc 2>/dev/null | grep -i '^#*[ 	]*other' | head -1 | awk '{ print $4; }'`
    1.24 +        if [ ".$mod" = . ]; then \
    1.25 +            mod=`cat $pam_cfgloc 2>/dev/null | grep -i '^#*[ 	]*auth' | head -1 | awk '{ print $3; }'`
    1.26 +        fi
    1.27      else
    1.28          mod=""
    1.29      fi
    1.30 @@ -98,9 +102,13 @@
    1.31      #   search for library directory
    1.32      for libdir in \
    1.33          /lib \
    1.34 +        /lib64 \
    1.35          /usr/lib \
    1.36 +        /usr/lib64 \
    1.37          /usr/local/lib \
    1.38 +        /usr/local/lib64 \
    1.39          /opt/lib \
    1.40 +        /opt/lib64 \
    1.41      ; do
    1.42          for ext in a so sl so.0; do
    1.43              if [ -f "$libdir/libpam.$ext" ]; then

mercurial