-Summary: DHCPC Daemon
-Name: dhcpcd
-%define version 1.3.17pl2
-Version: %{version}
-Release: 1
-Copyright: GPL
-Group: System Environment/Daemons
-Source: ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/dhcpcd-1.3.17-pl2.tar.gz
-Patch: dhcpcd-1.3.17-misc.patch
-#Patch1: dhcpcd-0.65-glibc.patch
-#Patch2: dhcpcd-0.65-buffer.patch
-#Patch3: dhcpcd-0.65-align.patch
-Patch4: dhcpcd-0.70-rtup.patch
+Summary: DHCP Client Daemon
+Name: dhcpcd
+Version: 1.3.18pl7
+Release: 1
+License: GPL
+Group: System Environment/Daemons
+Source: ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/%{name}-1.3.18-pl7.tar.gz
+Patch: dhcpcd-configure.patch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sbindir /sbin
+
%description
-dhcpcd is an implementation of the DHCP client specified in
-draft-ietf-dhc-dhcp-09 (when -r option is not speci- fied) and RFC1541
+dhcpcd is an implementation of the DHCP client specified in
+draft-ietf-dhc-dhcp-09 (when -r option is not speci- fied) and RFC1541
(when -r option is specified).
-It gets the host information (IP address, netmask, broad- cast address,
+It gets the host information (IP address, netmask, broad- cast address,
etc.) from a DHCP server and configures the network interface of the
-machine on which it is running. It also tries to renew the lease time
+machine on which it is running. It also tries to renew the lease time
according to RFC1541 or draft-ietf-dhc-dhcp-09.
%description -l pl
dhcpd jest implementacja klienta DHCP, opisan± w draft-ietf-dhc-dhcp-09
(kiedy nie podaje siê opcji -r) oraz RFC1544 (kiedy podaje siê opcjê -r).
-Pobiera on informacjê o komputerze (adres IP, maska sieci, adres rozg³oszeniowy
-itd.) i konfiguruje interfejs sieciowy maszyny, na której jest uruchomiony.
-Próbuje równie¿ od¶wiezyæ czas przestoju zgodnie z RFC1541 oraz
-draft-ietf-dhc-dhcp-09.
+Pobiera on informacjê o komputerze (adres IP, maska sieci, adres
+rozg³oszeniowy itd.) i konfiguruje interfejs sieciowy maszyny, na której
+jest uruchomiony. Próbuje równie¿ od¶wiezyæ czas przestoju zgodnie z
+RFC1541 oraz draft-ietf-dhc-dhcp-09.
%prep
-%setup -q -n dhcpcd-1.3.17-pl2
-%patch0 -p1 -b .misc
-#%patch1 -p1 -b .glibc
-#%patch2 -p1 -b .buffer
-#%patch3 -p1 -b .align
-#%patch4 -p1 -b .rtup
+%setup -q -n dhcpcd-1.3.18-pl7
+%patch -p1
%build
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+autoconf
+%configure
+make
%install
rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/sbin $RPM_BUILD_ROOT/usr/man/man8
-install -s -m 755 dhcpcd $RPM_BUILD_ROOT/sbin/dhcpcd
-install -m 644 dhcpcd.8 $RPM_BUILD_ROOT/usr/man/man8/dhcpcd.8
+make install DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/* \
+ README
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root)
-%doc README
-/sbin/dhcpcd
-/usr/man/man8/dhcpcd.8
+%defattr(644,root,root,755)
+%doc README.gz
+%attr(755,root,root) /sbin/dhcpcd
+%{_mandir}/man8/dhcpcd.8.gz