1 |
ennael |
49052 |
Summary: The NIS (Network Information Service) server |
2 |
|
|
Url: http://www.linux-nis.org/ |
3 |
ovitters |
650009 |
Name: ypserv |
4 |
tv |
1750651 |
Version: 4.2 |
5 |
danf |
1797245 |
Release: %mkrel 2 |
6 |
ennael |
49052 |
License: GPL |
7 |
|
|
Group: System/Servers |
8 |
|
|
|
9 |
tv |
1649366 |
Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz |
10 |
ennael |
49052 |
Source1: ypserv-ypserv.init |
11 |
|
|
Source2: ypserv-yppasswdd.init |
12 |
|
|
Source3: ypserv-ypxfrd.init |
13 |
tv |
1649366 |
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 |
ennael |
49052 |
|
25 |
luigiwalser |
604036 |
BuildRequires: gdbm-devel |
26 |
|
|
BuildRequires: openslp-devel |
27 |
tv |
1649366 |
BuildRequires: pkgconfig(libnsl) |
28 |
danf |
1779305 |
BuildRequires: pkgconfig(libsystemd) |
29 |
tv |
1649366 |
BuildRequires: libtirpc-devel |
30 |
luigiwalser |
604036 |
Requires: rpcbind make |
31 |
ennael |
49052 |
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 |
tv |
1649366 |
%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 |
ennael |
49052 |
|
63 |
tv |
1649366 |
autoreconf -i |
64 |
|
|
|
65 |
ennael |
49052 |
%build |
66 |
|
|
%serverbuild |
67 |
|
|
cp etc/README etc/README.etc |
68 |
danf |
1797245 |
%configure CFLAGS="$CFLAGS -Wno-format-overflow" \ |
69 |
|
|
--enable-checkroot \ |
70 |
ennael |
49052 |
--enable-fqdn \ |
71 |
|
|
--libexecdir=%{_libdir}/yp \ |
72 |
|
|
--mandir=%{_mandir} |
73 |
ovitters |
1579575 |
%make_build |
74 |
ennael |
49052 |
|
75 |
|
|
%install |
76 |
tv |
1649366 |
%make_install |
77 |
ennael |
49052 |
|
78 |
luigiwalser |
275833 |
install -m644 etc/ypserv.conf -D %{buildroot}%{_sysconfdir}/ypserv.conf |
79 |
|
|
install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/ypserv |
80 |
|
|
install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/yppasswdd |
81 |
|
|
install -m755 %{SOURCE3} -D %{buildroot}%{_initrddir}/ypxfrd |
82 |
ennael |
49052 |
|
83 |
luigiwalser |
275833 |
perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" %{buildroot}%{_initrddir}/* |
84 |
ennael |
49052 |
|
85 |
|
|
%post |
86 |
|
|
%_post_service ypserv |
87 |
|
|
%_post_service yppasswdd |
88 |
|
|
%_post_service ypxfrd |
89 |
|
|
|
90 |
|
|
%preun |
91 |
|
|
%_preun_service ypserv |
92 |
|
|
%_preun_service yppasswdd |
93 |
|
|
%_preun_service ypxfrd |
94 |
|
|
|
95 |
|
|
%files |
96 |
|
|
%doc README INSTALL ChangeLog TODO NEWS |
97 |
|
|
%doc etc/ypserv.conf etc/securenets etc/README.etc |
98 |
|
|
%config(noreplace) %{_sysconfdir}/ypserv.conf |
99 |
|
|
%config(noreplace) /var/yp/* |
100 |
|
|
%{_initrddir}/* |
101 |
|
|
%dir %{_libdir}/yp |
102 |
|
|
%attr(755, root, root) %{_libdir}/yp/* |
103 |
|
|
%attr(755, root, root) %{_sbindir}/* |
104 |
|
|
%{_mandir}/*/* |
105 |
|
|
%{_includedir}/*/* |