summaryrefslogtreecommitdiffstats
path: root/misc/amanda32-server
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2003-02-12 17:49:27 +0000
committerjeh <jeh@FreeBSD.org>2003-02-12 17:49:27 +0000
commit21ac77b4cee19e50ad37b0b456e1ab3deab6b717 (patch)
tree721f2ae991fbfed01fef251b3c9cf17cafbc1e39 /misc/amanda32-server
parenta01e8d6610b3327dafa67f2f6511270ef827e694 (diff)
downloadFreeBSD-ports-21ac77b4cee19e50ad37b0b456e1ab3deab6b717.zip
FreeBSD-ports-21ac77b4cee19e50ad37b0b456e1ab3deab6b717.tar.gz
Add two more build options to limit the ports used by the client and server.
PR: 47282 Submitted by: Douglas K. Rand <rand@meridian-enviro.com>
Diffstat (limited to 'misc/amanda32-server')
-rw-r--r--misc/amanda32-server/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/misc/amanda32-server/Makefile b/misc/amanda32-server/Makefile
index 4b50851..9286fc0 100644
--- a/misc/amanda32-server/Makefile
+++ b/misc/amanda32-server/Makefile
@@ -48,6 +48,14 @@ pre-fetch:
@${ECHO} " The default is operator"
@${ECHO} " AMANDA_GROUP=group to specify the default group"
@${ECHO} " The default is operator"
+ @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports"
+ @${ECHO} " between low and high when connecting from the server"
+ @${ECHO} " to the client for data, messages, and indexing."
+ @${ECHO} " The default is no restriction on TCP ports."
+ @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports"
+ @${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} ""
USE_PERL5= yes
@@ -116,6 +124,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP}
CONFIGURE_ARGS+= --with-group=operator
.endif
+.if defined (AMANDA_UDPPORTRANGE)
+CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE}
+.endif
+
+.if defined (AMANDA_PORTRANGE)
+CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE}
+.endif
+
#
# Before 4.0, pre-CAM scsiio.h existed
.if ${OSVERSION} < 400000
@@ -144,6 +160,14 @@ pre-fetch:
@${ECHO} " The default is operator"
@${ECHO} " AMANDA_GROUP=group to specify the default group"
@${ECHO} " The default is operator"
+ @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports"
+ @${ECHO} " between low and high when connecting from the server"
+ @${ECHO} " to the client for data, messages, and indexing."
+ @${ECHO} " The default is no restriction on TCP ports."
+ @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports"
+ @${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} ""
CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
@@ -192,6 +216,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP}
CONFIGURE_ARGS+= --with-group=operator
.endif
+.if defined (AMANDA_UDPPORTRANGE)
+CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE}
+.endif
+
+.if defined (AMANDA_PORTRANGE)
+CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE}
+.endif
+
.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud