ports/143301: [MAINTAINER] www/mythweb: add lighttpd support
Bernhard Froehlich
decke at bluelife.at
Wed Jan 27 23:00:02 UTC 2010
>Number: 143301
>Category: ports
>Synopsis: [MAINTAINER] www/mythweb: add lighttpd support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 27 23:00:01 UTC 2010
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list