Date: Sat, 6 Jul 2002 00:31:37 -0400 (EDT) From: Josh Elsasser <jre@vineyard.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/40256: www/cgiwrap: add option for access control files Message-ID: <20020706043137.7FC1D1477FF@joshe.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 40256 >Category: ports >Synopsis: www/cgiwrap: add option for access control files >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: Fri Jul 05 21:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Josh Elsasser >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: >Environment: System: FreeBSD jade.nat.elsasser.org 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #1: Sat May 4 18:42:54 EDT 2002 joshe@jade.nat.elsasser.org:/sd1/usr/obj/usr/src/sys/JADE i386 >Description: The allow and deny access files are not enabled by the port. This patch optionally adds allow or deny functionality. >How-To-Repeat: >Fix: --- Makefile.orig Tue Nov 20 16:40:54 2001 +++ Makefile Fri Jul 5 18:57:40 2002 @@ -40,11 +40,30 @@ MAINCGIDIR?= ${PREFIX}/www/cgi-bin HTTPDUSER?= www +### +# Define ACCESSALLOW or ACCESSDENY to enable access control via the +# allow or deny files +### +ALLOWFILE?= ${PREFIX}/etc/${PORTNAME}.allow +DENYFILE?= ${PREFIX}/etc/${PORTNAME}.deny +.if defined(ACCESSALLOW) +CONFIGURE_ARGS+= --with-allow-file=${ALLOWFILE} +.endif +.if defined(ACCESSDENY) +CONFIGURE_ARGS+= --with-deny-file=${DENYFILE} +.endif + pre-install: @${MKDIR} ${MAINCGIDIR} post-install: strip ${MAINCGIDIR}/cgiwrap +.if defined(ACCESSALLOW) + ${TOUCH} ${ALLOWFILE} +.endif +.if defined(ACCESSDENY) + ${TOUCH} ${DENYFILE} +.endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in accesscontrol.html afs.html changes.html comments.html \ >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?20020706043137.7FC1D1477FF>