# New ports collection makefile for: mythweb # Date created: 2009-12-27 # Whom: Bernhard Froehlich # # $FreeBSD$ # PORTNAME= mythweb PORTVERSION= 0.22 PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://ftp.osuosl.org/pub/mythtv/ \ http://ftp.oregonstate.edu/pub/mythtv/ DISTNAME= mythplugins-${PORTVERSION} MAINTAINER= decke@bluelife.at COMMENT= A frontend for scheduling and managing recordings on your MythTV Box RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql NO_BUILD= yes USE_BZIP2= yes 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 .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}) ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHMOD} -R 775 ${WWWDIR}/data post-install: @${CAT} ${PKGMESSAGE} .include