ypserv-vl.spec 12 KB

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