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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1797269 - (show annotations) (download)
Thu Mar 17 20:00:00 2022 UTC (10 months, 3 weeks ago) by schedbot
File size: 3058 byte(s)
Copying release 4.2-2.mga9 to pristine/ directory.
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 2
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(libsystemd)
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 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 -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/ypserv
80 install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/yppasswdd
81 install -m755 %{SOURCE3} -D %{buildroot}%{_initrddir}/ypxfrd
82
83 perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" %{buildroot}%{_initrddir}/*
84
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}/*/*

  ViewVC Help
Powered by ViewVC 1.1.28