/[packages]/cauldron/ypserv/current/SPECS/ypserv.spec
ViewVC logotype

Contents of /cauldron/ypserv/current/SPECS/ypserv.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2057400 - (show annotations) (download)
Sun Apr 14 16:10:07 2024 UTC (41 hours, 1 minute ago) by daviddavid
File size: 3033 byte(s)
- switch to systemd unit from initscripts

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 4
6 License: GPL-2.0-only
7 Group: System/Servers
8
9 Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz
10 Source1: ypserv.service
11 Source2: yppasswdd.service
12 Source3: ypxfrd.service
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(libsystemd)
29 BuildRequires: libtirpc-devel
30
31 Requires: rpcbind make
32 Requires(post): systemd
33 Requires(preun): systemd
34
35 %description
36 The Network Information Service (NIS) is a system which provides network
37 information (login names, passwords, home directories, group information)
38 to all of the machines on a network. NIS can enable users to login on
39 any machine on the network, as long as the machine has the NIS client
40 programs running and the user's password is recorded in the NIS passwd
41 database. NIS was formerly known as Sun Yellow Pages (YP).
42
43 This package provides the NIS server, which will need to be running on
44 your network. NIS clients do not need to be running the server.
45
46 Install ypserv if you need an NIS server for your network. You'll also
47 need to install the yp-tools and ypbind packages onto any NIS client
48 machines.
49
50 %prep
51 %setup -q
52 %patch -P 0 -p1 -b .redhat
53 %patch -P 2 -p1 -b .nfsnobody
54 %patch -P 3 -p1 -b .respzero
55 %patch -P 4 -p1 -b .nonedomain
56 %patch -P 5 -p1 -b .slp-warning
57 %patch -P 6 -p1 -b .manfix
58 %patch -P 7 -p1 -b .aliases
59 %patch -P 8 -p1 -b .confpost
60 %patch -P 10 -p1 -b .netgrprecur
61 %patch -P 12 -b .headers
62 %patch -P 14 -p1 -b .selinux-context
63
64 %build
65 %serverbuild
66 autoreconf -vfi
67 cp etc/README etc/README.etc
68 %configure CFLAGS="$CFLAGS -Wno-format-overflow" \
69 --enable-checkroot \
70 --enable-fqdn \
71 --libexecdir=%{_libdir}/yp \
72 --mandir=%{_mandir}
73 %make_build
74
75 %install
76 %make_install
77
78 install -m644 etc/ypserv.conf -D %{buildroot}%{_sysconfdir}/ypserv.conf
79 install -m644 %{SOURCE1} -D %{buildroot}%{_unitdir}/ypserv.service
80 install -m644 %{SOURCE2} -D %{buildroot}%{_unitdir}/yppasswdd.service
81 install -m644 %{SOURCE3} -D %{buildroot}%{_unitdir}/ypxfrd.service
82
83 %post
84 %_post_service ypserv
85 %_post_service yppasswdd
86 %_post_service ypxfrd
87
88 %preun
89 %_preun_service ypserv
90 %_preun_service yppasswdd
91 %_preun_service ypxfrd
92
93 %files
94 %doc README INSTALL ChangeLog TODO NEWS
95 %doc etc/ypserv.conf etc/securenets etc/README.etc
96 %config(noreplace) %{_sysconfdir}/ypserv.conf
97 %config(noreplace) /var/yp/*
98 %{_unitdir}/*
99 %dir %{_libdir}/yp
100 %attr(755, root, root) %{_libdir}/yp/*
101 %attr(755, root, root) %{_sbindir}/*
102 %{_mandir}/*/*
103 %{_includedir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30