ports/145810: [patch] port devel/bugzilla post-patch correction

olli hauer ohauer at gmx.de
Sun Apr 18 19:00:10 UTC 2010


>Number:         145810
>Category:       ports
>Synopsis:       [patch] port devel/bugzilla post-patch correction
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 18 19:00:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     olli hauer <ohauer at gmx.de>
>Release:        
>Organization:
>Environment:


>Description:
Since bugzilla 3.x the webserver group and the default database are 
defined in 'Bugzilla/Install/Localconfig.pm'.

The follwing patch correct this, additional if Pg is the default and
mysql is not selected as OPTIONS the default DB will be changed to Pg.


>How-To-Repeat:
>Fix:
--- patch_bugzilla.txt begins here ---
--- Makefile	2010/04/18 18:39:18	1.1
+++ Makefile	2010/04/18 18:41:55
@@ -163,8 +163,14 @@
 .endif
 
 post-patch:
-	@${PERL} -pi -e "s!(?<=webservergroup_default = ')apache!www!" \
-		${WRKSRC}/checksetup.pl
+	@${PERL} -pi -e 's/(default => ON_WINDOWS.+)apache/$$1www/' \
+		${WRKSRC}/Bugzilla/Install/Localconfig.pm
+.if defined(WITH_PGSQL) && !defined(WITH_MYSQL)
+	@${PERL} -pi -e 's/(default =>.+)mysql/$$1Pg/' \
+		${WRKSRC}/Bugzilla/Install/Localconfig.pm
+	@${PERL} -pi -e 's/(Default is )mysql/$$1Pg/' \
+		${WRKSRC}/Bugzilla/Install/Localconfig.pm
+.endif
 	@${FIND} ${WRKSRC} \( -name "CVS" -or -name ".cvsignore" -or -name "*.orig" \
 		-or -name ".bzr*" -or -name "README.docs" \) | ${XARGS} ${RM} -rf
 	${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -i '' \
--- patch_bugzilla.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list