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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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 daviddavid 2057400 Release: %mkrel 4
6     License: GPL-2.0-only
7 ennael 49052 Group: System/Servers
8    
9 tv 1649366 Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz
10 daviddavid 2057400 Source1: ypserv.service
11     Source2: yppasswdd.service
12     Source3: ypxfrd.service
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 daviddavid 2057400
31 luigiwalser 604036 Requires: rpcbind make
32 daviddavid 2057400 Requires(post): systemd
33     Requires(preun): systemd
34 ennael 49052
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 daviddavid 2057400 %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 ennael 49052
64     %build
65     %serverbuild
66 daviddavid 2057400 autoreconf -vfi
67 ennael 49052 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 daviddavid 2057400 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 ennael 49052
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 daviddavid 2057400
93 ennael 49052 %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 daviddavid 2057400 %{_unitdir}/*
99 ennael 49052 %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