diff options
author | clement <clement@FreeBSD.org> | 2004-01-06 17:38:23 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2004-01-06 17:38:23 +0800 |
commit | 849f4f174e100f7a5a24ebe3b3cf8cdbc8d568f1 (patch) | |
tree | 02f0fc79fcf8a2492941f0582242037cfcf05752 | |
parent | 83611822f6988928eb64525b3d2de25d9737d3d2 (diff) | |
download | freebsd-ports-gnome-849f4f174e100f7a5a24ebe3b3cf8cdbc8d568f1.tar.gz freebsd-ports-gnome-849f4f174e100f7a5a24ebe3b3cf8cdbc8d568f1.tar.zst freebsd-ports-gnome-849f4f174e100f7a5a24ebe3b3cf8cdbc8d568f1.zip |
Add mod_vdbh 1.0.3, allows mass virtual hosting using
a MySQL backend with Apache 2.0.x.
PR: 58251
Approved by: erwin (mentor) (implicitly)
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/mod_vdbh/Makefile | 42 | ||||
-rw-r--r-- | www/mod_vdbh/distinfo | 1 | ||||
-rw-r--r-- | www/mod_vdbh/files/patch-mod_vdbh.c | 12 | ||||
-rw-r--r-- | www/mod_vdbh/pkg-descr | 6 | ||||
-rw-r--r-- | www/mod_vdbh/pkg-plist | 4 |
6 files changed, 66 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 1f5e4ea370a6..f49767fda467 100644 --- a/www/Makefile +++ b/www/Makefile @@ -268,6 +268,7 @@ SUBDIR += mod_tsunami SUBDIR += mod_uid SUBDIR += mod_v2h + SUBDIR += mod_vdbh SUBDIR += mod_watch SUBDIR += mod_webapp SUBDIR += mod_zap diff --git a/www/mod_vdbh/Makefile b/www/mod_vdbh/Makefile new file mode 100644 index 000000000000..9499be890d10 --- /dev/null +++ b/www/mod_vdbh/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: mod_vdbh +# Date created: Sun Oct 19 +# Whom: Clement Laforet <clement@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mod_vdbh +PORTVERSION= 1.0.3 +CATEGORIES= www +MASTER_SITES= http://www.synthemesc.com/downloads/mod_vdbh/ +DIST_SUBDIR= apache + +MAINTAINER= clement@FreeBSD.org +COMMENT= Allows mass virtual hosting using a MySQL backend with Apache 2.0.x + +USE_APACHE= YES +WITH_APACHE2= YES + +USE_MYSQL= YES + +WRKSRC= ${WRKDIR}/${PORTNAME} +APXS?= ${LOCALBASE}/sbin/apxs +MYSQL_INC?= ${LOCALBASE}/include/mysql +MYSQL_LIB?= ${LOCALBASE}/lib/mysql -lmysqlclient + +PORTDOCS= AUTHORS README TODO + +do-build: + @(cd ${WRKSRC} && ${APXS} -I ${MYSQL_INC} -L ${MYSQL_LIB} -c ${PORTNAME}.c) + +do-install: + @(cd ${WRKSRC} && ${APXS} -i -A -n ${PORTNAME:S/mod_//} ${PORTNAME}.la) + +.if !defined (NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +. for f in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +. endfor +.endif + +.include <bsd.port.mk> diff --git a/www/mod_vdbh/distinfo b/www/mod_vdbh/distinfo new file mode 100644 index 000000000000..f802c01ce1c6 --- /dev/null +++ b/www/mod_vdbh/distinfo @@ -0,0 +1 @@ +MD5 (apache/mod_vdbh-1.0.3.tar.gz) = 3bd571f4d35f6b7b9f11b6eacab3947c diff --git a/www/mod_vdbh/files/patch-mod_vdbh.c b/www/mod_vdbh/files/patch-mod_vdbh.c new file mode 100644 index 000000000000..5d12c6c7eef1 --- /dev/null +++ b/www/mod_vdbh/files/patch-mod_vdbh.c @@ -0,0 +1,12 @@ +--- mod_vdbh.c.orig Sun Oct 19 16:25:25 2003 ++++ mod_vdbh.c Sun Oct 19 16:25:35 2003 +@@ -77,9 +77,7 @@ + + #include "ap_config_auto.h" + +-#ifdef HAVE_STDDEF_H + #include <stddef.h> +-#endif + + #include <stdlib.h> + #include <stdio.h> diff --git a/www/mod_vdbh/pkg-descr b/www/mod_vdbh/pkg-descr new file mode 100644 index 000000000000..30f89a75ce69 --- /dev/null +++ b/www/mod_vdbh/pkg-descr @@ -0,0 +1,6 @@ +mod_vdbh is an Apache Web Server module allowing mass virtual hosting without +the need for file based configuration. The virtual host paths are translated +from a MySQL database at request time, thus the configuration can be changed +without having to restart Apache Web Server. + +WWW: http://www.synthemesc.com/mod_vdbh/ diff --git a/www/mod_vdbh/pkg-plist b/www/mod_vdbh/pkg-plist new file mode 100644 index 000000000000..d9fb067382bc --- /dev/null +++ b/www/mod_vdbh/pkg-plist @@ -0,0 +1,4 @@ +libexec/apache2/mod_vdbh.so +@exec %D/sbin/apxs -e -A -n vdbh %D/%f +@unexec %D/sbin/apxs -e -A -n vdbh %D/%f +@unexec echo "===> If you do not plan on reinstalling mod_vdbh, you must manually remove"; echo "===> references to it in httpd.conf." |