From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 7 04:20:19 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B1891065801 for ; Sun, 7 Oct 2012 04:20:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 38B4D8FC14 for ; Sun, 7 Oct 2012 04:20:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q974KGk8064119 for ; Sun, 7 Oct 2012 04:20:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q974KGCx064118; Sun, 7 Oct 2012 04:20:16 GMT (envelope-from gnats) Resent-Date: Sun, 7 Oct 2012 04:20:16 GMT Resent-Message-Id: <201210070420.q974KGCx064118@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Gmelin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13A0F106566C for ; Sun, 7 Oct 2012 04:15:31 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 388328FC0C for ; Sun, 7 Oct 2012 04:15:29 +0000 (UTC) Received: (qmail 60470 invoked by uid 0); 7 Oct 2012 04:15:23 -0000 Message-Id: <20121007041523.60469.qmail@mail.grem.de> Date: 7 Oct 2012 04:15:23 -0000 From: Michael Gmelin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/172423: [PATCH] www/cgiwrap: Converting port to new options framework X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2012 04:20:19 -0000 >Number: 172423 >Category: ports >Synopsis: [PATCH] www/cgiwrap: Converting port to new options framework >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 07 04:20:15 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Michael Gmelin >Release: FreeBSD 9.0-RELEASE amd64 >Organization: Grem Equity GmbH >Environment: System: FreeBSD bsd64.grem.de 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC >Description: The patch below converts the port to use the new options framework[1] and converts the Makefile header to the new format[2]. The patch is to be applied using: patch -p0 -E How-To-Repeat: >Fix: --- cgiwrap-4.1.patch begins here --- diff -ruN --exclude=CVS ../cgiwrap.orig/Makefile ./Makefile --- ../cgiwrap.orig/Makefile 2009-01-13 04:23:17.000000000 +0100 +++ ./Makefile 2012-10-07 06:01:01.395371894 +0200 @@ -1,31 +1,36 @@ -# New ports collection makefile for: cgiwrap -# Date created: 30 July 1998 -# Whom: Brent J. Nordquist -# -# $FreeBSD: ports/www/cgiwrap/Makefile,v 1.30 2009/01/13 03:23:17 wxs Exp $ -# - -PORTNAME= cgiwrap -PORTVERSION= 4.1 -CATEGORIES= www security -MASTER_SITES= SF - -MAINTAINER= ports@FreeBSD.org -COMMENT= Securely execute Web CGI scripts - -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -PKGMESSAGE= ${WRKDIR}/pkg-message - -OPTIONS= CGI_OWNER "Check CGI file owner" on \ - CGI_GROUP "Check CGI file group" on \ - CGI_SETUID "Check CGI file setuid permissions" on \ - CGI_SETGID "Check CGI file setgid permissions" on \ - CGI_GROUP_WRITABLE "Check CGI g+w file permissions" on \ - CGI_WORLD_WRITABLE "Check CGI o+w file permissions" on \ - USE_REDIRECT_URL "Use REDIRECT_URL to build SCRIPT_NAME" off \ - USE_SCRIPT_URL "Use SCRIPT_URL to build SCRIPT_NAME" off \ - NPH "Enable nph binaries" off \ - DEBUG "Enable cgiwrapd binaries" off +# Created by: Brent J. Nordquist +# $FreeBSD: $ + +PORTNAME= cgiwrap +PORTVERSION= 4.1 +CATEGORIES= www security +MASTER_SITES= SF + +MAINTAINER= ports@FreeBSD.org +COMMENT= Securely execute Web CGI scripts + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +PKGMESSAGE= ${WRKDIR}/pkg-message + +OPTIONS_DEFINE= CGI_OWNER CGI_GROUP CGI_SETUID CGI_SETGID \ + CGI_GROUP_WRITABLE CGI_WORLD_WRITABLE DEBUG \ + DOCS NPH USE_REDIRECT_URL USE_SCRIPT_URL +OPTIONS_DEFAULT= CGI_OWNER CGI_GROUP CGI_SETUID CGI_SETGID \ + CGI_GROUP_WRITABLE CGI_WORLD_WRITABLE + +CGI_OWNER_DESC= Check CGI file owner +CGI_GROUP_DESC= Check CGI file group +CGI_SETUID_DESC= Check CGI file setuid permissions +CGI_SETGID_DESC= Check CGI file setgid permissions +CGI_GROUP_WRITABLE_DESC=Check CGI g+w file permissions +CGI_WORLD_WRITABLE_DESC=Check CGI o+w file permissions +USE_REDIRECT_URL_DESC= Use REDIRECT_URL to build SCRIPT_NAME +USE_SCRIPT_URL_DESC= Use SCRIPT_URL to build SCRIPT_NAME +NPH_DESC= Enable nph binaries +DEBUG_DESC= Enable cgiwrapd binaries +# Note: DEBUG_DESC has been overridden intentionally, since its meaning +# is slightly different from what a user would usually expect +# (but still close neough) ## # INSTALL_DIR @@ -65,7 +70,7 @@ --with-check-shell \ --with-wall -.include +.include ## # LOG_FILE @@ -78,46 +83,46 @@ .else CONFIGURE_ARGS+= --without-logging-file .endif -.if !defined(WITH_CGI_OWNER) +.if !${PORT_OPTIONS:MCGI_OWNER} CONFIGURE_ARGS+= --without-check-owner .endif -.if !defined(WITH_CGI_GROUP) +.if !${PORT_OPTIONS:MCGI_GROUP} CONFIGURE_ARGS+= --without-check-group .endif -.if !defined(WITH_CGI_SETUID) +.if !${PORT_OPTIONS:MCGI_SETUID} CONFIGURE_ARGS+= --without-check-setuid .endif -.if !defined(WITH_CGI_SETGID) +.if !${PORT_OPTIONS:MCGI_SETGID} CONFIGURE_ARGS+= --without-check-setgid .endif -.if !defined(WITH_CGI_GROUP_WRITABLE) +.if !${PORT_OPTIONS:MCGI_GROUP_WRITABLE} CONFIGURE_ARGS+= --without-check-group-writable .endif -.if !defined(WITH_CGI_WORLD_WRITABLE) +.if !${PORT_OPTIONS:MCGI_WORLD_WRITABLE} CONFIGURE_ARGS+= --without-check-world-writable .endif -.if defined(WITH_USE_REDIRECT_URL) +.if ${PORT_OPTIONS:MUSE_REDIRECT_URL} CONFIGURE_ARGS+= --with-use-redirect-url .endif -.if defined(WITH_USE_SCRIPT_URL) +.if ${PORT_OPTIONS:MUSE_SCRIPT_URL} CONFIGURE_ARGS+= --with-use-script-url .endif -.if !defined(WITH_NPH) +.if !${PORT_OPTIONS:MNPH} PLIST_SUB+= NPHFLAG="@comment " CONFIGURE_ARGS+= --without-nph .else PLIST_SUB+= NPHFLAG= .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} PLIST_SUB+= DEBUGFLAG= CONFIGURE_ARGS+= --with-cgiwrapd .else PLIST_SUB+= DEBUGFLAG="@comment " .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= accesscontrol.html afs.html changes.html \ chroot.html comments.html download.html faq.html \ index.html install.html intro.html maillist.html \ @@ -131,15 +136,15 @@ post-install: @${STRIP_CMD} ${INSTALL_DIR}/cgiwrap @${CHMOD} 4550 ${INSTALL_DIR}/cgiwrap -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} @${STRIP_CMD} ${INSTALL_DIR}/cgiwrapd @${CHMOD} 4550 ${INSTALL_DIR}/cgiwrapd -.if defined(WITH_NPH) +.if ${PORT_OPTIONS:MNPH} @${STRIP_CMD} ${INSTALL_DIR}/nph-cgiwrapd @${CHMOD} 4550 ${INSTALL_DIR}/nph-cgiwrapd .endif .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for f in ${PORTDOCS} @${INSTALL_DATA} ${WRKSRC}/htdocs/${f} ${DOCSDIR} @@ -151,4 +156,4 @@ ${MASTERDIR}/pkg-message > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} -.include +.include --- cgiwrap-4.1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: