aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bacula5-server
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2014-12-21 21:55:49 +0000
committerDan Langille <dvl@FreeBSD.org>2014-12-21 21:55:49 +0000
commit142fb20052ac7f8a5ab272f5840ac13b4d307c8d (patch)
tree359399925dd0671008fc22544843f29cfb10c8bb /sysutils/bacula5-server
parent1a27fc9ebd204d846c50af17ed0fe27e0bcdbbd8 (diff)
downloadports-142fb20052ac7f8a5ab272f5840ac13b4d307c8d.tar.gz
ports-142fb20052ac7f8a5ab272f5840ac13b4d307c8d.zip
* ETCDIR should be chgrp bacula so the configuration files can be be read by
scripts. While here: * fix creation and deletion of /var/db/bacula to avoid error message on pkg delete and on removal of just the bacula-dir port. * Change MAINTAINER to @FreeBSD.org address PR: 196017 Submitted by: timp87@gmail.com Approved by: mat (mentor)
Notes
Notes: svn path=/head/; revision=375197
Diffstat (limited to 'sysutils/bacula5-server')
-rw-r--r--sysutils/bacula5-server/Makefile5
-rw-r--r--sysutils/bacula5-server/files/pkg-deinstall.client.in3
-rw-r--r--sysutils/bacula5-server/pkg-plist1
-rw-r--r--sysutils/bacula5-server/pkg-plist.client7
4 files changed, 5 insertions, 11 deletions
diff --git a/sysutils/bacula5-server/Makefile b/sysutils/bacula5-server/Makefile
index 4dca125bdb9a..9565d038b285 100644
--- a/sysutils/bacula5-server/Makefile
+++ b/sysutils/bacula5-server/Makefile
@@ -3,7 +3,7 @@
PORTNAME= bacula
DISTVERSION= 5.2.12
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES?= sysutils
MASTER_SITES= SF/bacula/bacula/${PORTVERSION}
PKGNAMEPREFIX?= #
@@ -169,9 +169,6 @@ post-patch:
${WRKSRC}/src/tools/bpluginfo.c
.endif
-pre-install:
- ${MKDIR} ${STAGEDIR}${BACULA_DIR}
-
.if !target(post-install)
post-install:
.if defined(WITH_CLIENT_ONLY)
diff --git a/sysutils/bacula5-server/files/pkg-deinstall.client.in b/sysutils/bacula5-server/files/pkg-deinstall.client.in
index 7c07237addd7..6df11070aea9 100644
--- a/sysutils/bacula5-server/files/pkg-deinstall.client.in
+++ b/sysutils/bacula5-server/files/pkg-deinstall.client.in
@@ -20,9 +20,6 @@ case "$2" in
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
diff --git a/sysutils/bacula5-server/pkg-plist b/sysutils/bacula5-server/pkg-plist
index 387e55fdef66..ddb3cbb9a22c 100644
--- a/sysutils/bacula5-server/pkg-plist
+++ b/sysutils/bacula5-server/pkg-plist
@@ -75,5 +75,6 @@ sbin/dbcheck
%%DATADIR%%/query.sql
%%DATADIR%%/update_bacula_tables
%%DATADIR%%/update_%%DBTYPE%%_tables
+@dir(bacula,bacula,) %%BACULA_DIR%%
@owner root
@group wheel
diff --git a/sysutils/bacula5-server/pkg-plist.client b/sysutils/bacula5-server/pkg-plist.client
index 0257d088bf8f..ffe16ec3c91e 100644
--- a/sysutils/bacula5-server/pkg-plist.client
+++ b/sysutils/bacula5-server/pkg-plist.client
@@ -25,7 +25,6 @@ sbin/bacula-fd
@group bacula
sbin/bconsole
@group wheel
-@exec mkdir -p %%BACULA_DIR%%
-@dirrmtry %%BACULA_DIR%%
-@dirrmtry share/bacula
-@dirrmtry %%ETCDIR%%
+@dir(bacula,bacula,) %%BACULA_DIR%%
+@dir share/bacula
+@dir(,bacula,) %%ETCDIR%%