/[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 604036 - (show annotations) (download)
Sat Mar 15 20:59:56 2014 UTC (10 years, 1 month ago) by luigiwalser
Original Path: cauldron/ypserv/current/SPECS/ypserv.spec
File size: 2638 byte(s)
- 2.32.1 (fixes sd_notify check with systemd >= 209)
- BR systemd-devel
- use gawk instead of mawk

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

  ViewVC Help
Powered by ViewVC 1.1.30