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