summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2003-10-08 10:49:08 +0000
committerPeter Pentchev <roam@FreeBSD.org>2003-10-08 10:49:08 +0000
commit705676161efd4bd6db237bff1ff70a917d424bbd (patch)
tree7ad268f3e6cdbd7039ec16fb715ed9c3ba58bb08 /www
parentAdd musicpd 0.9.1, a remote-controllable music-daemon. (diff)
Add mod_injection 0.3.1 - an Apache module allowing the injection of
text after any given HTML tag or text string. PR: 57658 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Notes
Notes: svn path=/head/; revision=90613
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_injection/Makefile31
-rw-r--r--www/mod_injection/distinfo1
-rw-r--r--www/mod_injection/pkg-descr5
-rw-r--r--www/mod_injection/pkg-plist23
5 files changed, 61 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index bb1d16d87cee..e8b1fd273859 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -215,6 +215,7 @@
SUBDIR += mod_gzip
SUBDIR += mod_hosts_access
SUBDIR += mod_index_rss
+ SUBDIR += mod_injection
SUBDIR += mod_jk
SUBDIR += mod_jk2
SUBDIR += mod_layout
diff --git a/www/mod_injection/Makefile b/www/mod_injection/Makefile
new file mode 100644
index 000000000000..a68accf1be75
--- /dev/null
+++ b/www/mod_injection/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: mod_injection
+# Date created: Sun Oct 5
+# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_injection
+PORTVERSION= 0.3.1
+CATEGORIES= www
+MASTER_SITES= http://pmade.org/software/mod_injection/download/
+
+MAINTAINER= sheepkiller@cultdeadsheep.org
+COMMENT= Injects text in the HTTP response after a HTML tag
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+APXS?= ${LOCALBASE}/sbin/apxs
+
+do-build:
+ @(cd ${WRKSRC}/src && ${APXS} -c ${PORTNAME}.c)
+
+do-install:
+ @(cd ${WRKSRC}/src && ${APXS} -A -i ${PORTNAME}.la)
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -Rf ${WRKSRC}/docs/* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/mod_injection/distinfo b/www/mod_injection/distinfo
new file mode 100644
index 000000000000..7860666c1afc
--- /dev/null
+++ b/www/mod_injection/distinfo
@@ -0,0 +1 @@
+MD5 (mod_injection-0.3.1.tar.gz) = 0ba75046af2d6f230e3c37fe90275b94
diff --git a/www/mod_injection/pkg-descr b/www/mod_injection/pkg-descr
new file mode 100644
index 000000000000..57ab8973f095
--- /dev/null
+++ b/www/mod_injection/pkg-descr
@@ -0,0 +1,5 @@
+mod_injection is an Apache 2.0.X filter module. It allows you to inject text in
+the HTTP response after a HTML tag or after any given text string. The main
+intention of this module is to add a banner to several HTML pages on the fly.
+
+WWW: http://pmade.org/software/mod_injection/
diff --git a/www/mod_injection/pkg-plist b/www/mod_injection/pkg-plist
new file mode 100644
index 000000000000..1d5b4b863db4
--- /dev/null
+++ b/www/mod_injection/pkg-plist
@@ -0,0 +1,23 @@
+libexec/apache2/mod_injection.so
+@exec %D/sbin/apxs -e -a -n injection %D/%f
+%%PORTDOCS%%%%DOCSDIR%%/manual/Makefile
+%%PORTDOCS%%%%DOCSDIR%%/manual/build.xml
+%%PORTDOCS%%%%DOCSDIR%%/manual/changelog.xml
+%%PORTDOCS%%%%DOCSDIR%%/manual/config.xml
+%%PORTDOCS%%%%DOCSDIR%%/manual/credits.xml
+%%PORTDOCS%%%%DOCSDIR%%/manual/manual.xml
+%%PORTDOCS%%%%DOCSDIR%%/manual/readme.xml
+%%PORTDOCS%%%%DOCSDIR%%/manual/requirements.xml
+%%PORTDOCS%%%%DOCSDIR%%/VERSION
+%%PORTDOCS%%%%DOCSDIR%%/project/Makefile
+%%PORTDOCS%%%%DOCSDIR%%/project/download.xml
+%%PORTDOCS%%%%DOCSDIR%%/project/news.xml
+%%PORTDOCS%%%%DOCSDIR%%/project/project.xml
+%%PORTDOCS%%%%DOCSDIR%%/project/resources.xml
+%%PORTDOCS%%%%DOCSDIR%%/manual.txt
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/manual
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/project
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@unexec echo "===> If you do not plan on reinstalling mod_injection, you must manually remove"; echo "===> references to it in httpd.conf."
+