Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 635f52aecb8e8f41c26522d4911b7fbe > files > 3

dhcpcd-1.3.22pl4-4mdk.src.rpm

%define	name	dhcpcd
%define	version	1.3.22pl4
%define	rversion	1.3.22-pl4
%define	release	4mdk

Summary:	DHCPC Daemon
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		System/Servers
Source0:	ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/dhcpcd-%{rversion}.tar.bz2
Patch1:		dhcpcd-1.3.22-pl4-resolvrdv.patch.bz2
#Patch0:	dhcpcd-1.3.22-pl3.pid.patch.bz2
Url:		http://www.phystech.com/download/dhcpcd.html
PreReq:		rpm-helper
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%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
(when -r option is specified).

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
according to RFC1541 or draft-ietf-dhc-dhcp-09.

%prep
%setup -q -n %{name}-%{rversion}
%patch1 -p1 -b .resolvrdv
#%patch0 -p1

%build
%configure2_5x
%make DEFS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/var/log

install -s -m755 dhcpcd -D $RPM_BUILD_ROOT/sbin/dhcpcd
install -s -m755 dhcpcd.exe -D $RPM_BUILD_ROOT%{_sysconfdir}/dhcpc/dhcpcd.exe
install -m644 dhcpcd.8 -D $RPM_BUILD_ROOT/%{_mandir}/man8/dhcpcd.8
touch $RPM_BUILD_ROOT/var/log/%{name}.log

%clean
rm -rf $RPM_BUILD_ROOT


%post
# Create initial log files so that logrotate doesn't complain
if [ $1 = 1 ]; then # first install
	%create_ghostfile dhcpcd root root 644
fi

%files
%defattr(-,root,root)
%doc README ChangeLog INSTALL *.lsm
%config(noreplace) %{_sysconfdir}/dhcpc/*
/sbin/dhcpcd
%{_mandir}/man8/dhcpcd.8*
%ghost /var/log/%{name}.log

%changelog
* Sat Jan 22 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.3.22pl4-4mdk
- add prepreq on rpm-helper
- cosmetics
- no .bz2 ending for man page in %%files

* Wed Jul 23 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.3.22pl4-3mdk
- rebuild

* Mon Jan 20 2003 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.22pl4-2mdk
- Launch /sbin/update-resolvrdv when upgrading dns.

* Sat Jan 04 2003 Vincent Danen <vdanen@mandrakesoft.com> 1.3.22pl4-1mdk
- 1.3.22pl4

* Wed Oct 16 2002 Florin <florin@mandrakesoft.com> 1.3.22pl3-1mdk
- 1.3.22pl3
- ghost
- remove the pid patch

* Mon Feb 18 2002 Florin <florin@mandrakesoft.com> 1.3.22pl1-3mdk
- update the man page according to the pid patch

* Mon Feb 18 2002 Florin <florin@mandrakesoft.com> 1.3.22pl1-2mdk
- put the pid file in /var/run (pid patch)

* Tue Jan 29 2002 Florin <florin@mandrakesoft.com> 1.3.22pl1-1mdk
- 1.3.22pl1

* Mon Jan 14 2002 Florin <florin@mandrakesoft.com> 1.3.21pl2-1mdk
- 1.3.21pl2
- add Url tag

* Fri Oct 19 2001 Florin <florin@mandrakesoft.com> 1.3.21pl1-1mdk
- 1.3.21-pl1
- WARNING: make sure you use -R -Y -d options in the initscripts
- s/Copyright/License
- remove useless patches
- add README ChangeLog COPYING INSTALL *.lsm files
- add the %{_sysconfdir}/dhcpcd.exe file

* Sun Apr 08 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3.20pl0-1mdk
- Roll out 1.3.20pl0 for everyone.

* Thu Dec 21 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3.19pl4-1mdk
- new and shiny source.

* Thu Oct 19 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.19pl1-2mdk
- Add patch for gcc2.96(rh).

* Tue Aug 08 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3.19pl1-1mdk
- rebuild to use _sysconfdir
- s|1.3.18pl5|1.3.19pl1|

* Fri Jul 28 2000 Vincent Saugey <vince@mandrakesoft.com> 1.3.18pl5-3mdk
- BM, macros

* Tue Apr 18 2000 Vincent Saugey <vince@mandrakesoft.com> 1.3.18pl5-2mdk
- Add patch for dynamic build
- remove bzip and strip file

* Fri Mar 31 2000 Vincent Saugey <vince@mandrakesoft.com> 1.3.18pl5-1mdk
- Correct group
- Update to 1.3.18-pl5

* Sun Nov  7 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- 1.3.18-pl3
- add /etc/dhcpc

* Sun Jul 18 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- 1.3.17pl9

* Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Mon Apr 19 1999 Bill Nottingham <notting@redhat.com>
- build for 6.0

* Wed Dec 23 1998 Jeff Johnson <jbj@redhat.com>
- mark default route up.

* Sun Jun  7 1998 Jeff Johnson <jbj@redhat.com>
- Fix packet alignment problems on sparc.
- build root.

* Mon Jun 01 1998 Prospector System <bugs@redhat.com>
- translations modified for de

* Wed May  6 1998 Alan Cox
- fixed some potential buffer exploits reported by Chris Evans

* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Sun Oct 19 1997 Erik Troan <ewt@redhat.com>
- spec file cleanups 

* Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
- built against glibc, updated to 0.65

* Mon Apr 21 1997 Otto Hammersmith <otto@redhat.com>
- fixed summary line... was a summary for tar.