aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-10-06 05:21:26 +0800
committermiwi <miwi@FreeBSD.org>2006-10-06 05:21:26 +0800
commit53fe5804ee5960cb79f38c6d928c2a99527a7299 (patch)
tree006fd2a6b111e23b2a72b04734f42def4481c17e /sysutils
parenteb44ac1861d9509a1adc152e5c5b44c612541cf2 (diff)
downloadfreebsd-ports-gnome-53fe5804ee5960cb79f38c6d928c2a99527a7299.tar.gz
freebsd-ports-gnome-53fe5804ee5960cb79f38c6d928c2a99527a7299.tar.zst
freebsd-ports-gnome-53fe5804ee5960cb79f38c6d928c2a99527a7299.zip
- Correctly handle manpages
- Always install baucla group so that client install works - Do not install mysql start/stop scripts - Bump PORTREVISION PR: ports/103176 Submitted by: Dan Langille (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bacula-server-devel/Makefile15
-rw-r--r--sysutils/bacula-server-devel/files/patch-scripts-Makefile.in11
-rw-r--r--sysutils/bacula-server-devel/pkg-deinstall.client7
-rw-r--r--sysutils/bacula-server-devel/pkg-install.client26
-rw-r--r--sysutils/bacula-server-devel/pkg-plist2
5 files changed, 47 insertions, 14 deletions
diff --git a/sysutils/bacula-server-devel/Makefile b/sysutils/bacula-server-devel/Makefile
index c59b259ad7b3..b72653e951d6 100644
--- a/sysutils/bacula-server-devel/Makefile
+++ b/sysutils/bacula-server-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bacula
DISTVERSION= 1.39.24.20061002
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula
@@ -162,16 +163,8 @@ CONFIGURE_ARGS+= --with-openssl
.if defined(WITH_CLIENT_ONLY)
MAN8=bacula-fd.8 bconsole.8
.else
-MAN8=bacula-dir.8 bacula-sd.8 bacula.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 dbcheck.8
-MAN1=bsmtp.1
-.endif
-
-.if defined(WITH_GNOMECONSOLE)
- MAN1+=bacula-console-gnome.1
-.endif
-
-.if defined(WITH_WXCONSOLE)
- MAN1+=bacula-wxconsole.1
+MAN8=bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8
+MAN1=bsmtp.1 bacula-console-gnome.1 bacula-tray-monitor.1 bacula-wxconsole.1
.endif
pre-everything::
@@ -224,11 +217,9 @@ pre-install:
${ECHO_CMD} "${BACULA_DIR} already exists"; \
fi
-.if !defined(WITH_CLIENT_ONLY)
# Extend /etc/services and install UID/GID
@ ${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
-.endif
post-install:
.if defined(MAN8)
diff --git a/sysutils/bacula-server-devel/files/patch-scripts-Makefile.in b/sysutils/bacula-server-devel/files/patch-scripts-Makefile.in
new file mode 100644
index 000000000000..d05246bbbcd7
--- /dev/null
+++ b/sysutils/bacula-server-devel/files/patch-scripts-Makefile.in
@@ -0,0 +1,11 @@
+--- scripts/Makefile.in.orig Tue Sep 12 12:03:08 2006
++++ scripts/Makefile.in Tue Sep 12 12:03:08 2006
+@@ -33,8 +33,6 @@
+ $(MKDIR) $(DESTDIR)$(mandir)
+
+ install: installdirs
+- $(INSTALL_SCRIPT) startmysql $(DESTDIR)$(scriptdir)/startmysql
+- $(INSTALL_SCRIPT) stopmysql $(DESTDIR)$(scriptdir)/stopmysql
+ $(INSTALL_SCRIPT) bconsole $(DESTDIR)$(scriptdir)/bconsole
+ $(INSTALL_SCRIPT) gconsole $(DESTDIR)$(scriptdir)/gconsole
+ $(INSTALL_SCRIPT) bacula $(DESTDIR)$(scriptdir)/bacula
diff --git a/sysutils/bacula-server-devel/pkg-deinstall.client b/sysutils/bacula-server-devel/pkg-deinstall.client
index cadbda56ab93..206ec9efca6b 100644
--- a/sysutils/bacula-server-devel/pkg-deinstall.client
+++ b/sysutils/bacula-server-devel/pkg-deinstall.client
@@ -20,5 +20,12 @@ case "$2" in
if [ -d ${BACULA_DIR} ]; then
echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port"
fi
+
+ # Note how to delete UID/GID
+ USER=bacula
+ GROUP=${USER}
+ if pw groupshow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'"
+ fi
;;
esac
diff --git a/sysutils/bacula-server-devel/pkg-install.client b/sysutils/bacula-server-devel/pkg-install.client
index 7dc31b47c8b8..656acca83733 100644
--- a/sysutils/bacula-server-devel/pkg-install.client
+++ b/sysutils/bacula-server-devel/pkg-install.client
@@ -15,3 +15,29 @@ bacula-sd 9103/tcp #Bacula storage daemon
# Bacule port end" >> /etc/services
fi
+case $2 in
+PRE-INSTALL)
+ # Install UID/GID
+ USER=bacula
+ GROUP=${USER}
+ UID=910
+ GID=${UID}
+
+ if [ ! -d ${BACULA_DIR} ]; then
+ mkdir -p ${BACULA_DIR}
+ fi
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chgrp -R ${GROUP} ${BACULA_DIR}
+ ;;
+esac
diff --git a/sysutils/bacula-server-devel/pkg-plist b/sysutils/bacula-server-devel/pkg-plist
index a3d67015b39b..8ba64eccb539 100644
--- a/sysutils/bacula-server-devel/pkg-plist
+++ b/sysutils/bacula-server-devel/pkg-plist
@@ -35,8 +35,6 @@ sbin/dbcheck
%%DATADIR%%/make_%%DBTYPE%%_tables
%%DATADIR%%/mtx-changer
%%DATADIR%%/query.sql
-%%DATADIR%%/startmysql
-%%DATADIR%%/stopmysql
%%DATADIR%%/update_bacula_tables
%%DATADIR%%/update_%%DBTYPE%%_tables