summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2003-10-16 16:59:19 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2003-10-16 16:59:19 +0000
commit6c910b584456271eece85614eaec922b933242a1 (patch)
treea6473d657dd5ec86ada8c2d3c65d818a91801c23 /www
parentUpdate to version 4.69. (diff)
Import mod_traf_thief 0.01.
This simple module allows you to redirect a percentage of the traffic to your URL. PR: 57664 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_traf_thief/Makefile35
-rw-r--r--www/mod_traf_thief/distinfo1
-rw-r--r--www/mod_traf_thief/pkg-descr6
-rw-r--r--www/mod_traf_thief/pkg-plist4
5 files changed, 47 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 3d770bde00d8..7129ee175fd2 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -251,6 +251,7 @@
SUBDIR += mod_throttle
SUBDIR += mod_ticket
SUBDIR += mod_tidy
+ SUBDIR += mod_traf_thief
SUBDIR += mod_trigger
SUBDIR += mod_tsunami
SUBDIR += mod_v2h
diff --git a/www/mod_traf_thief/Makefile b/www/mod_traf_thief/Makefile
new file mode 100644
index 000000000000..6a06379e5db2
--- /dev/null
+++ b/www/mod_traf_thief/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: mod_traf_thief
+# Date created: Sun Oct 5
+# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_traf_thief
+PORTVERSION= 0.01
+CATEGORIES= www
+MASTER_SITES= http://sheepkiller.nerim.net/ports/${PORTNAME}/
+EXTRACT_SUFX= .c
+# Original location: http://web.god.net.ru/projects/mod_traf_thief/dist/
+DIST_SUBDIR= apache
+
+MAINTAINER= sheepkiller@cultdeadsheep.org
+COMMENT= Allows you to redirect part of the traffic to your url
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+NO_WRKSUBDIR= YES
+APXS?= ${LOCALBASE}/sbin/apxs
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c
+
+do-build:
+ @(cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c)
+
+do-install:
+ @(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la)
+
+.include <bsd.port.mk>
diff --git a/www/mod_traf_thief/distinfo b/www/mod_traf_thief/distinfo
new file mode 100644
index 000000000000..a5ddc8282552
--- /dev/null
+++ b/www/mod_traf_thief/distinfo
@@ -0,0 +1 @@
+MD5 (apache/mod_traf_thief-0.01.c) = 47ac968052595b933ee749890d0a23af
diff --git a/www/mod_traf_thief/pkg-descr b/www/mod_traf_thief/pkg-descr
new file mode 100644
index 000000000000..6781c1a5ef96
--- /dev/null
+++ b/www/mod_traf_thief/pkg-descr
@@ -0,0 +1,6 @@
+This simple module allows you to redirect a percentage of the traffic
+to your URL. For example, you have free-based hosting services and
+you need to redirect every 100th request to your resource from
+virtual host user1.free.com. mod_traf_thief allows you to do this.
+
+WWW: http://web.god.net.ru/projects/mod_traf_thief/
diff --git a/www/mod_traf_thief/pkg-plist b/www/mod_traf_thief/pkg-plist
new file mode 100644
index 000000000000..ceba9f2a665e
--- /dev/null
+++ b/www/mod_traf_thief/pkg-plist
@@ -0,0 +1,4 @@
+@comment $FreeBSD$
+libexec/apache2/mod_traf_thief.so
+@exec %D/sbin/apxs -e -A -n traf_thief %D/%F
+@unexec echo "===> If you do not plan on reinstalling mod_traf_thief, you must manually remove"; echo "===> references to it in httpd.conf."