From decke@bluelife.at  Wed Jan 27 22:52:02 2010
Return-Path: <decke@bluelife.at>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 47EC7106568F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 Jan 2010 22:52:02 +0000 (UTC)
	(envelope-from decke@bluelife.at)
Received: from mail.itac.at (mail.itac.at [91.205.172.9])
	by mx1.freebsd.org (Postfix) with ESMTP id C03C78FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 Jan 2010 22:52:01 +0000 (UTC)
Received: from [78.142.74.81] (helo=localhost)
	by mail.itac.at with esmtpa (Exim 4.63)
	(envelope-from <decke@bluelife.at>)
	id 1NaGjv-0006As-Td
	for FreeBSD-gnats-submit@freebsd.org; Wed, 27 Jan 2010 23:52:00 +0100
Message-Id: <20100127225240.2c387ffd@bluelife.at>
Date: Wed, 27 Jan 2010 22:52:40 +0100
From: Bernhard Froehlich <decke@bluelife.at>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [MAINTAINER] www/mythweb: add lighttpd support

>Number:         143301
>Category:       ports
>Synopsis:       [MAINTAINER] www/mythweb: add lighttpd support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 27 23:00:01 UTC 2010
>Closed-Date:    Sun Jan 31 00:49:37 UTC 2010
>Last-Modified:  Sun Jan 31 01:00:21 UTC 2010
>Originator:     Bernhard Froehlich
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD chii.bluelife.at 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri Jan  8 09:39:23 CET
>Description:
- Added Apache and Lighttpd options
- Lighttpd support added
- PORTREVISION bumped

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- mythweb-0.22_1.patch begins here ---
diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/mythweb.orig/Makefile /usr/ports/www/mythweb/Makefile
--- /usr/ports/www/mythweb.orig/Makefile	2010-01-04 16:06:59.000000000 +0100
+++ /usr/ports/www/mythweb/Makefile	2010-01-27 22:11:40.000000000 +0100
@@ -7,6 +7,7 @@
 
 PORTNAME=	mythweb
 PORTVERSION=	0.22
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://ftp.osuosl.org/pub/mythtv/ \
 		http://ftp.oregonstate.edu/pub/mythtv/
@@ -19,18 +20,33 @@
 
 NO_BUILD=	yes
 USE_BZIP2=	yes
-USE_APACHE=	2.2+
 USE_PHP=	spl session mysql pcre posix json
 SUB_FILES=	pkg-message
+REINPLACE_ARGS=	-i ""
+
+OPTIONS=	APACHE "Enable Apache Support" on \
+		LIGHTTPD "Enable Lighttpd Support" off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_APACHE)
+USE_APACHE=	2.2+
+.endif
+
+.if defined(WITH_LIGHTTPD)
+RUN_DEPENDS+=	lighttpd:${PORTSDIR}/www/lighttpd
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/var/www/html|${WWWDIR}|' \
 		${WRKSRC}/mythweb/mythweb.conf.apache
+	@${REINPLACE_CMD} -e 's|/usr/bin/php-cgi|${LOCALBASE}/bin/php-cgi|' \
+		${WRKSRC}/mythweb/mythweb.conf.lighttpd
 
 do-install:
 	${MKDIR} ${WWWDIR}
 	${MKDIR} ${WWWDIR}/data
-	(cd ${WRKSRC}/mythweb/ && ${COPYTREE_SHARE} "*" ${WWWDIR} "! -name *.bak")
+	(cd ${WRKSRC}/mythweb/ && ${COPYTREE_SHARE} "*" ${WWWDIR})
 
 	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
 	${CHMOD} -R 775 ${WWWDIR}/data
diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/mythweb.orig/files/pkg-message.in /usr/ports/www/mythweb/files/pkg-message.in
--- /usr/ports/www/mythweb.orig/files/pkg-message.in	2010-01-04 16:06:59.000000000 +0100
+++ /usr/ports/www/mythweb/files/pkg-message.in	2010-01-27 21:54:26.000000000 +0100
@@ -4,4 +4,8 @@
 
 You need to configure mythweb now according to the instructions in
 
-    %%WWWDIR%%/INSTALL
\ No newline at end of file
+    %%WWWDIR%%/INSTALL
+
+For lighttpd you should have a look at the MythTV Wiki
+
+    http://www.mythtv.org/wiki/MythWeb_on_Lighttpd
\ No newline at end of file
--- mythweb-0.22_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Wed Jan 27 23:09:04 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143301 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Jan 31 00:49:36 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143301 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/143301: commit references a PR
Date: Sun, 31 Jan 2010 00:52:30 +0000 (UTC)

 miwi        2010-01-31 00:49:50 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/mythweb          Makefile 
     www/mythweb/files    pkg-message.in 
   Log:
   - Added Apache and Lighttpd options
   - Lighttpd support added
   - PORTREVISION bumped
   
   PR:             143301
   Submitted by:   Bernhard Froehlich <decke@bluelife.at> (maintainer)
   
   Revision  Changes    Path
   1.2       +18 -2     ports/www/mythweb/Makefile
   1.2       +5 -1      ports/www/mythweb/files/pkg-message.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
