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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 750292 - (hide annotations) (download)
Wed Oct 15 03:50:40 2014 UTC (9 years, 6 months ago) by umeabot
Original Path: cauldron/ypserv/current/SPECS/ypserv.spec
File size: 2562 byte(s)
Second Mageia 5 Mass Rebuild
1 ennael 49052 Summary: The NIS (Network Information Service) server
2     Url: http://www.linux-nis.org/
3 ovitters 650009 Name: ypserv
4     Version: 2.32.1
5 umeabot 750292 Release: %mkrel 5
6 ennael 49052 License: GPL
7     Group: System/Servers
8    
9 luigiwalser 217473 Source0: http://www.linux-nis.org/download/ypserv/%{name}-%{version}.tar.bz2
10 ennael 49052 Source1: ypserv-ypserv.init
11     Source2: ypserv-yppasswdd.init
12     Source3: ypserv-ypxfrd.init
13     Patch0: ypserv-2.10-makefile.patch
14     Patch2: ypserv-2.11-path.patch
15     Patch6: ypserv-2.5-nfsnobody2.patch
16     Patch11: ypserv-2.13-ypxfr-zeroresp.patch
17 luigiwalser 217473 Patch16: ypserv-2.27-confpost.patch
18 ennael 49052
19 luigiwalser 604036 BuildRequires: gdbm-devel
20     BuildRequires: openslp-devel
21     BuildRequires: pkgconfig(systemd)
22     Requires: rpcbind make
23 ennael 49052 Requires(post): rpm-helper
24     Requires(preun): rpm-helper
25    
26     %description
27     The Network Information Service (NIS) is a system which provides network
28     information (login names, passwords, home directories, group information)
29     to all of the machines on a network. NIS can enable users to login on
30     any machine on the network, as long as the machine has the NIS client
31     programs running and the user's password is recorded in the NIS passwd
32     database. NIS was formerly known as Sun Yellow Pages (YP).
33    
34     This package provides the NIS server, which will need to be running on
35     your network. NIS clients do not need to be running the server.
36    
37     Install ypserv if you need an NIS server for your network. You'll also
38     need to install the yp-tools and ypbind packages onto any NIS client
39     machines.
40    
41     %prep
42     %setup -q
43     %patch0 -p1 -b .makefix
44     %patch2 -p0 -b .path
45     %patch6 -p1
46     %patch11 -p1
47 luigiwalser 217473 %patch16 -p1 -b .confpost
48 ennael 49052
49     %build
50     %serverbuild
51     cp etc/README etc/README.etc
52     %configure2_5x --enable-checkroot \
53     --enable-fqdn \
54     --libexecdir=%{_libdir}/yp \
55     --mandir=%{_mandir}
56     %make
57    
58     %install
59 luigiwalser 275833 %makeinstall libexecdir=%{buildroot}%{_libdir}/yp
60 ennael 49052
61 luigiwalser 275833 install -m644 etc/ypserv.conf -D %{buildroot}%{_sysconfdir}/ypserv.conf
62     install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/ypserv
63     install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/yppasswdd
64     install -m755 %{SOURCE3} -D %{buildroot}%{_initrddir}/ypxfrd
65 ennael 49052
66 luigiwalser 275833 perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" %{buildroot}%{_initrddir}/*
67 ennael 49052
68     %post
69     %_post_service ypserv
70     %_post_service yppasswdd
71     %_post_service ypxfrd
72    
73     %preun
74     %_preun_service ypserv
75     %_preun_service yppasswdd
76     %_preun_service ypxfrd
77    
78     %files
79     %doc README INSTALL ChangeLog TODO NEWS
80     %doc etc/ypserv.conf etc/securenets etc/README.etc
81     %config(noreplace) %{_sysconfdir}/ypserv.conf
82     %config(noreplace) /var/yp/*
83     %{_initrddir}/*
84     %dir %{_libdir}/yp
85     %attr(755, root, root) %{_libdir}/yp/*
86     %attr(755, root, root) %{_sbindir}/*
87     %{_mandir}/*/*
88     %{_includedir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30