1 |
Summary: The NIS (Network Information Service) server |
2 |
Url: http://www.linux-nis.org/ |
3 |
Name: ypserv |
4 |
Version: 2.32.1 |
5 |
Release: %mkrel 4 |
6 |
License: GPL |
7 |
Group: System/Servers |
8 |
|
9 |
Source0: http://www.linux-nis.org/download/ypserv/%{name}-%{version}.tar.bz2 |
10 |
Source1: ypserv-ypserv.init |
11 |
Source2: ypserv-yppasswdd.init |
12 |
Source3: ypserv-ypxfrd.init |
13 |
Patch0: ypserv-2.10-makefile.patch |
14 |
Patch2: ypserv-2.11-path.patch |
15 |
Patch6: ypserv-2.5-nfsnobody2.patch |
16 |
Patch11: ypserv-2.13-ypxfr-zeroresp.patch |
17 |
Patch16: ypserv-2.27-confpost.patch |
18 |
|
19 |
BuildRequires: gdbm-devel |
20 |
BuildRequires: openslp-devel |
21 |
BuildRequires: pkgconfig(systemd) |
22 |
Requires: rpcbind make |
23 |
Requires(post): rpm-helper |
24 |
Requires(preun): rpm-helper |
25 |
|
26 |
%description |
27 |
The Network Information Service (NIS) is a system which provides network |
28 |
information (login names, passwords, home directories, group information) |
29 |
to all of the machines on a network. NIS can enable users to login on |
30 |
any machine on the network, as long as the machine has the NIS client |
31 |
programs running and the user's password is recorded in the NIS passwd |
32 |
database. NIS was formerly known as Sun Yellow Pages (YP). |
33 |
|
34 |
This package provides the NIS server, which will need to be running on |
35 |
your network. NIS clients do not need to be running the server. |
36 |
|
37 |
Install ypserv if you need an NIS server for your network. You'll also |
38 |
need to install the yp-tools and ypbind packages onto any NIS client |
39 |
machines. |
40 |
|
41 |
%prep |
42 |
%setup -q |
43 |
%patch0 -p1 -b .makefix |
44 |
%patch2 -p0 -b .path |
45 |
%patch6 -p1 |
46 |
%patch11 -p1 |
47 |
%patch16 -p1 -b .confpost |
48 |
|
49 |
%build |
50 |
%serverbuild |
51 |
cp etc/README etc/README.etc |
52 |
%configure2_5x --enable-checkroot \ |
53 |
--enable-fqdn \ |
54 |
--libexecdir=%{_libdir}/yp \ |
55 |
--mandir=%{_mandir} |
56 |
%make |
57 |
|
58 |
%install |
59 |
%makeinstall libexecdir=%{buildroot}%{_libdir}/yp |
60 |
|
61 |
install -m644 etc/ypserv.conf -D %{buildroot}%{_sysconfdir}/ypserv.conf |
62 |
install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/ypserv |
63 |
install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/yppasswdd |
64 |
install -m755 %{SOURCE3} -D %{buildroot}%{_initrddir}/ypxfrd |
65 |
|
66 |
perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" %{buildroot}%{_initrddir}/* |
67 |
|
68 |
%post |
69 |
%_post_service ypserv |
70 |
%_post_service yppasswdd |
71 |
%_post_service ypxfrd |
72 |
|
73 |
%preun |
74 |
%_preun_service ypserv |
75 |
%_preun_service yppasswdd |
76 |
%_preun_service ypxfrd |
77 |
|
78 |
%files |
79 |
%doc README INSTALL ChangeLog TODO NEWS |
80 |
%doc etc/ypserv.conf etc/securenets etc/README.etc |
81 |
%config(noreplace) %{_sysconfdir}/ypserv.conf |
82 |
%config(noreplace) /var/yp/* |
83 |
%{_initrddir}/* |
84 |
%dir %{_libdir}/yp |
85 |
%attr(755, root, root) %{_libdir}/yp/* |
86 |
%attr(755, root, root) %{_sbindir}/* |
87 |
%{_mandir}/*/* |
88 |
%{_includedir}/*/* |