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>
This commit is contained in:
Christian Weisgerber 2003-10-16 16:59:19 +00:00
parent eca01a135b
commit 6c910b5844
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91438
5 changed files with 47 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (apache/mod_traf_thief-0.01.c) = 47ac968052595b933ee749890d0a23af

View File

@ -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/

View File

@ -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."