1 |
Summary: The NIS (Network Information Service) server |
2 |
Url: http://www.linux-nis.org/ |
3 |
Name: ypserv |
4 |
Version: 4.2 |
5 |
Release: %mkrel 1 |
6 |
License: GPL |
7 |
Group: System/Servers |
8 |
|
9 |
Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz |
10 |
Source1: ypserv-ypserv.init |
11 |
Source2: ypserv-yppasswdd.init |
12 |
Source3: ypserv-ypxfrd.init |
13 |
Patch0: ypserv-2.5-redhat.patch |
14 |
Patch2: ypserv-2.5-nfsnobody2.patch |
15 |
Patch3: ypserv-2.13-ypxfr-zeroresp.patch |
16 |
Patch4: ypserv-2.13-nonedomain.patch |
17 |
Patch5: ypserv-2.19-slp-warning.patch |
18 |
Patch6: ypserv-4.0-manfix.patch |
19 |
Patch7: ypserv-2.24-aliases.patch |
20 |
Patch8: ypserv-2.27-confpost.patch |
21 |
Patch10: ypserv-2.31-netgrprecur.patch |
22 |
Patch12: ypserv-4.0-headers.patch |
23 |
Patch14: ypserv-4.0-selinux-context.patch |
24 |
|
25 |
BuildRequires: gdbm-devel |
26 |
BuildRequires: openslp-devel |
27 |
BuildRequires: pkgconfig(libnsl) |
28 |
BuildRequires: pkgconfig(systemd) |
29 |
BuildRequires: libtirpc-devel |
30 |
Requires: rpcbind make |
31 |
Requires(post): rpm-helper |
32 |
Requires(preun): rpm-helper |
33 |
|
34 |
%description |
35 |
The Network Information Service (NIS) is a system which provides network |
36 |
information (login names, passwords, home directories, group information) |
37 |
to all of the machines on a network. NIS can enable users to login on |
38 |
any machine on the network, as long as the machine has the NIS client |
39 |
programs running and the user's password is recorded in the NIS passwd |
40 |
database. NIS was formerly known as Sun Yellow Pages (YP). |
41 |
|
42 |
This package provides the NIS server, which will need to be running on |
43 |
your network. NIS clients do not need to be running the server. |
44 |
|
45 |
Install ypserv if you need an NIS server for your network. You'll also |
46 |
need to install the yp-tools and ypbind packages onto any NIS client |
47 |
machines. |
48 |
|
49 |
%prep |
50 |
%setup -q |
51 |
%patch0 -p1 -b .redhat |
52 |
%patch2 -p1 -b .nfsnobody |
53 |
%patch3 -p1 -b .respzero |
54 |
%patch4 -p1 -b .nonedomain |
55 |
%patch5 -p1 -b .slp-warning |
56 |
%patch6 -p1 -b .manfix |
57 |
%patch7 -p1 -b .aliases |
58 |
%patch8 -p1 -b .confpost |
59 |
%patch10 -p1 -b .netgrprecur |
60 |
%patch12 -b .headers |
61 |
%patch14 -p1 -b .selinux-context |
62 |
|
63 |
autoreconf -i |
64 |
|
65 |
%build |
66 |
%serverbuild |
67 |
cp etc/README etc/README.etc |
68 |
%configure --enable-checkroot \ |
69 |
--enable-fqdn \ |
70 |
--libexecdir=%{_libdir}/yp \ |
71 |
--mandir=%{_mandir} |
72 |
%make_build |
73 |
|
74 |
%install |
75 |
%make_install |
76 |
|
77 |
install -m644 etc/ypserv.conf -D %{buildroot}%{_sysconfdir}/ypserv.conf |
78 |
install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/ypserv |
79 |
install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/yppasswdd |
80 |
install -m755 %{SOURCE3} -D %{buildroot}%{_initrddir}/ypxfrd |
81 |
|
82 |
perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" %{buildroot}%{_initrddir}/* |
83 |
|
84 |
%post |
85 |
%_post_service ypserv |
86 |
%_post_service yppasswdd |
87 |
%_post_service ypxfrd |
88 |
|
89 |
%preun |
90 |
%_preun_service ypserv |
91 |
%_preun_service yppasswdd |
92 |
%_preun_service ypxfrd |
93 |
|
94 |
%files |
95 |
%doc README INSTALL ChangeLog TODO NEWS |
96 |
%doc etc/ypserv.conf etc/securenets etc/README.etc |
97 |
%config(noreplace) %{_sysconfdir}/ypserv.conf |
98 |
%config(noreplace) /var/yp/* |
99 |
%{_initrddir}/* |
100 |
%dir %{_libdir}/yp |
101 |
%attr(755, root, root) %{_libdir}/yp/* |
102 |
%attr(755, root, root) %{_sbindir}/* |
103 |
%{_mandir}/*/* |
104 |
%{_includedir}/*/* |