SHA256
1
0
forked from pool/dhcp

- Enable ldap CASA support on SLE only.

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=49
This commit is contained in:
Marius Tomaschewski 2010-12-07 14:52:41 +00:00 committed by Git OBS Bridge
parent 2eda4a09d5
commit 2ee797eb70
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 7 14:50:23 UTC 2010 - mt@suse.de
- Enable ldap CASA support on SLE only.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 30 21:56:04 UTC 2010 - mt@suse.de Tue Nov 30 21:56:04 UTC 2010 - mt@suse.de

View File

@ -22,10 +22,13 @@
%define omc_prefix /usr/share/omc %define omc_prefix /usr/share/omc
%define omc_svcdir %{omc_prefix}/svcinfo.d %define omc_svcdir %{omc_prefix}/svcinfo.d
%define with_ldap 1 %define with_ldap 1
%define with_ldapcasa 0%{?sles_version} > 0
Name: dhcp Name: dhcp
%if 0%{?with_ldap:1} %if 0%{?with_ldap}
%if 0%{?with_ldapcasa}
BuildRequires: CASA-devel BuildRequires: CASA-devel
%endif
BuildRequires: openldap2-devel BuildRequires: openldap2-devel
%endif %endif
BuildRequires: dos2unix BuildRequires: dos2unix
@ -198,7 +201,7 @@ Authors:
%patch15 -p0 %patch15 -p0
%patch20 -p1 %patch20 -p1
%patch21 -p1 %patch21 -p1
%if 0%{?with_ldap:1} %if 0%{?with_ldap}
%patch30 -p1 %patch30 -p1
%endif %endif
%patch39 -p1 %patch39 -p1
@ -235,10 +238,12 @@ autoreconf
--enable-failover \ --enable-failover \
--enable-paranoia \ --enable-paranoia \
--enable-early-chroot \ --enable-early-chroot \
%if 0%{?with_ldap:%with_ldap} %if 0%{?with_ldap}
--with-ldap \ --with-ldap \
--with-ldapcrypto \ --with-ldapcrypto \
%if 0%{with_ldapcasa}
--with-ldapcasa \ --with-ldapcasa \
%endif
%endif %endif
--with-cli-pid-file=%{_localstatedir}/run/dhclient.pid \ --with-cli-pid-file=%{_localstatedir}/run/dhclient.pid \
--with-cli-lease-file=%{_localstatedir}/lib/dhcp/dhclient.leases \ --with-cli-lease-file=%{_localstatedir}/lib/dhcp/dhclient.leases \
@ -272,7 +277,7 @@ install -d -m0755 $RPM_BUILD_ROOT/sbin
install -d -m0755 $RPM_BUILD_ROOT%{_sysconfdir}/init.d install -d -m0755 $RPM_BUILD_ROOT%{_sysconfdir}/init.d
install -d -m0755 $RPM_BUILD_ROOT/%{susefw2dir} install -d -m0755 $RPM_BUILD_ROOT/%{susefw2dir}
install -d -m0755 $RPM_BUILD_ROOT/%{omc_svcdir} install -d -m0755 $RPM_BUILD_ROOT/%{omc_svcdir}
%if 0%{?with_ldap:%with_ldap} %if 0%{?with_ldap}
install -d -m0755 $RPM_BUILD_ROOT%{_sysconfdir}/openldap/schema install -d -m0755 $RPM_BUILD_ROOT%{_sysconfdir}/openldap/schema
%endif %endif
install -d -m0755 $RPM_BUILD_ROOT%{_localstatedir}/run install -d -m0755 $RPM_BUILD_ROOT%{_localstatedir}/run
@ -320,7 +325,7 @@ install -m0644 $RPM_SOURCE_DIR/sysconfig.syslog-dhcpd \
install -m0644 $RPM_SOURCE_DIR/sysconfig.dhcrelay \ install -m0644 $RPM_SOURCE_DIR/sysconfig.dhcrelay \
$RPM_BUILD_ROOT%{_localstatedir}/adm/fillup-templates/ $RPM_BUILD_ROOT%{_localstatedir}/adm/fillup-templates/
# another config files and scripts # another config files and scripts
%if 0%{?with_ldap:%with_ldap} %if 0%{?with_ldap}
install -m0644 contrib/ldap/dhcp.schema \ install -m0644 contrib/ldap/dhcp.schema \
$RPM_BUILD_ROOT%{_sysconfdir}/openldap/schema $RPM_BUILD_ROOT%{_sysconfdir}/openldap/schema
%endif %endif
@ -445,7 +450,7 @@ if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi
%doc %{_mandir}/man8/dhcpd.8.gz %doc %{_mandir}/man8/dhcpd.8.gz
%doc %{_mandir}/man5/dhcpd.conf.5.gz %doc %{_mandir}/man5/dhcpd.conf.5.gz
%doc %{_mandir}/man5/dhcpd.leases.5.gz %doc %{_mandir}/man5/dhcpd.leases.5.gz
%if 0%{?with_ldap:%with_ldap} %if 0%{?with_ldap}
%dir %{_sysconfdir}/openldap %dir %{_sysconfdir}/openldap
%dir %{_sysconfdir}/openldap/schema %dir %{_sysconfdir}/openldap/schema
%attr(0644, root, root) %config %{_sysconfdir}/openldap/schema/dhcp.schema %attr(0644, root, root) %config %{_sysconfdir}/openldap/schema/dhcp.schema