ports/57664: [new port] www/mod_traf_thief: Allows you to redirect percent of traffic to your url
Clement Laforet
sheepkiller at cultdeadsheep.org
Mon Oct 6 18:00:36 UTC 2003
>Number: 57664
>Category: ports
>Synopsis: [new port] www/mod_traf_thief: Allows you to redirect percent of traffic to your url
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 06 11:00:25 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Clement Laforet
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
cotds.org
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Sep 22 08:20:10 CEST 2003 clement at lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386
>Description:
This simple module allows you to redirect percent of traffic to your url.
For example you have free-based hosting services and you need to redirect each
100 request to your resource
From virtual host user1.free.com.
mod_traf_thief allow you to do this.
WWW: http://web.god.net.ru/projects/mod_traf_thief/
>How-To-Repeat:
N/A.
>Fix:
--- mod_traf_thief.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mod_traf_thief
# mod_traf_thief/pkg-descr
# mod_traf_thief/Makefile
# mod_traf_thief/pkg-plist
# mod_traf_thief/distinfo
#
echo c - mod_traf_thief
mkdir -p mod_traf_thief > /dev/null 2>&1
echo x - mod_traf_thief/pkg-descr
sed 's/^X//' >mod_traf_thief/pkg-descr << 'END-of-mod_traf_thief/pkg-descr'
XThis simple module allows you to redirect percent of traffic to your url.
XFor example you have free-based hosting services and you need to redirect each
X100 request to your resource
XFrom virtual host user1.free.com.
Xmod_traf_thief allow you to do this.
X
XWWW: http://web.god.net.ru/projects/mod_traf_thief/
END-of-mod_traf_thief/pkg-descr
echo x - mod_traf_thief/Makefile
sed 's/^X//' >mod_traf_thief/Makefile << 'END-of-mod_traf_thief/Makefile'
X# New ports collection makefile for: mod_traf_thief
X# Date created: Sun Oct 5
X# Whom: Clement Laforet <sheepkiller at cultdeadsheep.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mod_traf_thief
XPORTVERSION= 0.01
XCATEGORIES= www
XMASTER_SITES= http://sheepkiller.nerim.net/ports/${PORTNAME}/
XEXTRACT_SUFX= .c
X# Original location: http://web.god.net.ru/projects/mod_traf_thief/dist/
X
XMAINTAINER= sheepkiller at cultdeadsheep.org
XCOMMENT= Allows you to redirect percent of traffic to your url
X
XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XNO_WRKSUBDIR= YES
XAPXS?= ${LOCALBASE}/sbin/apxs
X
Xdo-extract:
X @${MKDIR} ${WRKDIR}
X @${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c
X
Xdo-build:
X @(cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c)
X
Xdo-install:
X @(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la)
X
X.include <bsd.port.mk>
END-of-mod_traf_thief/Makefile
echo x - mod_traf_thief/pkg-plist
sed 's/^X//' >mod_traf_thief/pkg-plist << 'END-of-mod_traf_thief/pkg-plist'
Xlibexec/apache2/mod_traf_thief.so
X at exec %D/sbin/apxs -e -A -n traf_thief %D/%F
X at unexec echo "===> If you do not plan on reinstalling mod_traf_thief, you must manually remove"; echo "===> references to it in httpd.conf."
END-of-mod_traf_thief/pkg-plist
echo x - mod_traf_thief/distinfo
sed 's/^X//' >mod_traf_thief/distinfo << 'END-of-mod_traf_thief/distinfo'
XMD5 (mod_traf_thief-0.01.c) = ba975a4fb52342cce806dc489d4b82e3
END-of-mod_traf_thief/distinfo
exit
--- mod_traf_thief.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list