ypserv-vl.spec 13 KB

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