ypbind-vl.spec 8.1 KB

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