2013-06-04 10:01:59 +00:00
|
|
|
# Created by: Xavier Beaudouin <kiwi@oav.net>
|
2004-07-30 00:27:20 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mod_vhs
|
2010-08-08 17:43:04 +00:00
|
|
|
PORTVERSION= 1.1.0
|
2004-07-30 00:27:20 +00:00
|
|
|
CATEGORIES= www
|
2009-11-28 13:55:39 +00:00
|
|
|
MASTER_SITES= ftp://ftp.oav.net/openvisp/${PORTNAME}/
|
2004-08-04 19:18:19 +00:00
|
|
|
DIST_SUBDIR= apache2
|
2004-07-30 00:27:20 +00:00
|
|
|
|
|
|
|
MAINTAINER= kiwi@oav.net
|
2010-08-08 17:43:04 +00:00
|
|
|
COMMENT= Mass virtual hosting using mod_ldap or mod_dbd with Apache 2.2.x
|
2004-07-30 00:27:20 +00:00
|
|
|
|
2014-03-09 13:55:20 +00:00
|
|
|
LICENSE= APACHE11
|
|
|
|
|
2010-08-08 17:43:04 +00:00
|
|
|
MANUAL_PACKAGE_BUILD= needs apr with LDAP and DBD options enabled
|
2004-07-30 00:27:20 +00:00
|
|
|
|
2011-08-20 17:27:52 +00:00
|
|
|
USE_APACHE= 22+
|
2005-04-13 15:20:03 +00:00
|
|
|
USE_PHP= yes
|
|
|
|
USE_PHP_BUILD= yes
|
|
|
|
WANT_PHP_MOD= yes
|
2009-04-22 00:18:46 +00:00
|
|
|
AP_FAST_BUILD= yes
|
|
|
|
AP_GENPLIST= yes
|
2010-08-08 17:43:04 +00:00
|
|
|
SRC_FILE= *.c
|
2005-10-30 22:27:38 +00:00
|
|
|
|
2009-04-22 00:18:46 +00:00
|
|
|
AP_INC+= ${LOCALBASE}/include/home \
|
|
|
|
-I ${LOCALBASE}/include/php \
|
|
|
|
-I ${LOCALBASE}/include/php/Zend \
|
|
|
|
-I ${LOCALBASE}/include/php/TSRM \
|
|
|
|
-I ${LOCALBASE}/include/php/main
|
|
|
|
AP_EXTRAS+= -DHAVE_MOD_PHP_SUPPORT
|
2004-07-30 00:27:20 +00:00
|
|
|
|
2014-03-09 13:55:20 +00:00
|
|
|
PORTDOCS= ChangeLog AUTHORS README README.logs README.mod_suphp \
|
2010-08-08 17:43:04 +00:00
|
|
|
README.phpopt THANKS WARNING WARNING.THREADS README.LDAP
|
|
|
|
|
2013-06-04 10:01:59 +00:00
|
|
|
OPTIONS_DEFINE= LDAP DBD ITK VDEBUG DOCS
|
|
|
|
OPTIONS_DEFAULT= LDAP
|
|
|
|
LDAP_DESC= mod_ldap support
|
|
|
|
DBD_DESC= mod_dbd support
|
|
|
|
ITK_DESC= mpm-itk support (needs a specific apache)
|
|
|
|
VDEBUG_DESC= debug version (very verbose !)
|
2010-08-08 17:43:04 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
### mod_vhs options
|
2013-06-04 10:01:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
|
|
.if ! ${PORT_OPTIONS:MDBD}
|
2010-08-08 17:43:04 +00:00
|
|
|
AP_EXTRAS+= -DHAVE_LDAP_SUPPORT
|
|
|
|
.else
|
|
|
|
.error You cannot use LDAP and DBD at the same time.
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 10:01:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MDBD}
|
|
|
|
.if ! ${PORT_OPTIONS:MLDAP}
|
2010-08-08 17:43:04 +00:00
|
|
|
AP_EXTRAS+= -DHAVE_MOD_DBD_SUPPORT
|
|
|
|
.else
|
|
|
|
.error You cannot use LDAP and DBD at the same time.
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 10:01:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MITK}
|
2010-08-08 17:43:04 +00:00
|
|
|
AP_EXTRAS+= -DHAVE_MPM_ITK_SUPPORT
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 10:01:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MVDEBUG}
|
2010-08-08 17:43:04 +00:00
|
|
|
AP_EXTRAS+= -DVH_DEBUG
|
|
|
|
.endif
|
2004-07-30 00:27:20 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-03-09 13:55:20 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2004-07-30 00:27:20 +00:00
|
|
|
|
2007-04-09 17:58:23 +00:00
|
|
|
# TODO :
|
|
|
|
# Add suphp support
|
|
|
|
|
2009-04-22 00:18:46 +00:00
|
|
|
.include <bsd.port.mk>
|