Summary:        A DHCP (Dynamic Host Configuration Protocol) client.
Summary(ja):    DHCP (Dynamic Host Configuration Protocol) クライアント
Name:           dhcpcd
Version:        8.1.1
Release:        1%{?_dist_release}
Group:          System Environment/Base

Vendor:         Project Vine
Distribution:   Vine Linux

License:        BSD
URL:            https://roy.marples.name/projects/dhcpcd
Source:         https://roy.marples.name/downloads/dhcpcd/dhcpcd-%{version}.tar.xz

BuildRoot:      %{_tmppath}/%{name}-%{version}-root
BuildRequires:  chrony
BuildRequires:  eudev-libudev-devel

%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.  The dhcpcd package includes a 
DHCP client daemon.

If you're going to use DHCP on your network, you'll need to install
the server package (dhcp) on the server, and a client package on the
client machines. The dhcpcd package includes a DHCP client, but we
suggest that you instead install the DHCP client included in the pump
package, which provides a faster and simpler DHCP client.

%description -l ja
DHCP (Dynamic Host Configuration Protocol) は，IP ネットワークの
各デバイスに，ネットワーク設定情報 (IP アドレス，サブネットマスク,
ブロードキャストアドレス等) を割り当てる為のプロトコルです．
DHCP の主な目的は，大規模なネットワークでの管理を簡単にすることです．
この dhcpcd パッケージには DHCP クライアントデーモンが含まれています．

あなたのネットワークで DHCP を使うためには，サーバ側に dhcp サーバ
(dhcp パッケージ) を，そしてクライアント側に dhcp クライアント
(dhcpcd パッケージ) をインストールする必要があります．
この dhcpcd パッケージには DHCP クライアントが含まれていますが，
代わりに pump パッケージの DHCP クライアントをインストールすることを
お勧めします．pump はより高速でよりシンプルな DHCP クライアントです．


%prep
%setup -q -n dhcpcd-%{version}


%build
%configure --sbindir=/sbin
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root)
%license LICENSE
%doc README.md
/sbin/dhcpcd
%dir %{_libdir}/dhcpcd
%dir %{_libdir}/dhcpcd/dev
%{_libdir}/dhcpcd/dev/*
%dir %{_libexecdir}/dhcpcd-hooks
%{_libexecdir}/dhcpcd-hooks/*
%{_libexecdir}/dhcpcd-run-hooks
%config(noreplace) %{_sysconfdir}/dhcpcd.conf
%dir %{_datadir}/dhcpcd
%dir %{_datadir}/dhcpcd/hooks
%{_datadir}/dhcpcd/hooks/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_localstatedir}/db/dhcpcd


%changelog
* Sun Nov 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.1.1-1
- salvaged from orphaned repo.
- new upstream release.

* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.3.22pl4-1vl5
- applied new versioning policy, spec in utf-8

* Tue May 22 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.22pl4-0vl3
- run libtoolize/autoreconf to build on x86_64

* Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.22pl4-0vl2
- rebuild to add gpg sign

* Tue Feb  4 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.22pl4-0vl1
- new upstream release to fix security bug

* Thu Jan 31 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.21pl2-2vl1
- updated in sync with 1.3.21pl2-2 from Rawhide and built for Vine Linux
- added Japanese summary and description

* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Fri Jan 04 2002 Elliot Lee <sopwith@redhat.com> 1.3.21pl2-1
- Update to pl2
- Fix #54600

* Mon Dec 31 2001 Elliot Lee <sopwith@redhat.com> 1.3.21pl1-3
- dhcpcd-1.3.21-multicast.patch sets IFF_MULTICAST (fixes 48669).

* Sun Dec 30 2001 Elliot Lee <sopwith@redhat.com> 1.3.21pl1-2
- After updating to a new version, reincorporate the dhcpcd-post.patch and fix some other nits.

* Thu Sep 20 2001 Elliot Lee <sopwith@redhat.com> 1.3.20pl0
- Update to new version

* Mon Jul 16 2001 Elliot Lee <sopwith@redhat.com>
- Bug #7961 plus my own observations resulted in Patch5 to fix alignment errors.

* Wed Jul 11 2001 Nalin Dahyabhai <nalin@redhat.com>
- don't write two search lines to resolv.conf
- suppress output from %%pre script

* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
- Bump release + rebuild.

* Wed Mar 14 2001 Bill Nottingham <notting@redhat.com>
- fix running of ifup-post on ip address change

* Fri Feb 16 2001 Nalin Dahyabhai <nalin@redhat.com>
- remove the circular link which was in a previous version of this package

* Wed Feb 14 2001 Bill Nottingham <notting@redhat.com>
- fix the symlink, for real (#27622)

* Mon Feb 12 2001 Bill Nottingham <notting@redhat.com>
- run ifup-post on ip address change

* Mon Aug 21 2000 Bill Nottingham <notting@redhat.com>
- package up /etc/dhcpcd as a symlink instead

* Fri Jul 21 2000 Erik Troan <ewt@redhat.com>
- package up /etc/dhcpc as a symlink

* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild

* Thu Jun 22 2000 Bill Nottingham <notting@redhat.com>
- actually update to 1.3.18pl8

* Mon Jun 19 2000 Preston Brown <pbrown@redhat.com>
- FHS paths

* Thu May 11 2000 Karsten Hopp <Karsten.Hopp@redhat.de>
- updated to dhcpcd-1.3.18pl8

* Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
- updated to dhcpcd-1.3.18pl3
- don't statically link the binary

* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
- rebuild to fix the descriptions and summary
- man pages are compressed

* Mon Oct 04 1999 Cristian Gafton <gafton@redhat.com>
- rebuild against the latest glibc in the sparc tree

* Wed Jun  2 1999 Jeff Johnson <jbj@redhat.com>
- include 802.2 token ring support patch (#2061).

* Sat May 29 1999 Jeff Johnson <jbj@redhat.com>
- include /etc/dhcpc in package (#3097).
- upgrade to 1.3.17-pl5.

* 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.
