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