Date: Mon, 14 Oct 2002 12:17:10 +1000 (EST) From: Phil Homewood <pdh@snapgear.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44032: [PATCH] amanda port enhancement: allow site-specific user/group Message-ID: <200210140217.g9E2HAgd019917@dorfl.internal.moreton.com.au>
next in thread | raw e-mail | index | archive | help
>Number: 44032 >Category: ports >Synopsis: [PATCH] amanda port enhancement: allow site-specific user/group >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 13 21:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Phil Homewood >Release: >Organization: SnapGear Pty Ltd >Environment: >Description: The misc/amanda-{client,server} ports force user/group to operator. This should be site-overridable. >How-To-Repeat: >Fix: --- misc/amanda-server/Makefile.orig Tue Sep 17 21:45:59 2002 +++ misc/amanda-server/Makefile Mon Oct 14 12:10:00 2002 @@ -41,8 +41,12 @@ @${ECHO} " The default is `uname -n`" @${ECHO} " AMANDA_TAPE=tape to specify the default tape device" @${ECHO} " The default is /dev/nrsa0" - @${ECHO} " AMANDA_CONFIG=config to specify the default configuation" + @${ECHO} " AMANDA_CONFIG=config to specify the default configuration" @${ECHO} " The default is user" + @${ECHO} " AMANDA_USER=user to specify the default user" + @${ECHO} " The default is operator" + @${ECHO} " AMANDA_GROUP=group to specify the default group" + @${ECHO} " The default is operator" @${ECHO} "" RUN_DEPENDS= ${LOCALBASE}/sbin/amrecover:${PORTSDIR}/misc/amanda-client @@ -51,7 +55,6 @@ CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ --with-amandahosts --with-fqdn \ --with-dump-honor-nodump --with-buffered-dump \ - --with-user=operator --with-group=operator \ --without-client --disable-libtool --prefix=${PREFIX} MAN8= amadmin.8 amcheck.8 amcheckdb.8 amcleanup.8 amdd.8 \ @@ -98,6 +101,18 @@ CONFIGURE_ARGS+= --with-config=${AMANDA_CONFIG} .endif +.if defined (AMANDA_USER) +CONFIGURE_ARGS+= --with-user=${AMANDA_USER} +.else +CONFIGURE_ARGS+= --with-user=operator +.endif + +.if defined (AMANDA_GROUP) +CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} +.else +CONFIGURE_ARGS+= --with-group=operator +.endif + # # Before 4.0, pre-CAM scsiio.h existed .if ${OSVERSION} < 400000 @@ -122,12 +137,15 @@ @${ECHO} " AMANDA_GNUTAR_LISTDIR=dir to specify the directory that" @${ECHO} " the gnutar index files should live in" @${ECHO} " The default is /var/amanda/gnutar-lists" + @${ECHO} " AMANDA_USER=user to specify the default user" + @${ECHO} " The default is operator" + @${ECHO} " AMANDA_GROUP=group to specify the default group" + @${ECHO} " The default is operator" @${ECHO} "" CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ --with-amandahosts --with-fqdn \ --with-dump-honor-nodump --with-buffered-dump \ - --with-user=operator --with-group=operator \ --without-server --disable-libtool --prefix=${PREFIX} MAN8= amanda.8 amrecover.8 amrestore.8 @@ -157,6 +175,18 @@ .if defined (AMANDA_GNUTAR_LISTDIR) CONFIGURE_ARGS+= --with-gnutar-listdir=${AMANDA_GNUTAR_LISTDIR} +.endif + +.if defined (AMANDA_USER) +CONFIGURE_ARGS+= --with-user=${AMANDA_USER} +.else +CONFIGURE_ARGS+= --with-user=operator +.endif + +.if defined (AMANDA_GROUP) +CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} +.else +CONFIGURE_ARGS+= --with-group=operator .endif .endif >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210140217.g9E2HAgd019917>