From owner-freebsd-ports Fri Jul 5 21:40:11 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA5F037B401 for ; Fri, 5 Jul 2002 21:40:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C73943E4A for ; Fri, 5 Jul 2002 21:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g664e2JU077092 for ; Fri, 5 Jul 2002 21:40:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g664e2Eh077091; Fri, 5 Jul 2002 21:40:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EC9037B400 for ; Fri, 5 Jul 2002 21:31:39 -0700 (PDT) Received: from joshe.dyndns.org (adsl-141-154-84-32.ba-dsg.net [141.154.84.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAA8243E31 for ; Fri, 5 Jul 2002 21:31:38 -0700 (PDT) (envelope-from joshe@joshe.dyndns.org) Received: by joshe.dyndns.org (Postfix, from userid 1000) id 7FC1D1477FF; Sat, 6 Jul 2002 00:31:37 -0400 (EDT) Message-Id: <20020706043137.7FC1D1477FF@joshe.dyndns.org> Date: Sat, 6 Jul 2002 00:31:37 -0400 (EDT) From: Josh Elsasser To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/40256: www/cgiwrap: add option for access control files Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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