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