/[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 49053 - (hide annotations) (download)
Tue Feb 8 16:38:01 2011 UTC (12 years ago) by ennael
File size: 2791 byte(s)
Copying release 2.22-2mdv2011.0 to pristine/ directory.
1 ennael 49052 %define name ypserv
2     %define version 2.22
3     %define release %mkrel 2
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: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
14     Source1: ypserv-ypserv.init
15     Source2: ypserv-yppasswdd.init
16     Source3: ypserv-ypxfrd.init
17     Source4: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2.sign
18     Patch0: ypserv-2.10-makefile.patch
19     Patch2: ypserv-2.11-path.patch
20     Patch6: ypserv-2.5-nfsnobody2.patch
21     Patch11: ypserv-2.13-ypxfr-zeroresp.patch
22    
23     Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
24     BuildRequires: mawk libgdbm-devel libopenslp-devel
25     Requires: rpcbind mawk make
26     Requires(post): rpm-helper
27     Requires(preun): rpm-helper
28    
29     %description
30     The Network Information Service (NIS) is a system which provides network
31     information (login names, passwords, home directories, group information)
32     to all of the machines on a network. NIS can enable users to login on
33     any machine on the network, as long as the machine has the NIS client
34     programs running and the user's password is recorded in the NIS passwd
35     database. NIS was formerly known as Sun Yellow Pages (YP).
36    
37     This package provides the NIS server, which will need to be running on
38     your network. NIS clients do not need to be running the server.
39    
40     Install ypserv if you need an NIS server for your network. You'll also
41     need to install the yp-tools and ypbind packages onto any NIS client
42     machines.
43    
44     %prep
45     %setup -q
46     %patch0 -p1 -b .makefix
47     %patch2 -p0 -b .path
48     %patch6 -p1
49     %patch11 -p1
50    
51     %build
52     %serverbuild
53     cp etc/README etc/README.etc
54     %configure2_5x --enable-checkroot \
55     --enable-fqdn \
56     --enable-yppasswd \
57     --libexecdir=%{_libdir}/yp \
58     --mandir=%{_mandir}
59     %make
60    
61     %install
62     rm -rf $RPM_BUILD_ROOT
63     %makeinstall libexecdir=$RPM_BUILD_ROOT%{_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     %clean
73     rm -rf $RPM_BUILD_ROOT
74    
75     %post
76     %_post_service ypserv
77     %_post_service yppasswdd
78     %_post_service ypxfrd
79    
80     %preun
81     %_preun_service ypserv
82     %_preun_service yppasswdd
83     %_preun_service ypxfrd
84    
85     %files
86     %defattr(-,root,root)
87     %doc README INSTALL ChangeLog TODO NEWS
88     %doc etc/ypserv.conf etc/securenets etc/README.etc
89     %config(noreplace) %{_sysconfdir}/ypserv.conf
90     %config(noreplace) /var/yp/*
91     %{_initrddir}/*
92     %dir %{_libdir}/yp
93     %attr(755, root, root) %{_libdir}/yp/*
94     %attr(755, root, root) %{_sbindir}/*
95     %{_mandir}/*/*
96     %{_includedir}/*/*
97    
98    
99    
100    

  ViewVC Help
Powered by ViewVC 1.1.28