|
Lines 2-8
Link Here
|
| 2 |
|
2 |
|
| 3 |
Name: pam_ldap |
3 |
Name: pam_ldap |
| 4 |
Version: 180 |
4 |
Version: 180 |
| 5 |
Release: alt5.1 |
5 |
Release: alt5.2 |
| 6 |
|
6 |
|
| 7 |
Summary: PAM module for LDAP |
7 |
Summary: PAM module for LDAP |
| 8 |
Summary(ru_RU.KOI8-R): íÏÄÕÌØ PAM ÄÌÑ LDAP |
8 |
Summary(ru_RU.KOI8-R): íÏÄÕÌØ PAM ÄÌÑ LDAP |
|
Lines 53-69
Link Here
|
| 53 |
%configure \ |
53 |
%configure \ |
| 54 |
--with-ldap-lib=openldap \ |
54 |
--with-ldap-lib=openldap \ |
| 55 |
--with-ldap-conf-file=%_sysconfdir/pam_ldap.conf \ |
55 |
--with-ldap-conf-file=%_sysconfdir/pam_ldap.conf \ |
| 56 |
--with-ldap-secret-file=%_sysconfdir/pam_ldap.secret |
56 |
--with-ldap-secret-file=%_sysconfdir/pam_ldap.secret \ |
|
|
57 |
--libdir=/%_lib |
| 58 |
|
| 57 |
|
59 |
|
| 58 |
%make_build |
60 |
%make_build |
| 59 |
%make check |
61 |
%make check |
| 60 |
|
62 |
|
| 61 |
%install |
63 |
%install |
| 62 |
mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,/lib,%_libdir} |
64 |
mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,/%_lib,%_libdir} |
| 63 |
|
65 |
|
| 64 |
|
66 |
|
| 65 |
# Install the nsswitch module. |
67 |
# Install the nsswitch module. |
| 66 |
install -pD -m755 pam_ldap.so $RPM_BUILD_ROOT/lib/security/pam_ldap.so |
68 |
install -pD -m755 pam_ldap.so $RPM_BUILD_ROOT/%_lib/security/pam_ldap.so |
| 67 |
# Install the default configuration file, but change the search bases to |
69 |
# Install the default configuration file, but change the search bases to |
| 68 |
# something generic. |
70 |
# something generic. |
| 69 |
sed -e 's/dc=padl/dc=example/g' ldap.conf >$RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf |
71 |
sed -e 's/dc=padl/dc=example/g' ldap.conf >$RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf |
|
Lines 73-79
Link Here
|
| 73 |
|
75 |
|
| 74 |
|
76 |
|
| 75 |
%files |
77 |
%files |
| 76 |
/lib/security/* |
78 |
/%_lib/security/* |
| 77 |
### This file is different from nss_ldap package! It's in TODO for next release |
79 |
### This file is different from nss_ldap package! It's in TODO for next release |
| 78 |
%config(noreplace) %_sysconfdir/pam_ldap.conf |
80 |
%config(noreplace) %_sysconfdir/pam_ldap.conf |
| 79 |
%doc AUTHORS ChangeLog README pam.d ldap.conf |
81 |
%doc AUTHORS ChangeLog README pam.d ldap.conf |