source: projects/specs/trunk/y/ypserv/ypserv-vl.spec @ 8067

Revision 8067, 12.3 KB checked in by Takemikaduchi, 8 years ago (diff)

new upstream release or rebuild

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