1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Add web-traceroute, a traceroute cgi for your website implemented in C.

PR:		ports/58553
Submitted by:	Dean Hollister <dean@odyssey.apana.org.au>
This commit is contained in:
Pav Lucistnik 2003-12-30 14:53:14 +00:00
parent 87bbdf6d7f
commit 731d070a4d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96951
6 changed files with 83 additions and 0 deletions

View File

@ -550,6 +550,7 @@
SUBDIR += waccess
SUBDIR += wb0
SUBDIR += wcol
SUBDIR += web-traceroute
SUBDIR += web2ldap
SUBDIR += web500gw
SUBDIR += webalizer

View File

@ -0,0 +1,24 @@
# New ports collection makefile for: www/web-traceroute
# Date created: Sun Oct 26 12:00:00 WST 2003
# Whom: Dean Hollister <dean@odyssey.apana.org.au>
#
# $FreeBSD$
#
PORTNAME= web-traceroute
PORTVERSION= 3.0
CATEGORIES= www
MASTER_SITES= http://www.carpe.net/src/ \
http://www.wa.apana.org.au/~dean/sources/ \
ftp://ftp.wa.apana.org.au/pub/pc/unix/packages/
DISTNAME= ${PORTNAME}
MAINTAINER= dean@odyssey.apana.org.au
COMMENT= WWW Traceroute CGI script written in C
USE_APACHE= yes
#pre-configure:
# ${SH} ${SCRIPTDIR}/locate-template.sh
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (web-traceroute.tar.gz) = 4665d0424dfb93fcb1ccfbcd76fc8377

View File

@ -0,0 +1,32 @@
--- Makefile.old Sun Oct 26 12:10:35 2003
+++ Makefile Sun Oct 26 12:13:14 2003
@@ -4,24 +4,26 @@
# BINDEST should be the directory/filename where the cgi program needs
# to be installed. This must be configured with your web server.
-BINDEST = /ns/cgi-bin/trace
+BINDEST = $(PREFIX)/www/cgi-bin/trace
# CC and CCFLAGS should be set appropriately for your system
# or uncomment the one you need.
#
# HP-UX
CC = cc
-CCFLAGS = -Aa +DA1.1 -D_HPUX_SOURCE
+#CCFLAGS = -Aa +DA1.1 -D_HPUX_SOURCE
#
# BSDI's BSD/OS (probably ok for any recent version of gcc)
# CC=gcc
-# CCFLAGS = -O2
+CCFLAGS = $(CFLAGS)
DEFINES = -DLEAVE_DOMAIN_NAME
# normally traceroute must be setuid root
BINOWN = root
BINMODE = 4555
+
+all: html.h $(PROG)
$(PROG): $(PROG).c html.h
$(CC) $(CCFLAGS) $(DEFINES) -o $(PROG) $(PROG).c

View File

@ -0,0 +1,24 @@
This is a modified BSD traceroute command which outputs customized HTML
and can be used as a cgi program directly.
The advantage of using a compiled C program directly instead of a shell,
tcl or perl scipt:
More Secure (tastes better) - There is no possibility that strange
characters or environment passed to the CGI program can be used to break
into the server, etc.
Less Overhead (less filling) - The whole CGI program runs as one very
small process instead of multiple script processes and/or a large perl
program which must be interpreted each time it is run.
You can customise the HTML presented, by creating the template file
"template.html", and entering it's full path when prompted. Insert the
text "TRACEROUTE-OUTPUT" into your template file at the point where you
require the traceroute results displayed. This makes web-traceroute
integrate seamlessly with existing website layouts.
WWW: http://www.carpe.net/src/index.html
- Dean
dean@odyssey.apana.org.au

View File

@ -0,0 +1 @@
www/cgi-bin/trace