2024-01-05 17:28:41 +01:00
|
|
|
%define groupid 59
|
|
|
|
%define userid 59
|
|
|
|
Name: rpcbind
|
2024-07-28 10:08:06 +02:00
|
|
|
Version: 1.2.7
|
|
|
|
Release: 2mamba
|
2024-01-05 17:28:41 +01:00
|
|
|
Summary: A replacement for portmap required for import or export of NFS shared directories
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-07-28 10:08:06 +02:00
|
|
|
URL: https://sourceforge.net/projects/rpcbind/
|
2024-01-05 17:28:41 +01:00
|
|
|
Source: http://downloads.sourceforge.net/rpcbind/rpcbind-%{version}.tar.bz2
|
|
|
|
Source1: rpcbind.service
|
|
|
|
Source2: rpcbind.socket
|
|
|
|
Source3: rpcbind.sysconfig
|
|
|
|
Patch0: rpcbind-0.2.1-run.patch
|
2024-01-05 17:28:41 +01:00
|
|
|
Patch2: rpcbind-0.2.3-services-sunrpc.patch
|
2024-01-05 17:28:41 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 17:28:41 +01:00
|
|
|
BuildRequires: libsystemd-devel
|
2024-01-05 17:28:41 +01:00
|
|
|
BuildRequires: libtirpc-devel
|
2024-01-05 17:28:41 +01:00
|
|
|
BuildRequires: libwrap-devel
|
2024-01-05 17:28:41 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 17:28:41 +01:00
|
|
|
BuildRequires: libtirpc-devel >= 0.2.5-3mamba
|
2024-01-05 17:28:41 +01:00
|
|
|
Provides: portmap
|
2024-07-28 10:08:06 +02:00
|
|
|
Obsoletes: portmap < 1.2.7
|
|
|
|
Provides: user(rpc)
|
|
|
|
Provides: group(rpc)
|
2024-01-05 17:28:41 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The rpcbind program is a replacement for portmap. It is required for import or export of Network File System (NFS) shared directories.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-07-28 10:08:06 +02:00
|
|
|
%patch 0 -p1
|
|
|
|
%patch 2 -p1
|
2024-01-05 17:28:41 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fisv
|
|
|
|
%configure \
|
|
|
|
--enable-warmstarts \
|
|
|
|
--with-statedir=/var/lib/rpcbind \
|
|
|
|
--with-rpcuser=rpc \
|
|
|
|
--enable-libwrap \
|
|
|
|
--enable-debug
|
|
|
|
|
|
|
|
%make all
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
install -d %{buildroot}/var/lib/rpcbind
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
/usr/sbin/groupadd rpc -g %{groupid} &>/dev/null
|
|
|
|
/usr/sbin/useradd -u %{userid} -g rpc -c 'RPC bind daemon' \
|
|
|
|
-d /var/empty -s /bin/false rpc &>/dev/null
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
/usr/sbin/userdel rpc &>/dev/null
|
|
|
|
/usr/sbin/groupdel rpc &>/dev/null
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 17:28:41 +01:00
|
|
|
%{_sbindir}/rpcbind
|
|
|
|
%{_bindir}/rpcinfo
|
2024-01-05 17:28:41 +01:00
|
|
|
%{_unitdir}/rpcbind.service
|
|
|
|
%{_unitdir}/rpcbind.socket
|
|
|
|
%{_mandir}/man8/rpcbind.8*
|
|
|
|
%{_mandir}/man8/rpcinfo.8*
|
|
|
|
%dir %attr(700,rpc,rpc) /var/lib/rpcbind
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%changelog
|
2024-07-28 10:08:06 +02:00
|
|
|
* Sat Jul 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.7-2mamba
|
|
|
|
- provide rpc user and group
|
|
|
|
|
|
|
|
* Sat Jul 27 2024 Automatic Build System <autodist@openmamba.org> 1.2.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Wed May 12 2021 Automatic Build System <autodist@mambasoft.it> 1.2.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Wed Sep 05 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.5-2mamba
|
|
|
|
- provide systemd files from source
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Thu Aug 23 2018 Automatic Build System <autodist@mambasoft.it> 1.2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Mon Dec 05 2016 Automatic Build System <autodist@mambasoft.it> 0.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Sat May 09 2015 Automatic Build System <autodist@mambasoft.it> 0.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Mon Dec 29 2014 Automatic Build System <autodist@mambasoft.it> 0.2.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Wed Oct 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.1-3mamba
|
|
|
|
- rebuilt with libtirpc-devel >= 0.2.5-3mamba to get from headers new location of rpcbind.sock (/run)
|
|
|
|
- remove listening to 111 in rpcbind.socket to let rpcbind start correctly with systemd
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Tue Jun 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.1-2mamba
|
|
|
|
- fixed rpcbind.socket (added ListenStream=111 and ListenDatagram=111)
|
|
|
|
|
2024-01-05 17:28:41 +01:00
|
|
|
* Sat May 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.1-1mamba
|
|
|
|
- package created using the webbuild interface
|