This update will pull in rpcbind as new dependency which
will automatically remove portmap when installed.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = nfs
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = nfs
############################################################################
#
. /opt/pakfire/lib/functions.sh
############################################################################
#
. /opt/pakfire/lib/functions.sh
-/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}
# install rpcbind
extract_files
start_service --background ${NAME}