From 1193d00f514a5fb91652ab6fbfb35cacc607af0c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 18 May 2016 16:41:51 +0100 Subject: [PATCH] nfs: Bump release to install rpcbind dependency This update will pull in rpcbind as new dependency which will automatically remove portmap when installed. Signed-off-by: Michael Tremer --- lfs/nfs | 2 +- src/paks/rpcbind/install.sh | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lfs/nfs b/lfs/nfs index ee9b3a0593..42ac5b5867 100644 --- a/lfs/nfs +++ b/lfs/nfs @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = nfs -PAK_VER = 7 +PAK_VER = 8 DEPS = "rpcbind" diff --git a/src/paks/rpcbind/install.sh b/src/paks/rpcbind/install.sh index e523183d88..aa699f2cb6 100644 --- a/src/paks/rpcbind/install.sh +++ b/src/paks/rpcbind/install.sh @@ -22,9 +22,17 @@ ############################################################################ # . /opt/pakfire/lib/functions.sh + # remove portmap -/etc/init.d/portmap stop -rm -rf /etc/rc.d/rc*.d/*portmap /sbin/portmap /etc/rc.d/init.d/portmap +if [ -e "/opt/pakfire/db/installed/meta-portmap" ]; then + /etc/init.d/portmap stop + rm -rf /etc/rc.d/rc*.d/*portmap \ + /sbin/portmap \ + /etc/rc.d/init.d/portmap \ + /opt/pakfire/db/installed/meta-portmap \ + /opt/pakfire/db/rootfiles/portmap +fi + # install rpcbind extract_files start_service --background ${NAME} -- 2.39.2