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