]>
Commit | Line | Data |
---|---|---|
ab1fd8f8 JR |
1 | Summary: Universal addresses to RPC program number mapper |
2 | Name: rpcbind | |
3 | Version: 0.1.4 | |
123d354b | 4 | Release: 2 |
ab1fd8f8 JR |
5 | License: GPL |
6 | Group: Daemons | |
7 | Source0: http://nfsv4.bullopensource.org/tarballs/rpcbind/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 280539aa1f8975b1318690cd903f858a | |
9 | Source1: %{name}.init | |
10 | Source2: %{name}.sysconfig | |
b49db8b2 JR |
11 | Patch0: %{name}-format.patch |
12 | Patch1: %{name}-make-man.patch | |
13 | Patch2: %{name}-debug.patch | |
14 | Patch3: %{name}-warmstart.patch | |
15 | Patch4: %{name}-rpcuser.patch | |
16 | Patch5: %{name}-libwrap.patch | |
17 | Patch6: %{name}-syslog.patch | |
ab1fd8f8 JR |
18 | URL: http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: libtirpc-devel | |
22 | BuildRequires: libwrap-devel | |
23 | BuildRequires: rpmbuild(macros) >= 1.228 | |
24 | Requires(post,preun): /sbin/chkconfig | |
25 | Requires: /sbin/chkconfig | |
2db5233f | 26 | Requires: rc-scripts >= 0.4.1.6 |
ab1fd8f8 JR |
27 | Provides: portmap |
28 | Provides: user(rpc) | |
123d354b JR |
29 | Conflicts: nfs-utils < 1.1.0-0.rc2.1 |
30 | Conflicts: quota-rquotad < 1:3.14-4 | |
31 | Conflicts: flixengine < 8.0.8.2-1 | |
32 | Conflicts: clusternfs < 3.0-0.rc2.3 | |
ab1fd8f8 JR |
33 | Obsoletes: portmap |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | The rpcbind utility is a server that converts RPC program numbers into | |
38 | universal addresses. It must be running on the host to be able to make | |
39 | RPC calls on a server on that machine. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | %patch0 -p1 | |
44 | %patch1 -p1 | |
45 | %patch2 -p1 | |
46 | %patch3 -p1 | |
b49db8b2 JR |
47 | %patch4 -p1 |
48 | %patch5 -p1 | |
49 | %patch6 -p1 | |
ab1fd8f8 JR |
50 | |
51 | %build | |
52 | %{__aclocal} | |
ab1fd8f8 | 53 | %{__autoheader} |
b49db8b2 | 54 | %{__autoconf} |
ab1fd8f8 JR |
55 | %{__automake} |
56 | cp -f /usr/share/automake/config.sub . | |
b49db8b2 JR |
57 | %configure \ |
58 | --enable-libwrap \ | |
59 | --enable-warmstarts \ | |
60 | --with-statedir=/var/lib/rpcbind \ | |
61 | --with-rpcuser=rpc | |
ab1fd8f8 JR |
62 | %{__make} |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \ | |
67 | $RPM_BUILD_ROOT{%{_mandir}/man8,%{_var}/lib/%{name}} | |
68 | ||
69 | install src/rpcbind $RPM_BUILD_ROOT/sbin | |
70 | install src/rpcinfo $RPM_BUILD_ROOT%{_sbindir} | |
71 | ||
72 | install man/{rpcbind,rpcinfo}.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
73 | ||
74 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpcbind | |
75 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rpcbind | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %pre | |
81 | %useradd -u 22 -d /usr/share/empty -s /bin/false -c "Portmapper RPC User" -g nobody rpc | |
82 | ||
83 | %post | |
84 | /sbin/chkconfig --add rpcbind | |
85 | %service rpcbind restart | |
86 | ||
87 | %postun | |
88 | if [ "$1" = "0" ]; then | |
89 | %userremove rpc | |
90 | fi | |
91 | ||
92 | %preun | |
93 | if [ "$1" = "0" ]; then | |
94 | %service -q rpcbind stop | |
95 | /sbin/chkconfig --del rpcbind | |
96 | fi | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %doc AUTHORS ChangeLog NEWS README | |
101 | %attr(754,root,root) /etc/rc.d/init.d/rpcbind | |
102 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpcbind | |
103 | %attr(755,root,root) /sbin/* | |
104 | %attr(755,root,root) %{_sbindir}/* | |
105 | %{_mandir}/man8/*.8* | |
106 | %dir %attr(700,rpc,root) %{_var}/lib/%{name} |