mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
Lighten openldap-schema-dhcp to simplify it's maintenance
This commit is contained in:
parent
ec4fb6ecf2
commit
f581a50725
1 changed files with 0 additions and 9 deletions
|
@ -1,10 +1,6 @@
|
|||
%define major_version 4.3.2
|
||||
%define patch_version %{nil}
|
||||
|
||||
# Detect OpenLDAP schema dir
|
||||
%{!?ol_major: %global ol_major %nil}
|
||||
%define schema_dir %{_datadir}/openldap%{ol_major}/schema
|
||||
|
||||
Name: dhcp
|
||||
Epoch: 3
|
||||
Version: %{major_version}%{patch_version}
|
||||
|
@ -270,10 +266,7 @@ rm -f %{buildroot}%{_sysconfdir}/dhcpd.conf.example
|
|||
rm -f %{buildroot}%{_libdir}/*.a
|
||||
|
||||
# Prepare schema files to be included into OpenLDAP configuration
|
||||
mkdir -p %{buildroot}%{schema_dir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/openldap/{schema,slapd.d}
|
||||
install -m 0644 contrib/ldap/dhcp.schema %{buildroot}%{schema_dir}
|
||||
install -m 0644 contrib/ldap/dhcpd-conf-to-ldap %{buildroot}%{schema_dir}
|
||||
install -m 0644 contrib/ldap/dhcp.schema %{buildroot}%{_sysconfdir}/openldap/schema/
|
||||
install -m 0644 contrib/ldap/README.ldap %{buildroot}%{_sysconfdir}/openldap/schema/README.%{name}
|
||||
cat > %{buildroot}%{_sysconfdir}/openldap/slapd.d/%{name}.conf <<EOF
|
||||
|
@ -373,7 +366,5 @@ rm -rf %{_var}/lib/dhclient/dhclient.leases
|
|||
%exclude %{_mandir}/man3/omapi.3*
|
||||
|
||||
%files -n openldap-schemas-%{name}
|
||||
%{schema_dir}/*.schema
|
||||
%{schema_dir}/dhcpd-conf-to-ldap
|
||||
%config(noreplace) %{_sysconfdir}/openldap/schema/*
|
||||
%attr(750,ldap,ldap) %config(noreplace) %{_sysconfdir}/openldap/slapd.d/%{name}.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue