Name: dhcp Version: 4.1.1b3 Release: 1mamba Summary: The ISC DHCP (Dynamic Host Configuration Protocol) client Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: ftp://ftp.freenet.de/pub/ftp.isc.org/isc/dhcp Source0: ftp://ftp.freenet.de/pub/ftp.isc.org/isc/dhcp/%{name}-%{version}.tar.gz Source1: dhcpd-initscript Source2: dhcpd-conf Source3: dhcpd-sysconfig Source4: dhcp-Makefile.conf Source5: dhcp-dhclient.conf Patch0: %{name}-3.0.1-dhclient-script-nodomain.patch Patch1: %{name}-3.0.2-dhclient-log-less-annoying.patch Patch2: %{name}-4.0.0-dhclient-script-chk4lock.patch Patch3: %{name}-4.0.0-dhclient-script-setpath.patch Patch4: %{name}-4.1.0-ping_from_if.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libopenssl-devel BuildRequires: net-tools ## AUTOBUILDREQ-END BuildRequires: idutils Requires: net-tools BuildRoot: %{_tmppath}/%{name}-%{version}-root %description DHCP (Dynamic Host Configuration Protocol) is a protocol which allows individual devices on an IP network to get their own network configuration information (IP address, subnetmask, broadcast address, etc.) from a DHCP server. The overall purpose of DHCP is to make it easier to administer a large network. This package contains the DHCP server and a DHCP relay agent. %package common Summary: Common files for DHCP Client and Server Group: System/Configuration %description common DHCP (Dynamic Host Configuration Protocol) is a protocol which allows individual devices on an IP network to get their own network configuration information (IP address, subnetmask, broadcast address, etc.) from a DHCP server. The overall purpose of DHCP is to make it easier to administer a large network. This is the common package with files required by both client and server. %package client Summary: DHCP client Group: System/Servers PreReq: net-tools Requires: %{name}-common = %{?epoch:%epoch:}%{version}-%{release} %description client DHCP client is the Internet Software Consortium (ISC) DHCP client for various UNIX operating systems. It allows a UNIX machine to obtain it's networking parameters from a DHCP server. %package devel Summary: DHCP common Group: System/Servers Requires: %{name}-common = %{?epoch:%epoch:}%{version}-%{release} %description devel DHCP (Dynamic Host Configuration Protocol) is a protocol which allows individual devices on an IP network to get their own network configuration information (IP address, subnetmask, broadcast address, etc.) from a DHCP server. The overall purpose of DHCP is to make it easier to administer a large network. The dhcp package includes the DHCP server and a DHCP relay agent. This package contains static libraries and header files need for development. %package server Summary: DHCP server Group: System/Servers Requires: %{name}-common = %{?epoch:%epoch:}%{version}-%{release} %description server DHCP (Dynamic Host Configuration Protocol) is a protocol which allows individual devices on an IP network to get their own network configuration information (IP address, subnetmask, broadcast address, etc.) from a DHCP server. The overall purpose of DHCP is to make it easier to administer a large network. The dhcp package includes the DHCP server and a DHCP relay agent. This package contains the DHCP server. %prep %setup -q #%patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 #cp %{S:4} Makefile.conf # #cat << EOF >> includes/site.h ##define _PATH_DHCPD_PID "%{_localstatedir}/run/dhcp/dhcpd.pid" ##define _PATH_DHCPD_DB "%{_localstatedir}/lib/dhcp/dhcpd.leases" ##define _PATH_DHCPD_CONF "%{_sysconfdir}/dhcpd.conf" #EOF # #cat << EOF >> includes/dhcp.h ##define _PATH_DHCLIENT_CONF "%{_sysconfdir}/dhclient.conf" ##define _PATH_DHCLIENT_DB "%{_localstatedir}/lib/dhcp/dhclient.leases" #EOF %build %configure \ --sbindir=/sbin \ --with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \ --with-cli-lease-file=/var/lib/dhcp/dhclient.leases \ --disable-dhcpv6 %make #\ # BINDIR=sbin \ # USERBINDIR=%{_bindir} \ # INCDIR=%{_includedir} \ # LIBDIR=%{_libdir} \ # USRMANDIR=%{_mandir}/man1 \ # ADMMANDIR=%{_mandir}/man3 \ # LIBMANDIR=%{_mandir}/man5 \ # FFMANDIR=%{_mandir}/man8 \ # VARRUN=%{_localstatedir}/run/dhcp \ # VARDB=%{_localstatedir}/lib/dhcp/ \ # CLIENTBINDIR=/sbin %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall DESTDIR=%{buildroot} #make install \ # BINDIR=%{buildroot}/sbin \ # USERBINDIR=%{buildroot}%{_bindir} \ # USRMANDIR=%{buildroot}%{_mandir}/man1 \ # LIBMANDIR=%{buildroot}%{_mandir}/man3 \ # FFMANDIR=%{buildroot}%{_mandir}/man5 \ # ADMMANDIR=%{buildroot}%{_mandir}/man8 \ # INCDIR=%{buildroot}%{_includedir} \ # LIBDIR=%{buildroot}%{_libdir} \ # VARRUN=%{buildroot}%{_localstatedir}/run/dhcp \ # VARDB=%{buildroot}%{_localstatedir}/lib/dhcp/ \ # CLIENTBINDIR=%{buildroot}/sbin install -m0700 client/scripts/linux %{buildroot}/sbin/dhclient-script install -D %{S:1} %{buildroot}%{_initrddir}/dhcpd install -D %{S:2} %{buildroot}%{_sysconfdir}/dhcpd.conf install -D %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/dhcpd install -D %{S:5} %{buildroot}%{_sysconfdir}/dhclient.conf install -d %{buildroot}%{_localstatedir}/lib/dhcp install -d %{buildroot}%{_localstatedir}/run/dhcp touch %{buildroot}%{_localstatedir}/lib/dhcp/dhcpd.leases %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %preun server # erase if [ $1 -eq 0 ]; then service dhcpd stop /sbin/chkconfig --del dhcpd fi : %postun server # update if [ $1 -eq 1 ]; then /sbin/chkconfig dhcpd [ $? -eq 0 ] && service dhcpd restart fi : %post client # Remove "tao" send hostname to fix bug from installations pre <20090705 sed -i "/^send host-name \"tao\"/d" /etc/dhclient.conf ## new install #if [ $1 -eq 1 ]; then # echo "send host-name \"`hostname`\";" \ # >> %{_sysconfdir}/dhclient.conf #fi : %files common %defattr(-,root,root) %{_bindir}/omshell %dir %{_localstatedir}/lib/dhcp %dir %{_localstatedir}/run/dhcp %{_mandir}/man1/omshell.* %doc LICENSE README RELNOTES %doc doc %files client %defattr(-,root,root) /sbin/dhclient /sbin/dhclient-script %attr(644,root,root) %config(noreplace) %{_sysconfdir}/dhclient.conf %{_mandir}/man5/dhclient* %{_mandir}/man5/dhcp-* %{_mandir}/man8/dhclient* %files server %defattr(-,root,root) /sbin/dhcpd /sbin/dhcrelay %attr(644,root,root) %config(noreplace) %{_sysconfdir}/dhcpd.conf %attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/dhcpd %attr(755,root,root) %{_initrddir}/dhcpd %config(noreplace) %{_localstatedir}/lib/dhcp/dhcpd.leases %{_mandir}/man5/dhcpd.* %{_mandir}/man8/dhcpd.* %{_mandir}/man8/dhcrelay.* %files devel %defattr(-,root,root) %dir %{_includedir}/dhcpctl %{_includedir}/dhcpctl/dhcpctl.h %dir %{_includedir}/isc-dhcp %{_includedir}/isc-dhcp/*.h %dir %{_includedir}/omapip %{_includedir}/omapip/*.h %{_libdir}/libdhcpctl.a %{_libdir}/libdst.a %{_libdir}/libomapi.a %{_mandir}/man3/* %changelog * Mon Oct 19 2009 Automatic Build System 4.1.1b3-1mamba - automatic update by autodist * Fri Jul 24 2009 Automatic Build System 4.1.0p1-1mamba - automatic update to 4.1.0p1 by autodist * Sun Jul 05 2009 Silvan Calarco 4.1.0-3mamba - dhclient.conf: remove default configuration for send host-name and let dhclient use default value * Sat Jan 17 2009 Silvan Calarco 4.1.0-2mamba - dhclient-script: ping ip from proper interface to test gateway reachability * Sun Dec 21 2008 Silvan Calarco 4.1.0-1mamba - automatic update to 4.1.0 by autodist * Mon Jul 07 2008 Silvan Calarco 4.0.0-2mamba - disabled ipv6 support * Thu Jul 03 2008 Silvan Calarco 4.0.0-1mamba - update to 4.0.0 * Sun Nov 18 2007 Stefano Cotta Ramusino 3.0.6-1mamba - update to 3.0.6 * Fri May 25 2007 Silvan Calarco 3.0.5-1mamba - update to 3.0.5 * Thu Jun 15 2006 Davide Madrisan 3.0.4-2qilnx - updated dhcpd initscript to fix qibug 24 * Fri May 12 2006 Davide Madrisan 3.0.4-1qilnx - update to version 3.0.4 by autospec - fixed license * Wed Apr 12 2006 Davide Madrisan 3.0.3-1qilnx - update to version 3.0.3 by autospec * Fri Nov 04 2005 Davide Madrisan 3.0.2-3qilnx - p#2 modified * Thu Nov 03 2005 Davide Madrisan 3.0.2-2qilnx - p#2: do not overwrite /etc/resolv.conf when locked * Mon May 05 2005 Silvan Calarco 3.0.2-1qilnx - make dhclient-script create /etc/resolv.conf even if domain name was not passed from DHCP server - make dhclient log less annoying when a interface is looking for a dhcp server * Fri Oct 22 2004 Silvan Calarco 3.0.1-2qilnx - added requirement for net-tools * Sun Jul 18 2004 Silvan Calarco 3.0.1-1qilnx - new version build * Mon Dec 02 2003 Silvan Calarco 3.0pl2-7qilnx - removed initscript reload (not supported by dhcpd) * Wed Oct 08 2003 Davide Madrisan 3.0p12-6qilnx - new policies for chkconfig and automatic start/restart of the dhcp service * Mon Jul 02 2003 Silvan Calarco 3.0pl2-5qilnx - fixed dhclient.conf send host-name (a ; was missing) - fixed initscript [ OK ] alignment * Mon Jun 23 2003 Silvan Calarco 3.0pl2-4qilnx - fixed dhcclient leases dir - added new-style post and pre scripts * Wed May 28 2003 Silvan Calarco 3.0pl2-3qilnx - added initscripts and configuration * Wed Apr 16 2003 Luca Tinelli - modified description * Tue Apr 15 2003 Luca Tinelli - first build