git: a7d93b79e9ad - main - sysutils/bacula*-server: remove unused scripts

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Sun, 10 Sep 2023 15:40:20 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a7d93b79e9ad5e103d8db701efc3966db31c7b64

commit a7d93b79e9ad5e103d8db701efc3966db31c7b64
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2023-09-10 15:17:27 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2023-09-10 15:40:07 +0000

    sysutils/bacula*-server: remove unused scripts
    
    Remove
    
    * files/pkg-deinstall.server.in
    * files/pkg-install.server.in
    
    They are not used. They duplicate the actions of the cliemt scripts.
    The server requires the client.
    
    PR:             273306
---
 .../bacula11-server/files/pkg-deinstall.server.in  | 34 ----------------------
 .../bacula11-server/files/pkg-install.server.in    | 13 ---------
 .../bacula13-server/files/pkg-deinstall.server.in  | 34 ----------------------
 .../bacula13-server/files/pkg-install.server.in    | 13 ---------
 .../bacula9-server/files/pkg-deinstall.server.in   | 34 ----------------------
 .../bacula9-server/files/pkg-install.server.in     | 13 ---------
 6 files changed, 141 deletions(-)

diff --git a/sysutils/bacula11-server/files/pkg-deinstall.server.in b/sysutils/bacula11-server/files/pkg-deinstall.server.in
deleted file mode 100644
index 05da0eb6a7f6..000000000000
--- a/sysutils/bacula11-server/files/pkg-deinstall.server.in
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-# Note how to delete UID/GID
-USER=%%BACULA_USER%%
-GROUP=%%BACULA_GROUP%%
-UID=%%BACULA_UID%%
-GID=%%BACULA_UID%%
-BACULA_DIR=%%BACULA_DIR%%
-
-TMPFILE=/tmp/services-$RANDOM-$$
-
-case "$2" in
-"DEINSTALL")
-	# Delete entries in /etc/services
-        sed -e '/# Bacula port start/,/# Bacula port end/{' \
-            -e 'd' \
-            -e '}' /etc/services > $TMPFILE
-        mv -f $TMPFILE /etc/services
-
-	if [ -d ${BACULA_DIR} ]; then
-	    rmdir ${BACULA_DIR};
-	fi
-	if [ -d ${BACULA_DIR} ]; then
-	    echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port."
-	fi
-
-	if pw usershow "${USER}" 2>/dev/null 1>&2; then
-	    echo "To delete Bacula user permanently, use 'pw userdel ${USER}'"
-	    echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'"
-	fi
-        ;;
-esac
diff --git a/sysutils/bacula11-server/files/pkg-install.server.in b/sysutils/bacula11-server/files/pkg-install.server.in
deleted file mode 100644
index 12e044538074..000000000000
--- a/sysutils/bacula11-server/files/pkg-install.server.in
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-# Always add lines in /etc/services
-grep -q "bacula-dir" /etc/services
-if [ "$?" != "0" ]; then
-    echo "# Bacula port start
-bacula-dir      9101/tcp   #Bacula director daemon
-bacula-fd       9102/tcp   #Bacula file daemon
-bacula-sd       9103/tcp   #Bacula storage daemon
-# Bacula port end" >> /etc/services
-fi
diff --git a/sysutils/bacula13-server/files/pkg-deinstall.server.in b/sysutils/bacula13-server/files/pkg-deinstall.server.in
deleted file mode 100644
index 05da0eb6a7f6..000000000000
--- a/sysutils/bacula13-server/files/pkg-deinstall.server.in
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-# Note how to delete UID/GID
-USER=%%BACULA_USER%%
-GROUP=%%BACULA_GROUP%%
-UID=%%BACULA_UID%%
-GID=%%BACULA_UID%%
-BACULA_DIR=%%BACULA_DIR%%
-
-TMPFILE=/tmp/services-$RANDOM-$$
-
-case "$2" in
-"DEINSTALL")
-	# Delete entries in /etc/services
-        sed -e '/# Bacula port start/,/# Bacula port end/{' \
-            -e 'd' \
-            -e '}' /etc/services > $TMPFILE
-        mv -f $TMPFILE /etc/services
-
-	if [ -d ${BACULA_DIR} ]; then
-	    rmdir ${BACULA_DIR};
-	fi
-	if [ -d ${BACULA_DIR} ]; then
-	    echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port."
-	fi
-
-	if pw usershow "${USER}" 2>/dev/null 1>&2; then
-	    echo "To delete Bacula user permanently, use 'pw userdel ${USER}'"
-	    echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'"
-	fi
-        ;;
-esac
diff --git a/sysutils/bacula13-server/files/pkg-install.server.in b/sysutils/bacula13-server/files/pkg-install.server.in
deleted file mode 100644
index 12e044538074..000000000000
--- a/sysutils/bacula13-server/files/pkg-install.server.in
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-# Always add lines in /etc/services
-grep -q "bacula-dir" /etc/services
-if [ "$?" != "0" ]; then
-    echo "# Bacula port start
-bacula-dir      9101/tcp   #Bacula director daemon
-bacula-fd       9102/tcp   #Bacula file daemon
-bacula-sd       9103/tcp   #Bacula storage daemon
-# Bacula port end" >> /etc/services
-fi
diff --git a/sysutils/bacula9-server/files/pkg-deinstall.server.in b/sysutils/bacula9-server/files/pkg-deinstall.server.in
deleted file mode 100644
index 05da0eb6a7f6..000000000000
--- a/sysutils/bacula9-server/files/pkg-deinstall.server.in
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-# Note how to delete UID/GID
-USER=%%BACULA_USER%%
-GROUP=%%BACULA_GROUP%%
-UID=%%BACULA_UID%%
-GID=%%BACULA_UID%%
-BACULA_DIR=%%BACULA_DIR%%
-
-TMPFILE=/tmp/services-$RANDOM-$$
-
-case "$2" in
-"DEINSTALL")
-	# Delete entries in /etc/services
-        sed -e '/# Bacula port start/,/# Bacula port end/{' \
-            -e 'd' \
-            -e '}' /etc/services > $TMPFILE
-        mv -f $TMPFILE /etc/services
-
-	if [ -d ${BACULA_DIR} ]; then
-	    rmdir ${BACULA_DIR};
-	fi
-	if [ -d ${BACULA_DIR} ]; then
-	    echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port."
-	fi
-
-	if pw usershow "${USER}" 2>/dev/null 1>&2; then
-	    echo "To delete Bacula user permanently, use 'pw userdel ${USER}'"
-	    echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'"
-	fi
-        ;;
-esac
diff --git a/sysutils/bacula9-server/files/pkg-install.server.in b/sysutils/bacula9-server/files/pkg-install.server.in
deleted file mode 100644
index 12e044538074..000000000000
--- a/sysutils/bacula9-server/files/pkg-install.server.in
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-# Always add lines in /etc/services
-grep -q "bacula-dir" /etc/services
-if [ "$?" != "0" ]; then
-    echo "# Bacula port start
-bacula-dir      9101/tcp   #Bacula director daemon
-bacula-fd       9102/tcp   #Bacula file daemon
-bacula-sd       9103/tcp   #Bacula storage daemon
-# Bacula port end" >> /etc/services
-fi