dhcpcd-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. %define mainver 1.3.22
  2. %define patchlevel pl4
  3. Summary: A DHCP (Dynamic Host Configuration Protocol) client.
  4. Summary(ja): DHCP (Dynamic Host Configuration Protocol) クライアント
  5. Name: dhcpcd
  6. Version: %{mainver}%{patchlevel}
  7. Release: 1%{?_dist_release}
  8. License: GPL
  9. Group: System Environment/Base
  10. Source: http://www.phystech.com/ftp/dhcpcd-%{mainver}-%{patchlevel}.tar.gz
  11. Patch: dhcpcd-1.3.21-post.patch
  12. URL: http://www.phystech.com/download/
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Prereq: file, fileutils, grep
  15. BuildRequires: autoconf, automake, libtool
  16. %description
  17. DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
  18. individual devices on an IP network to get their own network
  19. configuration information (IP address, subnetmask, broadcast address,
  20. etc.) from a DHCP server. The overall purpose of DHCP is to make it
  21. easier to administer a large network. The dhcpcd package includes a
  22. DHCP client daemon.
  23. If you're going to use DHCP on your network, you'll need to install
  24. the server package (dhcp) on the server, and a client package on the
  25. client machines. The dhcpcd package includes a DHCP client, but we
  26. suggest that you instead install the DHCP client included in the pump
  27. package, which provides a faster and simpler DHCP client.
  28. %description -l ja
  29. DHCP (Dynamic Host Configuration Protocol) は,IP ネットワークの
  30. 各デバイスに,ネットワーク設定情報 (IP アドレス,サブネットマスク,
  31. ブロードキャストアドレス等) を割り当てる為のプロトコルです.
  32. DHCP の主な目的は,大規模なネットワークでの管理を簡単にすることです.
  33. この dhcpcd パッケージには DHCP クライアントデーモンが含まれています.
  34. あなたのネットワークで DHCP を使うためには,サーバ側に dhcp サーバ
  35. (dhcp パッケージ) を,そしてクライアント側に dhcp クライアント
  36. (dhcpcd パッケージ) をインストールする必要があります.
  37. この dhcpcd パッケージには DHCP クライアントが含まれていますが,
  38. 代わりに pump パッケージの DHCP クライアントをインストールすることを
  39. お勧めします.pump はより高速でよりシンプルな DHCP クライアントです.
  40. %prep
  41. %setup -q -n dhcpcd-%{mainver}-%{patchlevel}
  42. %patch -p1
  43. %build
  44. libtoolize -c -f
  45. autoreconf
  46. %configure --sbindir=/sbin
  47. make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. %makeinstall sbindir=$RPM_BUILD_ROOT/sbin
  51. rm -rf $RPM_BUILD_ROOT/etc/dhcpc*
  52. mkdir -p $RPM_BUILD_ROOT/etc/dhcpc
  53. ln -s dhcpc $RPM_BUILD_ROOT/etc/dhcpcd
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %files
  57. %defattr(-,root,root)
  58. %doc README dhcpcd-eth0.exe
  59. /etc/dhcpcd
  60. %dir /etc/dhcpc
  61. /sbin/dhcpcd
  62. %{_mandir}/man8/dhcpcd.8*
  63. %pre
  64. exec > /dev/null 2> /dev/null
  65. # We can't replace a directory with a symlink, but this directory is supposed
  66. # to be a symlink.
  67. if [ -d /etc/dhcpcd ] ; then
  68. mv /etc/dhcpcd/* /etc/dhcpc
  69. mv /etc/dhcpcd /etc/dhcpcd.rpmsave
  70. fi
  71. # Remove the circular link which was in a previous version of this package.
  72. if [ -L /etc/dhcpc/dhcpc ] ; then
  73. if file /etc/dhcpc/dhcpc | grep -q "symbolic link to dhcpc" ; then
  74. rm /etc/dhcpc/dhcpc
  75. # Leave a file for RPM to remove.
  76. touch /etc/dhcpc/dhcpc
  77. fi
  78. fi
  79. if [ -L /etc/dhcpc/dhcpcd ] && [ ! -f /etc/dhcpc/dhcpcd ]; then
  80. rm -f /etc/dhcpc/dhcpcd
  81. fi
  82. %changelog
  83. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.3.22pl4-1vl5
  84. - applied new versioning policy, spec in utf-8
  85. * Tue May 22 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.22pl4-0vl3
  86. - run libtoolize/autoreconf to build on x86_64
  87. * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.22pl4-0vl2
  88. - rebuild to add gpg sign
  89. * Tue Feb 4 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.22pl4-0vl1
  90. - new upstream release to fix security bug
  91. * Thu Jan 31 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.21pl2-2vl1
  92. - updated in sync with 1.3.21pl2-2 from Rawhide and built for Vine Linux
  93. - added Japanese summary and description
  94. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  95. - automated rebuild
  96. * Fri Jan 04 2002 Elliot Lee <sopwith@redhat.com> 1.3.21pl2-1
  97. - Update to pl2
  98. - Fix #54600
  99. * Mon Dec 31 2001 Elliot Lee <sopwith@redhat.com> 1.3.21pl1-3
  100. - dhcpcd-1.3.21-multicast.patch sets IFF_MULTICAST (fixes 48669).
  101. * Sun Dec 30 2001 Elliot Lee <sopwith@redhat.com> 1.3.21pl1-2
  102. - After updating to a new version, reincorporate the dhcpcd-post.patch and fix some other nits.
  103. * Thu Sep 20 2001 Elliot Lee <sopwith@redhat.com> 1.3.20pl0
  104. - Update to new version
  105. * Mon Jul 16 2001 Elliot Lee <sopwith@redhat.com>
  106. - Bug #7961 plus my own observations resulted in Patch5 to fix alignment errors.
  107. * Wed Jul 11 2001 Nalin Dahyabhai <nalin@redhat.com>
  108. - don't write two search lines to resolv.conf
  109. - suppress output from %%pre script
  110. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  111. - Bump release + rebuild.
  112. * Wed Mar 14 2001 Bill Nottingham <notting@redhat.com>
  113. - fix running of ifup-post on ip address change
  114. * Fri Feb 16 2001 Nalin Dahyabhai <nalin@redhat.com>
  115. - remove the circular link which was in a previous version of this package
  116. * Wed Feb 14 2001 Bill Nottingham <notting@redhat.com>
  117. - fix the symlink, for real (#27622)
  118. * Mon Feb 12 2001 Bill Nottingham <notting@redhat.com>
  119. - run ifup-post on ip address change
  120. * Mon Aug 21 2000 Bill Nottingham <notting@redhat.com>
  121. - package up /etc/dhcpcd as a symlink instead
  122. * Fri Jul 21 2000 Erik Troan <ewt@redhat.com>
  123. - package up /etc/dhcpc as a symlink
  124. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  125. - automatic rebuild
  126. * Thu Jun 22 2000 Bill Nottingham <notting@redhat.com>
  127. - actually update to 1.3.18pl8
  128. * Mon Jun 19 2000 Preston Brown <pbrown@redhat.com>
  129. - FHS paths
  130. * Thu May 11 2000 Karsten Hopp <Karsten.Hopp@redhat.de>
  131. - updated to dhcpcd-1.3.18pl8
  132. * Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
  133. - updated to dhcpcd-1.3.18pl3
  134. - don't statically link the binary
  135. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  136. - rebuild to fix the descriptions and summary
  137. - man pages are compressed
  138. * Mon Oct 04 1999 Cristian Gafton <gafton@redhat.com>
  139. - rebuild against the latest glibc in the sparc tree
  140. * Wed Jun 2 1999 Jeff Johnson <jbj@redhat.com>
  141. - include 802.2 token ring support patch (#2061).
  142. * Sat May 29 1999 Jeff Johnson <jbj@redhat.com>
  143. - include /etc/dhcpc in package (#3097).
  144. - upgrade to 1.3.17-pl5.
  145. * Mon Apr 19 1999 Bill Nottingham <notting@redhat.com>
  146. - build for 6.0
  147. * Wed Dec 23 1998 Jeff Johnson <jbj@redhat.com>
  148. - mark default route up.
  149. * Sun Jun 7 1998 Jeff Johnson <jbj@redhat.com>
  150. - Fix packet alignment problems on sparc.
  151. - build root.
  152. * Mon Jun 01 1998 Prospector System <bugs@redhat.com>
  153. - translations modified for de
  154. * Wed May 6 1998 Alan Cox
  155. - fixed some potential buffer exploits reported by Chris Evans
  156. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  157. - translations modified for de, fr, tr
  158. * Sun Oct 19 1997 Erik Troan <ewt@redhat.com>
  159. - spec file cleanups
  160. * Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
  161. - built against glibc, updated to 0.65
  162. * Mon Apr 21 1997 Otto Hammersmith <otto@redhat.com>
  163. - fixed summary line... was a summary for tar.