head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2012.11.17.06.02.41;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.07.08.19.53.24;	author ohauer;	state Exp;
branches;
next	1.1;

1.1
date	2012.04.06.13.31.48;	author ohauer;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Switch exporter over
@
text
@# New ports collection makefile for:	mod_myvhost
# Date created:				2012-03-26
# Whom:					Olli Hauer <ohauer@@FreeBSD.org>
#
# $FreeBSD: head/www/mod_myvhost/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	mod_myvhost
PORTVERSION=	0.21
CATEGORIES=	www
MASTER_SITES=	http://mod-myvhost.googlecode.com/files/
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}

MAINTAINER=	apache@@FreeBSD.org
COMMENT=	Apache module for dynamically configured mass virtual hosting with php

LICENSE=	AL2

MANUAL_PACKAGE_BUILD=	needs apr and apache with DBD options enabled

MAKE_JOBS_SAFE=	yes

USE_APACHE=	22+
UNIQUENAME=	${PORTNAME}

PORTDOCS=	changelog.html documentation.html download.html \
		index.html my.css
PORTEXAMPLES=	vhosts.sql httpd.conf.add

OPTIONS_DEFINE=		PHP_MODULE DEBUG_MODULE PHP DEBUG
OPTIONS_DEFAULT=	PHP_MODULE

PHP_MODULE_DESC=	Enable PHP
DEBUG_MODULE_DESC=	Enable debugging

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG_MODULE}
MAKE_ENV+=	WITH_DEBUG=true
STRIP=		# keep debug information
.endif

.if ${PORT_OPTIONS:MPHP_MODULE}
MAKE_ENV+=	WITH_PHP=true
USE_PHP=	yes
USE_PHP_MOD=	yes
.endif

.include <bsd.port.pre.mk>

pre-patch:
	@@${REINPLACE_CMD} -e "s|= apxs|= ${APXS}|" \
		-e "s|= rm|= ${RM}|" -e "s|= ln|= ${LN}|" \
		-e "s|= cp|= ${CP}|" ${WRKSRC}/Makefile

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@@${MKDIR} ${EXAMPLESDIR}
	@@cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>
@


1.2
log
@- convert to options NG
- add desc. for MP3
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.1
log
@- new Port mod-myvhost

mod_myvhost is Apache module for dynamically configured name based mass virtual
hosting with PHP, virtual host's configurations and PHP settings are stored in
database.

No need to have every vhost in apache's configuration file, no need to restart
apache after configuration changed (vhost added|deleted, vhost rootdir changed,
vhost unblocked/unblocked...).

After all, it is capable to change settings of PHP4/5 dynamically (if php is
loadable module or it is linked with apache) for any vhost. By default, it sets
open_basedir as vhost's rootdir to prevent user from stoling files from other
users and from your server, but you have ability to change almost any parameter
that exists in php.ini, for example, you can turn on safe_mode or
register_globals for particular vhost, if it has old php scripts that use global
variables.

WWW: http://code.google.com/p/mod-myvhost/

requested on FreeBSD-apache list by Igor Popov <ipopovi@@gmail.com> (Author)
http://lists.freebsd.org/pipermail/freebsd-apache/2012-March/002700.html

Feature safe:	yes
@
text
@d30 5
a34 2
OPTIONS=	PHP_MODULE	"Enable PHP"	on \
		DEBUG_MODULE	"Enable debigging"	off
d38 1
a38 1
.if defined(WITH_DEBUG_MODULE)
d43 1
a43 1
.if defined(WITH_PHP_MODULE)
d57 1
a57 1
.if !defined(NOPORTDOCS)
d61 1
a61 1
.if !defined(NOPORTEXAMPLES)
@

