File aehostd-modules.spec of Package aehostd-modules
#
# spec file for package aehostd-modules
#
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{!?_pam_moduledir: %define _pam_moduledir /%{_lib}/security}
Name: aehostd-modules
Version: 0.9.12
Release: 0
Summary: NSS and PAM modules for aehostd (AE-DIR)
License: LGPL-2.1-or-later
Group: Productivity/Networking/LDAP/Clients
URL: https://arthurdejong.org/nss-ldapd/
Source0: https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-%{version}.tar.gz
Source1: https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-%{version}.tar.gz.sig
Source2: %{name}.keyring
Source100: %{name}-rpmlintrc
BuildRequires: automake
BuildRequires: pam-devel
Requires: pam
%description
The front-end modules used to use NSS and PAM via aehostd.
This package is only useful when using AE-DIR as LDAP server.
%prep
%setup -qn nss-pam-ldapd-%{version}
%build
autoreconf
export CPPFLAGS="-I/usr/include/sasl"
%configure \
--with-module-name=aedir \
--disable-nslcd --disable-pynslcd --disable-kerberos \
--libdir=/%{_lib} \
--with-pam-seclib-dir=%{_pam_moduledir} \
--disable-utils \
--with-nss-maps=passwd,group,hosts \
--with-nslcd-socket=/var/run/aehostd/aehostd.sock
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
rm %{buildroot}/%{_sysconfdir}/nslcd.conf
%pre
%post
/sbin/ldconfig
%preun
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%license COPYING
%doc AUTHORS ChangeLog NEWS README
/%{_lib}/libnss_aedir.so.2
%{_pam_moduledir}/pam_aedir.so
%{_mandir}/man?/*
%changelog