From 1ed331a6a4ce7b26a131e4b5863686be8fdb856b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:43:18 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.9.12-1mamba;Sat Dec 04 2021] --- README.md | 2 ++ nss-pam-ldapd.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 nss-pam-ldapd.spec diff --git a/README.md b/README.md index bdb0047..40fdabd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # nss-pam-ldapd +nss-pam-ldapd provides a Name Service Switch (NSS, nsswitch) module that allows your LDAP server to provide user account, group, host name, alias, netgroup, and basically any other information that you would normally get from /etc flat files or NIS. It also provides a Pluggable Authentication Module (PAM) to do identity and authentication management with an LDAP server on unix systems. + diff --git a/nss-pam-ldapd.spec b/nss-pam-ldapd.spec new file mode 100644 index 0000000..953d0d4 --- /dev/null +++ b/nss-pam-ldapd.spec @@ -0,0 +1,79 @@ +Name: nss-pam-ldapd +Version: 0.9.12 +Release: 1mamba +Summary: A Name Service Switch (NSS, nsswitch) module for LDAP server +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://arthurdejong.org/nss-pam-ldapd/ +Source: https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgssapi-devel +BuildRequires: libopenldap-devel +BuildRequires: libpam-devel +## AUTOBUILDREQ-END +Provides: libnss_ldap <= 266 +Obsoletes: libnss_ldap <= 266 +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +nss-pam-ldapd provides a Name Service Switch (NSS, nsswitch) module that allows your LDAP server to provide user account, group, host name, alias, netgroup, and basically any other information that you would normally get from /etc flat files or NIS. It also provides a Pluggable Authentication Module (PAM) to do identity and authentication management with an LDAP server on unix systems. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure \ + --with-pam-seclib-dir=%{_libdir}/security \ + PYTHON=%{__python3} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_sysconfdir}/nslcd.conf +%{_bindir}/chsh.ldap +%{_bindir}/getent.ldap +%{_sbindir}/nslcd +%dir %{_datadir}/nslcd-utils +%{_datadir}/nslcd-utils/*.py +%dir %{_datadir}/nslcd-utils/__pycache__ +%{_datadir}/nslcd-utils/__pycache__/*.pyc +%{_mandir}/man1/chsh.ldap.1* +%{_mandir}/man1/getent.ldap.1* +%{_mandir}/man5/nslcd.conf.5* +%{_mandir}/man8/nslcd.8* +%{_mandir}/man8/pam_ldap.8* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libnss_ldap.so.* +%{_libdir}/security/pam_ldap.so +%doc AUTHORS COPYING + +%changelog +* Sat Dec 04 2021 Silvan Calarco 0.9.12-1mamba +- package created using the webbuild interface