Hello community,
here is the log from the commit of package rpcbind
checked in at Mon Dec 1 18:07:53 CET 2008.
--------
--- rpcbind/rpcbind.changes 2008-11-26 14:19:26.000000000 +0100
+++ /mounts/work_src_done/STABLE/rpcbind/rpcbind.changes 2008-12-01 12:58:15.000000000 +0100
@@ -1,0 +2,10 @@
+Mon Dec 1 12:29:50 CET 2008 - mkoenig@suse.de
+
+- if upgrading from portmap:
+ * we need to stop portmap and start rpcbind in %post since the
+ restart on upgrade mechanism does not work here
+ * dump portmap tables and set them again in rpcbind [bnc#446388]
+- add pmap_set.c which is needed to set the old portmap tables
+ in rpcbind
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
pmap_set.c
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rpcbind.spec ++++++
--- /var/tmp/diff_new_pack.ix1897/_old 2008-12-01 18:05:33.000000000 +0100
+++ /var/tmp/diff_new_pack.ix1897/_new 2008-12-01 18:05:33.000000000 +0100
@@ -24,17 +24,19 @@
Group: Productivity/Networking/System
AutoReqProv: on
Version: 0.1.6+git20080930
-Release: 3
+Release: 4
Summary: Transport independent RPC portmapper
Url: http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
Source: %{name}-%{version}.tar.bz2
Source1: rpcbind.init
Source2: sysconfig.rpcbind
Source3: rpcbind.xml
+Source4: pmap_set.c
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: portmap = 6.0+git20070716
Obsoletes: portmap <= 6.0+git20070716
PreReq: %insserv_prereq %fillup_prereq
+%define statefile /var/lib/portmap.state
%description
Rpcbind is a replacement for portmap. Whereas portmap supports only UDP
@@ -52,6 +54,7 @@
%prep
%setup
+cp %{SOURCE4} .
%build
autoreconf -fi
@@ -66,6 +69,7 @@
CFLAGS="$RPM_OPT_FLAGS -fpie" \
LDFLAGS="-pie"
make
+gcc -o pmap_set $RPM_OPT_FLAGS pmap_set.c
%install
make install DESTDIR=$RPM_BUILD_ROOT
@@ -80,12 +84,20 @@
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/
mkdir -p $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d/
+#
+install -m 755 pmap_set $RPM_BUILD_ROOT/sbin/pmap_set
%clean
rm -rf $RPM_BUILD_ROOT
%pre
# upgrade case from portmap
+# 1. if portmap is running, dump portmap tables
+if checkproc /sbin/portmap; then
+ rm -f %statefile
+ test -x /sbin/pmap_dump && /sbin/pmap_dump > %statefile
+fi
+# 2. disable portmap service to be able to enable rpcbind
if test -x /sbin/portmap && chkconfig -c portmap 3; then
/sbin/insserv -f -r portmap
fi
@@ -95,6 +107,14 @@
%post
%fillup_and_insserv -y rpcbind
+# if portmap is running, we need to stop portmap *now*,
+# start rpcbind and restore the old tables
+if test -r %statefile; then
+ /etc/init.d/portmap stop > /dev/null || :
+ /etc/init.d/rpcbind start > /dev/null || :
+ /sbin/pmap_set < %statefile
+ rm -f %statefile
+fi
%postun
%restart_on_update rpcbind
@@ -103,6 +123,7 @@
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
+/sbin/pmap_set
/sbin/rpcbind
/sbin/rpcinfo
%doc %{_mandir}/*/*
@@ -113,6 +134,13 @@
%{_datadir}/omc/svcinfo.d/rpcbind.xml
%changelog
+* Mon Dec 01 2008 mkoenig@suse.de
+- if upgrading from portmap:
+ * we need to stop portmap and start rpcbind in %%post since the
+ restart on upgrade mechanism does not work here
+ * dump portmap tables and set them again in rpcbind [bnc#446388]
+- add pmap_set.c which is needed to set the old portmap tables
+ in rpcbind
* Wed Nov 26 2008 mkoenig@suse.de
- specify runlevel in chkconfig check [bnc#444663]
* Wed Nov 05 2008 mkoenig@suse.de
++++++ pmap_set.c ++++++
/*
* pmap_set - set portmapper table from data produced by pmap_dump
*
* Author: Wietse Venema (wietse@wzv.win.tue.nl), dept. of Mathematics and
* Computing Science, Eindhoven University of Technology, The Netherlands.
*/
#include