]> git.pld-linux.org Git - packages/dhcp.git/blobdiff - dhcp.spec
- build with USE_SOCKET_FALLBACK. Without that dhcp-relay always uses the last interf...
[packages/dhcp.git] / dhcp.spec
index 444b9ab62c96b20174779a7f3cd2005751e216c1..b49fdb9df80948a8738ca138536f95e9ed2a5cf9 100644 (file)
--- a/dhcp.spec
+++ b/dhcp.spec
@@ -3,18 +3,18 @@
 %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:       2
+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
@@ -23,6 +23,7 @@ Source5:      %{name}.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}
@@ -44,8 +45,7 @@ DHCP permite que hosts en una red TCP/IP soliciten y tengan sus
 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).
@@ -69,6 +69,7 @@ Summary(pl):  Klient DHCP
 Group:         Networking/Daemons
 Requires(post):        fileutils
 Obsoletes:     pump
+Obsoletes:     dhclient
 
 %description client
 Dynamic Host Configuration Protocol Client.
@@ -127,6 +128,7 @@ install %{SOURCE4} .
 %patch0 -p1
 %{?with_ldap:%patch1 -p1}
 %{?with_ldap:%patch2 -p1}
+%patch3 -p1
 
 cd doc
 echo "dhcpd complies with the following RFCs:" > rfc-compliance
@@ -142,7 +144,8 @@ cd ..
 %{__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
@@ -169,6 +172,7 @@ install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_bindir},%{_mandir}/man{5,8}} \
 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 \
@@ -244,6 +248,7 @@ fi
 %{_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
This page took 0.053213 seconds and 4 git commands to generate.