From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 2 15:30:20 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D573116A41F for ; Sun, 2 Oct 2005 15:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2B9143D49 for ; Sun, 2 Oct 2005 15:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j92FUJoj020684 for ; Sun, 2 Oct 2005 15:30:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j92FUJY5020683; Sun, 2 Oct 2005 15:30:19 GMT (envelope-from gnats) Resent-Date: Sun, 2 Oct 2005 15:30:19 GMT Resent-Message-Id: <200510021530.j92FUJY5020683@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, Wesley Shields Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1636F16A41F for ; Sun, 2 Oct 2005 15:22:47 +0000 (GMT) (envelope-from wxs@syn.csh.rit.edu) Received: from syn.csh.rit.edu (syn.csh.rit.edu [129.21.60.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA29D43D46 for ; Sun, 2 Oct 2005 15:22:46 +0000 (GMT) (envelope-from wxs@syn.csh.rit.edu) Received: from syn.csh.rit.edu (localhost [127.0.0.1]) by syn.csh.rit.edu (8.13.3/8.13.1) with ESMTP id j92GQOt1053607; Sun, 2 Oct 2005 11:26:24 -0500 (EST) (envelope-from wxs@syn.csh.rit.edu) Received: (from wxs@localhost) by syn.csh.rit.edu (8.13.3/8.13.1/Submit) id j92GQOUD053606; Sun, 2 Oct 2005 11:26:24 -0500 (EST) (envelope-from wxs) Message-Id: <200510021626.j92GQOUD053606@syn.csh.rit.edu> Date: Sun, 2 Oct 2005 11:26:24 -0500 (EST) From: Wesley Shields To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: esn@x123.info Subject: ports/86834: [PATCH]: Add DRUPDIR to www/drupal X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Wesley Shields List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2005 15:30:21 -0000 >Number: 86834 >Category: ports >Synopsis: [PATCH]: Add DRUPDIR to www/drupal >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 02 15:30:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Wesley Shields >Release: FreeBSD 5.4-RELEASE-p7 i386 >Organization: >Environment: System: FreeBSD syn 5.4-RELEASE-p7 FreeBSD 5.4-RELEASE-p7 #3: Wed Sep 7 12:05:17 EST 2005 root@syn:/usr/obj/usr/src/sys/GENERIC i386 >Description: Add a DRUPDIR knob to www/drupal. This is just like GALLERYDIR in www/gallery. I have CC'ed the maintainer on this. >How-To-Repeat: N/A >Fix: diff -ruN www/drupal.orig/Makefile www/drupal/Makefile --- www/drupal.orig/Makefile Fri Sep 16 09:03:50 2005 +++ www/drupal/Makefile Fri Sep 16 09:02:37 2005 @@ -20,8 +20,18 @@ RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB .endif +pre-fetch: +.if !defined(DRUPDIR) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define DRUPDIR to override default of 'www/data/drupal'." + @${ECHO_MSG} "" +.endif + +DRUPDIR?= www/data/drupal +WWWOWN?= www +WWWGRP?= www + NO_BUILD= yes -DRUPDIR= www/data/drupal DOCS= CHANGELOG.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt PLIST_SUB+= DRUPDIR=${DRUPDIR} @@ -64,7 +74,7 @@ @${ECHO_MSG} " GRANT ALL PRIVILEGES ON drupal.* TO nobody@localhost IDENTIFIED BY 'password';" @${ECHO_MSG} " mysql -u nobody -p drupal < ${PREFIX}/${DRUPDIR}/database/database.mysql" @${ECHO_MSG} "" - @${ECHO_MSG} " Then edit the ${PREFIX}/${DRUPDIR}/includes/conf.php to your needs." + @${ECHO_MSG} " Then edit the ${PREFIX}/${DRUPDIR}/sites/default/settings.php to your needs." @${ECHO_MSG} " Once you have done that" @${ECHO_MSG} " GoTo: http:///drupal" @${ECHO_MSG} "" >Release-Note: >Audit-Trail: >Unformatted: