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