ports/86834: [PATCH]: Add DRUPDIR to www/drupal

Wesley Shields wxs at csh.rit.edu
Sun Oct 2 15:30:21 UTC 2005


>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 at 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 at 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://<your_website>/drupal"
 	@${ECHO_MSG} ""
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list