fedora_config_packages/openldap/rpmbuild.spec

32 lines
683 B
RPMSpec

Name: openldap-myconf
Version: 1.0
Release: 0.%(perl -e 'print time()')
Summary: Custom OpenLDAP configuration
License: MIT
Group: Development/Tools
Requires: openldap
Requires: nss-pam-ldapd
Requires: openldap-clients
BuildArch: noarch
%description
Config file for OpenLDAP with ldap
%pre
rm -f /etc/openldap/ldap.conf.myconf
%post
cp -f /etc/openldap/ldap.conf.myconf /etc/openldap/ldap.conf
%files
%defattr(-,root,root,-)
%attr(644,root,root) /etc/openldap/ldap.conf.myconf
%install
mkdir -p %{buildroot}/etc/openldap
cp ldap.conf %{buildroot}/etc/openldap/ldap.conf.myconf
%changelog
* Sat Nov 02 2024 David Rotermund <davrot@uni-bremen.de> - 1.0-1
- Initial RPM release.