aboutsummaryrefslogtreecommitdiffstats
path: root/misc/amanda32-server
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2009-01-09 09:48:48 +0800
committerkuriyama <kuriyama@FreeBSD.org>2009-01-09 09:48:48 +0800
commit747bfee7e45592ed0992c42ef39d3f507e1eb5b8 (patch)
treee45a809f6a4ef442aa1f2d04f7ab7d60b7181636 /misc/amanda32-server
parented6b6c81c24bb61016d2b18b1610c456a8327dc9 (diff)
downloadfreebsd-ports-gnome-747bfee7e45592ed0992c42ef39d3f507e1eb5b8.tar.gz
freebsd-ports-gnome-747bfee7e45592ed0992c42ef39d3f507e1eb5b8.tar.zst
freebsd-ports-gnome-747bfee7e45592ed0992c42ef39d3f507e1eb5b8.zip
Add $AMANDA_DATES knob to allow setting amandates file location.
PR: ports/130244 (based on) Submitted by: "Douglas K. Rand" <rand@meridian-enviro.com>
Diffstat (limited to 'misc/amanda32-server')
-rw-r--r--misc/amanda32-server/Makefile10
-rw-r--r--misc/amanda32-server/pkg-plist.client3
2 files changed, 7 insertions, 6 deletions
diff --git a/misc/amanda32-server/Makefile b/misc/amanda32-server/Makefile
index 81ebe69bf2be..070b4ab1281d 100644
--- a/misc/amanda32-server/Makefile
+++ b/misc/amanda32-server/Makefile
@@ -45,7 +45,8 @@ OPTIONS= GNUTAR "use GNU tar" on \
AMANDA_USER?= operator
AMANDA_GROUP?= operator
AMANDA_GNUTAR_LISTDIR?= ${PREFIX}/var/amanda/gnutar-lists
-PLIST_SUB= SHLIBVER=${PORTVERSION}
+AMANDA_DATES?= ${PREFIX}/var/amanda/amandadates
+PLIST_SUB= SHLIBVER=${PORTVERSION} AMANDA_DATES=${PREFIX}/var/amanda/amandadates
# amanda-server/amanda-client common part
.if defined (AMANDA_SERVER)
@@ -180,10 +181,11 @@ pre-fetch:
@${ECHO} " between low and high when connecting from the client"
@${ECHO} " to the server. Use ports below 1024."
@${ECHO} " The default is no restriction on UDP ports."
+ @${ECHO} " AMANDA_DATES=path to client amandates file"
@${ECHO} ""
CONFLICTS= amanda-client-2.5.*
-CONFIGURE_ARGS+=--without-server
+CONFIGURE_ARGS+=--without-server --with-amandates=${AMANDA_DATES}
MAN5= amanda.conf.5 amanda-client.conf.5
MAN8= amanda.8 amrecover.8
@@ -199,8 +201,8 @@ post-install:
${PREFIX}/share/examples/amanda
${MKDIR} ${AMANDA_GNUTAR_LISTDIR}
${CHOWN} ${AMANDA_USER}:${AMANDA_GROUP} ${AMANDA_GNUTAR_LISTDIR}
- ${TOUCH} ${PREFIX}/var/amanda/amandates
- ${CHOWN} ${AMANDA_USER}:${AMANDA_GROUP} ${PREFIX}/var/amanda/amandates
+ ${TOUCH} ${AMANDA_DATES}
+ ${CHOWN} ${AMANDA_USER}:${AMANDA_GROUP} ${AMANDA_DATES}
.if defined (WITH_DUMP_SNAPSHOT)
EXTRA_PATCHES= ${FILESDIR}/extra-patch-sendbackup-dump.c
diff --git a/misc/amanda32-server/pkg-plist.client b/misc/amanda32-server/pkg-plist.client
index fd556666cc49..a061aeee0d62 100644
--- a/misc/amanda32-server/pkg-plist.client
+++ b/misc/amanda32-server/pkg-plist.client
@@ -1,4 +1,4 @@
-@unexec if cmp -s /etc/amandates /dev/null; then rm -f /etc/amandates; fi
+@unexec if cmp -s %%AMANDA_DATES%% /dev/null; then rm -f %%AMANDA_DATES; fi
lib/amanda/libamanda-%%SHLIBVER%%.so
lib/amanda/libamanda.a
lib/amanda/libamanda.la
@@ -82,7 +82,6 @@ var/lib/amanda/template.d/amanda-tape-changer.conf
var/lib/amanda/template.d/chg-manual.conf
var/lib/amanda/template.d/dumptypes
var/lib/amanda/template.d/tapetypes
-var/amanda/amandates
@dirrm %%SITE_PERL%%/auto/Amanda/Util
@dirrm %%SITE_PERL%%/auto/Amanda/Types
@dirrm %%SITE_PERL%%/auto/Amanda/Debug