diff options
author | James E. Housley <jeh@FreeBSD.org> | 2003-02-12 17:49:27 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2003-02-12 17:49:27 +0000 |
commit | a0cb89f355265c54ed61cb674e2bc7b814385258 (patch) | |
tree | 92cadf8d972c93c307a787c1e75eca781cf48ef5 /misc/amanda25-server | |
parent | Fix the stupid manual merge error I did in the last commit. (diff) |
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>
Notes
Notes:
svn path=/head/; revision=75382
Diffstat (limited to 'misc/amanda25-server')
-rw-r--r-- | misc/amanda25-server/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/misc/amanda25-server/Makefile b/misc/amanda25-server/Makefile index 4b508511a65b..9286fc0b823f 100644 --- a/misc/amanda25-server/Makefile +++ b/misc/amanda25-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> |