%bcond_with ldap # with support for ldap storage
#
Summary: DHCP Server
-Summary(es): Servidor DHCP (Protocolo de configuración dinámica de hosts)
+Summary(es): Servidor DHCP
Summary(pl): Serwer DHCP
Summary(pt_BR): Servidor DHCP (Protocolo de configuração dinâmica de hosts)
Name: dhcp
-Version: 3.0.1
-Release: 1
+Version: 3.0.2
+Release: 2.1
Epoch: 3
Vendor: ISC
License: distributable
Group: Networking/Daemons
Source0: ftp://ftp.isc.org/isc/dhcp/%{name}-%{version}.tar.gz
-# Source0-md5: 44f72d16a12acc3fbe09703157aa42d2
+# Source0-md5: 04800a111521e7442749b2ce883f962b
Source1: %{name}.init
Source2: %{name}-relay.init
Source3: %{name}-relay.sysconfig
Patch0: %{name}-if_buffer_size.patch
Patch1: %{name}-ldap.patch
Patch2: %{name}-ldap1.patch
+Patch3: %{name}-gcc343-fix.patch
URL: http://www.isc.org/sw/dhcp/
BuildRequires: groff
%{?with_ldap:BuildRequires: openldap-devel}
direcciones IP alocadas dinámicamente, permite también descubrir
información sobre la red en que están conectados. BOOTP provee una
funcionalidad similar, con ciertas restricciones. Este servidor
-también las atiende. Esta versión aún está considerada como un
-software BETA.
+también las atiende.
%description -l pl
Serwer DHCP (Dynamic Host Configuration Protocol).
Group: Networking/Daemons
Requires(post): fileutils
Obsoletes: pump
+Obsoletes: dhclient
%description client
Dynamic Host Configuration Protocol Client.
%patch0 -p1
%{?with_ldap:%patch1 -p1}
%{?with_ldap:%patch2 -p1}
+%patch3 -p1
cd doc
echo "dhcpd complies with the following RFCs:" > rfc-compliance
%{__make} \
COPTS="%{rpmcflags} \
-D_PATH_DHCPD_DB=\\\"/var/lib/%{name}/dhcpd.leases\\\" \
- -D_PATH_DHCLIENT_DB=\\\"/var/lib/%{name}/dhclient.leases\\\"" \
+ -D_PATH_DHCLIENT_DB=\\\"/var/lib/%{name}/dhclient.leases\\\" \
+ -DUSE_SOCKET_FALLBACK" \
DEBUG="" VARDB="/var/lib/%{name}"
%install
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcpd
install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp-relay
install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/dhcp-relay
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/dhcpd.conf
install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/dhcpd
mv $RPM_BUILD_ROOT%{_mandir}/man3/omshell.3 \
%{_mandir}/man5/dhcp*
%{_mandir}/man8/dhcp*
%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcpd
+%config(noreplace) %verify(not size mtime md5) /etc/dhcpd.conf
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/dhcpd
%attr(754,root,root) /etc/rc.d/init.d/dhcpd