ypserv-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. ##%define initdir /etc/rc.d/init.d
  2. Summary: The NIS (Network Information Service) server.
  3. Summary(ja): NIS (Network Information Service) サーバ
  4. Name: ypserv
  5. Version: 2.19
  6. Release: 4%{_dist_release}
  7. License: GPLv2
  8. Group: System Environment/Daemons
  9. URL: http://www.linux-nis.org/
  10. Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
  11. Source1: ypserv-ypserv.init
  12. Source2: ypserv-yppasswdd.init
  13. Source3: ypserv-ypxfrd.init
  14. Patch0: ypserv-2.5-redhat.patch
  15. Patch1: ypserv-2.11-path.patch
  16. Patch2: ypserv-2.5-nfsnobody2.patch
  17. Patch3: ypserv-2.11-nomap.patch
  18. Patch4: ypserv-2.11-iface-binding3.patch
  19. Patch6: ypserv-2.13-yplib-memleak.patch
  20. Patch7: ypserv-2.13-ypxfr-zeroresp.patch
  21. Patch8: ypserv-2.19-inval-ports.patch
  22. Patch9: ypserv-2.13-nonedomain.patch
  23. Patch10: ypserv-2.19-quieter.patch
  24. Patch11: ypserv-2.19-debuginfo.patch
  25. Patch12: ypserv-2.19-slp-warning.patch
  26. Buildroot: %{_tmppath}/%{name}-%{version}-root
  27. BuildRequires: gdbm-devel
  28. Requires: gawk portmap tcp_wrappers bash gdbm
  29. Requires(post): /sbin/chkconfig
  30. Requires(preun): /sbin/chkconfig /sbin/service
  31. Requires(postun): /sbin/service
  32. Obsoletes: yppasswd
  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 NIS server, which will need to be running on
  42. your network. NIS clients do not need to be running the server.
  43. Install ypserv if you need an NIS server for your network. You'll
  44. also need to install the yp-tools and ypbind packages onto any NIS
  45. client machines.
  46. %description -l ja
  47. Network Information Service (NIS) とは各種ネットワーク情報
  48. (ログイン名,パスワード,ホームディレクトリ,グループ情報等) を
  49. ネットワーク上の全マシンに提供する為のシステムです.
  50. NIS を使うと,そのユーザのパスワードが NIS データベースに登録されて
  51. さえいれば,NIS クライアントが動作しているどのマシンからでも
  52. ログインすることが出来ます.NIS はかつて Sun Yellow Pages (YP) と
  53. して広く知られていました.
  54. このパッケージは NIS サーバを提供します.NIS サーバは
  55. NIS サービスを利用する際ネットワーク上に必ず稼働していなければなりません.
  56. NIS クライアント機上で動作する必要はありません.
  57. ネットワーク上に NIS サーバが必要な場合,この ypserv パッケージを
  58. インストールして下さい.同時に NIS クライアント機に yp-tools と
  59. ypbind パッケージをインストールする必要があります.
  60. %prep
  61. %setup -q
  62. %patch0 -p1 -b .redhat
  63. %patch1 -p1 -b .path
  64. %patch2 -p1 -b .nfsnobody
  65. %patch3 -p1 -b .nomap
  66. %patch4 -p1 -b .iface
  67. %patch6 -p1 -b .memleak
  68. %patch7 -p1 -b .respzero
  69. %patch8 -p1 -b .ports
  70. %patch9 -p1 -b .nonedomain
  71. %patch10 -p1 -b .quieter
  72. %patch11 -p1 -b .debuginfo
  73. %patch12 -p1 -b .slp-warning
  74. %build
  75. cp etc/README etc/README.etc
  76. %configure --enable-checkroot --enable-fqdn --enable-yppasswd --libexecdir=%{_libdir}/yp
  77. make %{?_smp_mflags}
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. #make install ROOT=$RPM_BUILD_ROOT
  81. %makeinstall libexecdir=$RPM_BUILD_ROOT%{_libdir}/yp INSTALL_PROGRAM=install
  82. mkdir -p $RPM_BUILD_ROOT%{_initdir}
  83. install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir}
  84. install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/ypserv
  85. install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_initdir}/yppasswdd
  86. install -m755 %{SOURCE3} $RPM_BUILD_ROOT%{_initdir}/ypxfrd
  87. mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
  88. cat > $RPM_BUILD_ROOT/etc/sysconfig/yppasswdd <<EOF
  89. # The passwd and shadow files are located under the specified
  90. # directory path. rpc.yppasswdd will use these files, not /etc/passwd
  91. # and /etc/shadow.
  92. #ETCDIR=/etc
  93. # This options tells rpc.yppasswdd to use a different source file
  94. # instead of /etc/passwd
  95. # You can't mix usage of this with ETCDIR
  96. #PASSWDFILE=/etc/passwd
  97. # This options tells rpc.yppasswdd to use a different source file
  98. # instead of /etc/passwd.
  99. # You can't mix usage of this with ETCDIR
  100. #SHADOWFILE=/etc/shadow
  101. # Additional arguments passed to yppasswd
  102. YPPASSWDD_ARGS=
  103. EOF
  104. %clean
  105. rm -rf $RPM_BUILD_ROOT
  106. %post
  107. /sbin/chkconfig --add ypserv
  108. /sbin/chkconfig --add yppasswdd
  109. /sbin/chkconfig --add ypxfrd
  110. %triggerpostun -- yppasswd
  111. /sbin/chkconfig --add yppasswdd
  112. %preun
  113. if [ $1 = 0 ]; then
  114. /sbin/service ypserv stop > /dev/null 2>&1
  115. /sbin/chkconfig --del ypserv
  116. /sbin/service yppasswdd stop > /dev/null 2>&1
  117. /sbin/chkconfig --del yppasswdd
  118. /sbin/service ypxfrd stop > /dev/null 2>&1
  119. /sbin/chkconfig --del ypxfrd
  120. fi
  121. %postun
  122. if [ "$1" -ge "1" ]; then
  123. /sbin/service ypserv condrestart > /dev/null 2>&1
  124. /sbin/service yppasswdd condrestart > /dev/null 2>&1
  125. /sbin/service ypxfrd condrestart > /dev/null 2>&1
  126. fi
  127. exit 0
  128. %files
  129. %defattr(-,root,root)
  130. %doc AUTHORS README INSTALL ChangeLog TODO NEWS
  131. %doc etc/ypserv.conf etc/securenets etc/README.etc
  132. %doc etc/netgroup etc/locale etc/netmasks etc/timezone
  133. %config(noreplace) %{_sysconfdir}/ypserv.conf
  134. %config(noreplace) %{_sysconfdir}/sysconfig/yppasswdd
  135. %config(noreplace) /var/yp/*
  136. %dir /var/yp
  137. %config %{initdir}/*
  138. %{_libdir}/yp
  139. %{_sbindir}/*
  140. %{_mandir}/*/*
  141. %{_includedir}/*/*
  142. %changelog
  143. * Sun Dec 6 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.19-4
  144. - added Patches from Fedora
  145. * Tue Mar 3 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.19-12
  146. - Mark apropriate config files as noreplace
  147. * Thu Sep 25 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.19-10
  148. - Rediff all patches to work with patch --fuzz=0
  149. * Wed Feb 13 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.19-9
  150. - Mark /var/yp/Makefile as %%config(noreplace)
  151. Resolves: #432582
  152. - Comment "slp" part of ypserv.conf to avoid ypserv warnings
  153. Resolves: #154806
  154. - Spec file cleanup - remove period from end of Summary,
  155. fix license, remove macros from Changelog
  156. * Mon Feb 4 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.19-8
  157. - Fix Buildroot
  158. - Fix /var/yp/Makefile
  159. Resolves: #431008
  160. * Tue Jan 8 2008 Steve Dickson <steved@redhat.com> 2.19-7
  161. - Changed Makefiles.in so binaries are not stripped.
  162. * Sat Sep 15 2007 Steve Dickson <steved@redhat.com> 2.19-6
  163. - Fixed init scripts to return correct exit code on
  164. 'service status' (bz 248097)
  165. * Tue Jul 31 2007 Steve Dickson <steved@redhat.com> 2.19-5
  166. - Changed install process to create an useful debuginfo package (bz 249961)
  167. * Fri Dec 22 2006 Steve Dickson <steved@redhat.com> - 2.19-4
  168. - Made ypserver less verbose on common errors (bz #199236)
  169. - Don't allow a make for empty domainname's or domainname's set to (none)
  170. (bz #197646)
  171. * Wed Sep 13 2006 Steve Dickson <steved@redhat.com> - 2.19-3
  172. - Added range checks to port values given on command line
  173. (bz 205354)
  174. * Tue Jul 25 2006 Steve Dickson <steved@redhat.com> - 2.19-2
  175. - fixed typo in ypxfrd initscript (bz 185403)
  176. * Mon May 4 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.19-3
  177. - spec in UTF-8
  178. * Sun Apr 20 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.19-2
  179. - rebuilt without openslp-devel
  180. * Thu Apr 10 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.19-1
  181. - new upstream release.
  182. * Sun May 21 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.18-0vl2
  183. - use License instead of Copyright
  184. * Tue Sep 6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.18-0vl1
  185. - new upstream release.
  186. * Sun Jun 20 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.13-0vl1
  187. - new upstream release.
  188. - remove patch2 (no longer needed).
  189. * Fri Apr 9 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.12.1-0vl1
  190. - new upstream release.
  191. - replace patch3.
  192. * Mon Dec 8 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.9-0vl1
  193. - add gdbm[-devel] to 'Requires:' / 'BuildPreReq:'.
  194. - new upstream release.
  195. * Mon May 19 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.8-1vl1
  196. - new upstream release.
  197. * Fri Feb 7 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.7-1vl1
  198. - updated ypserv-2.7
  199. * Fri Dec 13 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.5-1vl3
  200. - rebuild with new toolchain.
  201. * Tue Oct 22 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.5-1vl2
  202. - updated ypserv-2.5
  203. - merge patches from RedHat-8.0.
  204. - add some files to %%doc.
  205. * Thu Jun 06 2002 Satoshi MACHINO <machino@vinelinux.org> 2.2-10-0vl1
  206. - updated ypserv-2.2
  207. - fixed patches
  208. -- merged Rawhide's ypserv-2.2-10
  209. * Mon Jan 08 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  210. - 1.3.11-9vl1
  211. - based on 1.3.11-9 from Rawhide
  212. - %%{initdir} -> %%{_initdir}
  213. - added Japanese summary and description
  214. * Wed Aug 16 2000 Than Ngo <than@redhat.com>
  215. - fix typo in startup script (Bug #15999)
  216. * Wed Jul 19 2000 Than Ngo <than@redhat.de>
  217. - inits back to rc.d/init.d, using service
  218. - fix initscript again
  219. * Mon Jul 17 2000 Bill Nottingham <notting@redhat.com>
  220. - move initscript back
  221. - fix format syslog bug
  222. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  223. - automatic rebuild
  224. * Fri Jul 7 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  225. - prereq /etc/init.d
  226. * Tue Jun 27 2000 Than Ngo <than@redhat.de>
  227. - /etc/rc.d/init.d -> /etc/init.d
  228. - fix initscript
  229. * Sun Jun 18 2000 Than Ngo <than@redhat.de>
  230. - FHS fixes,
  231. - fix docdir
  232. * Fri May 19 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  233. - disable "netgrp" target in default all: (/var/yp/Makefile)
  234. * Thu May 18 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  235. - update to 1.3.11
  236. * Mon Mar 06 2000 Cristian Gafton <gafton@redhat.com>
  237. - add patch to avoid potential deadlock on the server (fix #9968)
  238. * Wed Feb 2 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  239. - fix typo in %triggerpostun
  240. * Mon Oct 25 1999 Bill Nottingham <notting@redhat.com>
  241. - update to 1.3.9
  242. - use gdbm, move back to /usr/sbin
  243. * Tue Aug 17 1999 Bill Nottingham <notting@redhat.com>
  244. - initscript munging
  245. - ypserv goes on root partition
  246. * Fri Aug 13 1999 Cristian Gafton <gafton@redhat.com>
  247. - version 1.3.7
  248. * Thu Jul 1 1999 Bill Nottingham <notting@redhat.com>
  249. - start after network FS
  250. * Tue Jun 1 1999 Jeff Johnson <jbj@redhat.com>
  251. - update to 1.3.6.94.
  252. * Sun May 30 1999 Jeff Johnson <jbj@redhat.com>
  253. - improved daemonization.
  254. * Sat May 29 1999 Jeff Johnson <jbj@redhat.com>
  255. - fix buffer overflow in rpc.yppasswd (#3126).
  256. * Fri May 28 1999 Jeff Johnson <jbj@redhat.com>
  257. - update to 1.3.6.92.
  258. * Fri Mar 26 1999 Cristian Gafton <gafton@redhat.com>
  259. - version 1.3.6.91
  260. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  261. - auto rebuild in the new build environment (release 4)
  262. * Mon Feb 8 1999 Bill Nottingham <notting@redhat.com>
  263. - move to start before ypbind
  264. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  265. - build for glibc 2.1
  266. - upgraded to 1.3.5
  267. * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
  268. - yppasswd.init: lock file must have same name as init.d script, not daemon
  269. * Sat Jul 11 1998 Cristian Gafton <gafton@redhat.com>
  270. - upgraded to 1.3.4
  271. - fixed the fubared Makefile
  272. - link against gdbm instead of ndbm (it seems to work better)
  273. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  274. - upgraded to 1.3.1
  275. - enhanced init scripts
  276. * Fri May 01 1998 Jeff Johnson <jbj@redhat.com>
  277. - added triggerpostun
  278. - Use libdb fro dbp_*().
  279. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  280. - translations modified for de, fr, tr
  281. * Mon Apr 13 1998 Cristian Gafton <gafton@redhat.com>
  282. - updated to 1.3.0
  283. * Wed Dec 03 1997 Cristian Gafton <gafton@redhat.com>
  284. - updated to 1.2.5
  285. - added buildroot; updated spec file
  286. - added yppasswdd init file
  287. * Tue Nov 04 1997 Erik Troan <ewt@redhat.com>
  288. - init script shouldn't set the domain name
  289. * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
  290. - supports chkconfig
  291. - updated initscript for status and restart
  292. - turned off in all runlevels, by default
  293. - removed postinstall script which didn't do anything
  294. * Thu Oct 09 1997 Erik Troan <ewt@redhat.com>
  295. - added patch to build against later glibc
  296. * Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
  297. - built against glibc
  298. * Wed Apr 23 1997 Erik Troan <ewt@redhat.com>
  299. - updated to 1.1.7.
  300. * Fri Mar 14 1997 Erik Troan <ewt@redhat.com>
  301. - Updated to ypserv 1.1.5, ported to Alpha (glibc).
  302. * Fri Mar 07 1997 Erik Troan <ewt@redhat.com>
  303. - Removed -pedantic which confuses the SPARC :-(