aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2004-01-06 09:38:23 +0000
committerClement Laforet <clement@FreeBSD.org>2004-01-06 09:38:23 +0000
commit691859da72f35cfaefe9d30cfa3de8ab4d07c56a (patch)
treedb34a2bfe875a3b63ab55512cda71c5410fc1ebc /www
parentc0c2a305c1ac32ee665dfaa020066afdc9dbfb7e (diff)
downloadports-691859da72f35cfaefe9d30cfa3de8ab4d07c56a.tar.gz
ports-691859da72f35cfaefe9d30cfa3de8ab4d07c56a.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_vdbh/Makefile42
-rw-r--r--www/mod_vdbh/distinfo1
-rw-r--r--www/mod_vdbh/files/patch-mod_vdbh.c12
-rw-r--r--www/mod_vdbh/pkg-descr6
-rw-r--r--www/mod_vdbh/pkg-plist4
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."