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

Revision 8067, 8.1 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

Line 
1Summary:     The NIS daemon which binds NIS clients to an NIS domain.
2Summary(ja): NIS クライアントを NIS ドメインにバインドするデーモン
3Name: ypbind
4Version: 1.20.5
5Release: 5%{?_dist_release}
6License: GPLv2
7URL: http://www.linux-nis.org/
8Group: System Environment/Daemons
9Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
10Source1: ypbind-vine.init
11Source2: nis.sh
12Source100: ypbind-vine.sysconfig
13Patch1: ypbind-1.11-broadcast.patch
14Patch2: ypbind-1.11-gettextdomain.patch
15Patch3: ypbind-mt-1.19-port-leak.patch
16Patch4: ypbind-mt-1.19-log-binds.patch
17Patch5: ypbind-mt-1.20.4-smartwrite.patch
18Patch6: ypbind-mt-1.20.5-man-port.patch
19Patch7: ypbind-mt-1.20.4-nm.patch
20
21Patch100: ypbind-mt-1.20.5-nm-fix.patch
22
23Epoch: 3
24BuildRoot: %{_tmppath}/%{name}-%{version}-root
25BuildRequires: dbus-glib-devel
26BuildRequires: NetworkManager-devel >= 0.7.0
27Requires(post): chkconfig
28Requires(preun): chkconfig
29# This is for /sbin/service
30Requires(preun): initscripts
31Requires(postun): initscripts
32Requires: portmap yp-tools bash
33
34Vendor: Project Vine
35Distribution: Vine Linux
36
37%description
38The Network Information Service (NIS) is a system which provides
39network information (login names, passwords, home directories, group
40information) to all of the machines on a network.  NIS can enable
41users to login on any machine on the network, as long as the machine
42has the NIS client programs running and the user's password is
43recorded in the NIS passwd database.  NIS was formerly known as Sun
44Yellow Pages (YP).
45
46This package provides the ypbind daemon.  The ypbind daemon binds NIS
47clients to an NIS domain.  Ypbind must be running on any machines
48which are running NIS client programs.
49
50Install the ypbind package on any machines which are running NIS client
51programs (included in the yp-tools package).  If you need an NIS server,
52you'll also need to install the ypserv package to a machine on your
53network.
54
55%description -l ja
56Network Information Service (NIS) とは各種ネットワーク情報
57(ログイン名,パスワード,ホームディレクトリ,グループ情報等) を
58ネットワーク上の全マシンに提供する為のシステムです.
59NIS を使うと,そのユーザのパスワードが NIS データベースに登録されて
60さえいれば,NIS クライアントが動作しているどのマシンからでも
61ログインすることが出来ます.NIS はかつて Sun Yellow Pages (YP) と
62して広く知られていました.
63
64このパッケージは ypbind デーモンを提供します.ypbind デーモンは
65NIS クライアントを NIS ドメインにバインドします.
66ypbind は,NIS クライアントプログラムが動作している全てのマシン上で
67動作している必要があります.
68
69NIS クライアントプログラム (yp-tools パッケージに含まれます) を
70動作させるマシンには必ず ypbind パッケージをインストールして下さい.
71NIS サーバが必要ならば,ネットワーク上の1台に ypserv パッケージを
72インストールして下さい.
73
74
75%prep
76%setup -q -n ypbind-mt-%{version}
77%patch1 -p1 -b .broadcast
78%patch2 -p1 -b .gettextdomain
79%patch3 -p1
80%patch4 -p1
81%patch5 -p1 -b .smartwrite
82%patch6 -p1 -b .man-port
83%patch7 -p1 -b .nm
84
85%patch100 -p1 -b .nm-fix
86
87
88%build
89#configure --disable-nls --disable-dbus-nm --sbindir=%{_syssbindir}
90%configure --disable-nls --sbindir=%{_syssbindir}
91make
92
93
94%install
95rm -rf $RPM_BUILD_ROOT
96make install DESTDIR=$RPM_BUILD_ROOT
97
98mkdir -p $RPM_BUILD_ROOT%{_initdir} \
99    $RPM_BUILD_ROOT/var/yp/binding \
100    $RPM_BUILD_ROOT/etc/dhcp/dhclient.d \
101    $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
102install -m 644 etc/yp.conf $RPM_BUILD_ROOT%{_sysconfdir}/yp.conf
103install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/ypbind
104install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d/nis.sh
105install -m 644 %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ypbind
106
107%clean
108rm -rf $RPM_BUILD_ROOT
109
110
111%post
112/sbin/chkconfig --add ypbind
113
114
115%preun
116if [ "$1" = 0 ] ; then
117    /sbin/service ypbind stop > /dev/null 2>&1
118    /sbin/chkconfig --del ypbind
119fi
120exit 0
121
122
123%postun
124if [ "$1" -ge 1 ]; then
125    /sbin/service ypbind condrestart > /dev/null 2>&1
126fi
127exit 0
128
129
130%files
131%defattr(-,root,root)
132%{_syssbindir}/ypbind
133%{_mandir}/*/*
134%config %{_initdir}/*
135%{_sysconfdir}/dhcp/dhclient.d/*
136%config(noreplace) %{_sysconfdir}/yp.conf
137%config(noreplace) %{_sysconfdir}/sysconfig/ypbind
138%dir /var/yp
139%dir /var/yp/binding
140%doc AUTHORS COPYING NEWS README THANKS TODO
141
142
143%changelog
144* Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.20.5-5
145- rebuild with VineSeed environment
146
147* Sun Dec  6 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.20.5-4
148- added Source100 for launching ypbind with -no-dbus option
149
150* Mon Oct 19 2009 MATSUBAYSHI Kohji <shaolin@vinelinux.org> - 1.20.5-3
151- add Patch100 to fix build w/ NetworkManager-devel >= 0.7.0
152- add BuildRequires: NetworkManager-devel >= 0.7.0
153
154* Sat Oct 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.5-2
155- removed --disable-dbus-nm
156- added Patch5, 6 and 7
157
158* Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.5-1
159- updated to 1.20.5
160- added --disable-dbus-nm
161- spec in UTF-8
162
163* Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.4-1
164- new upstream release
165- update ypbind-vine.init
166
167* Sun Jul  1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.19.1-0vl3
168- update ypbind-vine.init
169- added Patch4 and 5 from Fedora development
170  * Fri Dec  1 2006 Steve Dickson <steved@redhat.com> - 3:1.19-7
171  - Fixed leaking ports (bz 217874)
172  - Log all server bindings (bz 217782)
173
174* Sat May 20 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.19.1-0vl2
175- use License instead of Copyright
176
177* Tue Sep  6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.19.1-0vl1
178- new upstream release.
179
180* Sun Jun 20 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.17.3-0vl1
181- new upstream release.
182
183* Fri Apr  9 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.17.2-0vl2
184- new upstream release.
185
186* Fri Feb  7 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> ypbind-1.12-0vl3
187- build with new toolchain.
188
189* Fri Dec 13 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> ypbind-1.12-0vl2
190- build with new toolchain.
191
192* Tue Oct 22 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> ypbind-1.12-0vl1
193- updated ypbind-mt-1.12
194- add some files to %%doc.
195- merge patches from RedHat-8.0
196
197* Thu Jun 06 2002 Satoshi MACHINO <machino@vinelinux.org> ypbind-1.10-0vl1
198- updated ypbind-mt-1.10
199- added patches from Rawhide
200- fixed ypbind-vine.init
201        -- changed /etc/rc.d/init.d/functions
202
203* Mon Jan 08 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
204- 1.7-2vl1
205- based on 1.7-2 from Rawhide
206- removed /etc/init.d from PreReq: line
207- use better macros (%%{_syssbindir}, %%{_initdir}, %%{_sysconfdir})
208- added Japanese summary and description
209
210* Wed Nov 29 2000 Bill Nottingham <notting@redhat.com>
211- set NIS domain name if it's not already set
212
213* Mon Oct 02 2000 Florian La Roche <Florian.LaRoche@redhat.de>
214- update to 1.7
215
216* Thu Aug 31 2000 Florian La Roche <Florian.LaRoche@redhat.de>
217- add again automatic fallback to broadcast
218
219* Sun Aug 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
220- fix condrestart #16615
221- security fix for syslog() call
222
223* Sun Aug  6 2000 Florian La Roche <Florian.LaRoche@redhat.de>
224- do not include broadcast fallback until it is more tested
225
226* Sun Aug  6 2000 Florian La Roche <Florian.LaRoche@redhat.de>
227- add automatic fallback to broadcast
228- add "exit 0" to the scripts
229
230* Wed Aug  2 2000 Bill Nottingham <notting@redhat.com>
231- turn off broadcast; authconfig will enable this...
232- put the pid that's actually listening to signals in the pidfile
233
234* Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
235- move initscript back
236
237* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
238- automatic rebuild
239
240* Fri Jul  7 2000 Florian La Roche <Florian.LaRoche@redhat.com>
241- prereq init.d
242
243* Wed Jul  5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
244- re-enable broadcasts
245
246* Tue Jul  4 2000 Florian La Roche <Florian.LaRoche@redhat.com>
247- fix scripts
248
249* Mon Jul  3 2000 Nalin Dahyabhai <nalin@redhat.com>
250- bump epoch
251
252* Mon Jul  3 2000 Florian La Roche <Florian.LaRoche@redhat.com>
253- switch from ypbind to ypbind-mt
Note: See TracBrowser for help on using the repository browser.