ypbind-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. Summary: The NIS daemon which binds NIS clients to an NIS domain.
  2. Summary(ja): NIS クライアントを NIS ドメインにバインドするデーモン
  3. Name: ypbind
  4. Version: 1.20.5
  5. Release: 4%{?_dist_release}
  6. License: GPLv2
  7. URL: http://www.linux-nis.org/
  8. Group: System Environment/Daemons
  9. Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
  10. Source1: ypbind-vine.init
  11. Source2: nis.sh
  12. Source100: ypbind-vine.sysconfig
  13. Patch1: ypbind-1.11-broadcast.patch
  14. Patch2: ypbind-1.11-gettextdomain.patch
  15. Patch3: ypbind-mt-1.19-port-leak.patch
  16. Patch4: ypbind-mt-1.19-log-binds.patch
  17. Patch5: ypbind-mt-1.20.4-smartwrite.patch
  18. Patch6: ypbind-mt-1.20.5-man-port.patch
  19. Patch7: ypbind-mt-1.20.4-nm.patch
  20. Patch100: ypbind-mt-1.20.5-nm-fix.patch
  21. Epoch: 3
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: dbus-glib-devel
  24. BuildRequires: NetworkManager-devel >= 0.7.0
  25. Requires(post): chkconfig
  26. Requires(preun): chkconfig
  27. # This is for /sbin/service
  28. Requires(preun): initscripts
  29. Requires(postun): initscripts
  30. Requires: portmap yp-tools bash
  31. %description
  32. The Network Information Service (NIS) is a system which provides
  33. network information (login names, passwords, home directories, group
  34. information) to all of the machines on a network. NIS can enable
  35. users to login on any machine on the network, as long as the machine
  36. has the NIS client programs running and the user's password is
  37. recorded in the NIS passwd database. NIS was formerly known as Sun
  38. Yellow Pages (YP).
  39. This package provides the ypbind daemon. The ypbind daemon binds NIS
  40. clients to an NIS domain. Ypbind must be running on any machines
  41. which are running NIS client programs.
  42. Install the ypbind package on any machines which are running NIS client
  43. programs (included in the yp-tools package). If you need an NIS server,
  44. you'll also need to install the ypserv package to a machine on your
  45. network.
  46. %description -l ja
  47. Network Information Service (NIS) とは各種ネットワーク情報
  48. (ログイン名,パスワード,ホームディレクトリ,グループ情報等) を
  49. ネットワーク上の全マシンに提供する為のシステムです.
  50. NIS を使うと,そのユーザのパスワードが NIS データベースに登録されて
  51. さえいれば,NIS クライアントが動作しているどのマシンからでも
  52. ログインすることが出来ます.NIS はかつて Sun Yellow Pages (YP) と
  53. して広く知られていました.
  54. このパッケージは ypbind デーモンを提供します.ypbind デーモンは
  55. NIS クライアントを NIS ドメインにバインドします.
  56. ypbind は,NIS クライアントプログラムが動作している全てのマシン上で
  57. 動作している必要があります.
  58. NIS クライアントプログラム (yp-tools パッケージに含まれます) を
  59. 動作させるマシンには必ず ypbind パッケージをインストールして下さい.
  60. NIS サーバが必要ならば,ネットワーク上の1台に ypserv パッケージを
  61. インストールして下さい.
  62. %prep
  63. %setup -q -n ypbind-mt-%{version}
  64. %patch1 -p1 -b .broadcast
  65. %patch2 -p1 -b .gettextdomain
  66. %patch3 -p1
  67. %patch4 -p1
  68. %patch5 -p1 -b .smartwrite
  69. %patch6 -p1 -b .man-port
  70. %patch7 -p1 -b .nm
  71. %patch100 -p1 -b .nm-fix
  72. %build
  73. #configure --disable-nls --disable-dbus-nm --sbindir=%{_syssbindir}
  74. %configure --disable-nls --sbindir=%{_syssbindir}
  75. make
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. make install DESTDIR=$RPM_BUILD_ROOT
  79. mkdir -p $RPM_BUILD_ROOT%{_initdir} \
  80. $RPM_BUILD_ROOT/var/yp/binding \
  81. $RPM_BUILD_ROOT/etc/dhcp/dhclient.d \
  82. $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
  83. install -m 644 etc/yp.conf $RPM_BUILD_ROOT%{_sysconfdir}/yp.conf
  84. install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/ypbind
  85. install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d/nis.sh
  86. install -m 644 %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ypbind
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT
  89. %post
  90. /sbin/chkconfig --add ypbind
  91. %preun
  92. if [ "$1" = 0 ] ; then
  93. /sbin/service ypbind stop > /dev/null 2>&1
  94. /sbin/chkconfig --del ypbind
  95. fi
  96. exit 0
  97. %postun
  98. if [ "$1" -ge 1 ]; then
  99. /sbin/service ypbind condrestart > /dev/null 2>&1
  100. fi
  101. exit 0
  102. %files
  103. %defattr(-,root,root)
  104. %{_syssbindir}/ypbind
  105. %{_mandir}/*/*
  106. %config %{_initdir}/*
  107. %{_sysconfdir}/dhcp/dhclient.d/*
  108. %config(noreplace) %{_sysconfdir}/yp.conf
  109. %config(noreplace) %{_sysconfdir}/sysconfig/ypbind
  110. %dir /var/yp
  111. %dir /var/yp/binding
  112. %doc AUTHORS COPYING NEWS README THANKS TODO
  113. %changelog
  114. * Sun Dec 6 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.20.5-4
  115. - added Source100 for launching ypbind with -no-dbus option
  116. * Mon Oct 19 2009 MATSUBAYSHI Kohji <shaolin@vinelinux.org> - 1.20.5-3
  117. - add Patch100 to fix build w/ NetworkManager-devel >= 0.7.0
  118. - add BuildRequires: NetworkManager-devel >= 0.7.0
  119. * Sat Oct 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.5-2
  120. - removed --disable-dbus-nm
  121. - added Patch5, 6 and 7
  122. * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.5-1
  123. - updated to 1.20.5
  124. - added --disable-dbus-nm
  125. - spec in UTF-8
  126. * Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.4-1
  127. - new upstream release
  128. - update ypbind-vine.init
  129. * Sun Jul 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.19.1-0vl3
  130. - update ypbind-vine.init
  131. - added Patch4 and 5 from Fedora development
  132. * Fri Dec 1 2006 Steve Dickson <steved@redhat.com> - 3:1.19-7
  133. - Fixed leaking ports (bz 217874)
  134. - Log all server bindings (bz 217782)
  135. * Sat May 20 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.19.1-0vl2
  136. - use License instead of Copyright
  137. * Tue Sep 6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.19.1-0vl1
  138. - new upstream release.
  139. * Sun Jun 20 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.17.3-0vl1
  140. - new upstream release.
  141. * Fri Apr 9 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.17.2-0vl2
  142. - new upstream release.
  143. * Fri Feb 7 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> ypbind-1.12-0vl3
  144. - build with new toolchain.
  145. * Fri Dec 13 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> ypbind-1.12-0vl2
  146. - build with new toolchain.
  147. * Tue Oct 22 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> ypbind-1.12-0vl1
  148. - updated ypbind-mt-1.12
  149. - add some files to %%doc.
  150. - merge patches from RedHat-8.0
  151. * Thu Jun 06 2002 Satoshi MACHINO <machino@vinelinux.org> ypbind-1.10-0vl1
  152. - updated ypbind-mt-1.10
  153. - added patches from Rawhide
  154. - fixed ypbind-vine.init
  155. -- changed /etc/rc.d/init.d/functions
  156. * Mon Jan 08 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  157. - 1.7-2vl1
  158. - based on 1.7-2 from Rawhide
  159. - removed /etc/init.d from PreReq: line
  160. - use better macros (%%{_syssbindir}, %%{_initdir}, %%{_sysconfdir})
  161. - added Japanese summary and description
  162. * Wed Nov 29 2000 Bill Nottingham <notting@redhat.com>
  163. - set NIS domain name if it's not already set
  164. * Mon Oct 02 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  165. - update to 1.7
  166. * Thu Aug 31 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  167. - add again automatic fallback to broadcast
  168. * Sun Aug 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  169. - fix condrestart #16615
  170. - security fix for syslog() call
  171. * Sun Aug 6 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  172. - do not include broadcast fallback until it is more tested
  173. * Sun Aug 6 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  174. - add automatic fallback to broadcast
  175. - add "exit 0" to the scripts
  176. * Wed Aug 2 2000 Bill Nottingham <notting@redhat.com>
  177. - turn off broadcast; authconfig will enable this...
  178. - put the pid that's actually listening to signals in the pidfile
  179. * Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
  180. - move initscript back
  181. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  182. - automatic rebuild
  183. * Fri Jul 7 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  184. - prereq init.d
  185. * Wed Jul 5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  186. - re-enable broadcasts
  187. * Tue Jul 4 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  188. - fix scripts
  189. * Mon Jul 3 2000 Nalin Dahyabhai <nalin@redhat.com>
  190. - bump epoch
  191. * Mon Jul 3 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  192. - switch from ypbind to ypbind-mt