ports/58553: New Port: www/web-traceroute

Dean Hollister dean at odyssey.apana.org.au
Sun Oct 26 05:50:19 UTC 2003


>Number:         58553
>Category:       ports
>Synopsis:       New Port: www/web-traceroute
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 25 22:50:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dean Hollister
>Release:        FreeBSD 4.9-RC i386
>Organization:
Australian Public Access Network Association Inc
>Environment:
System: FreeBSD odyssey.apana.org.au 4.9-RC FreeBSD 4.9-RC #2: Sat Oct 4 18:47:01 WST 2003 root at odyssey.apana.org.au:/usr/obj/usr/src/sys/ODYSSEY i386
>Description:
New Port: www/web-traceroute, version 3.0
>How-To-Repeat:
>Fix:
# 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:
#
#	web-traceroute
#	web-traceroute/Makefile
#	web-traceroute/distfiles
#	web-traceroute/pkg-descr
#	web-traceroute/scripts
#	web-traceroute/scripts/locate-template.sh
#	web-traceroute/pkg-plist
#	web-traceroute/files
#	web-traceroute/files/patch-Makefile
#	web-traceroute/distinfo
#
echo c - web-traceroute
mkdir -p web-traceroute > /dev/null 2>&1
echo x - web-traceroute/Makefile
sed 's/^X//' >web-traceroute/Makefile << 'END-of-web-traceroute/Makefile'
X# New ports collection makefile for:	www/web-traceroute
X# Date created:		Sun Oct 26 12:00:00 WST 2003
X# Whom:			Dean Hollister <dean at odyssey.apana.org.au>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	web-traceroute
XPORTVERSION=	3.0
XCATEGORIES=	www
XMASTER_SITES=	http://www.carpe.net/src/ \
X		http://www.wa.apana.org.au/~dean/sources/ \
X		ftp://ftp.wa.apana.org.au/pub/pc/unix/packages/
XDISTNAME=	web-traceroute
X
XMAINTAINER=	dean at odyssey.apana.org.au
XCOMMENT=	WWW Traceroute CGI script written in C
X
XRUN_DEPENDS=	${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13
X
Xpre-configure:
X		sh ${SCRIPTDIR}/locate-template.sh
X
X.include <bsd.port.mk>
END-of-web-traceroute/Makefile
echo x - web-traceroute/distfiles
sed 's/^X//' >web-traceroute/distfiles << 'END-of-web-traceroute/distfiles'
XMD5 (web-traceroute.tar.gz) = 4665d0424dfb93fcb1ccfbcd76fc8377
END-of-web-traceroute/distfiles
echo x - web-traceroute/pkg-descr
sed 's/^X//' >web-traceroute/pkg-descr << 'END-of-web-traceroute/pkg-descr'
XThis is a modified BSD traceroute command which outputs customized HTML 
Xand can be used as a cgi program directly.
X
XThe advantage of using a compiled C program directly instead of a shell, 
Xtcl or perl scipt: 
X
XMore Secure (tastes better) - There is no possibility that strange 
Xcharacters or environment passed to the CGI program can be used to break 
Xinto the server, etc. 
X
XLess Overhead (less filling) - The whole CGI program runs as one very 
Xsmall process instead of multiple script processes and/or a large perl 
Xprogram which must be interpreted each time it is run. 
X
XYou can customise the HTML presented, by creating the template file 
X"template.html", and entering it's full path when prompted. Insert the 
Xtext "TRACEROUTE-OUTPUT" into your template file at the point where you 
Xrequire the traceroute results displayed. This makes web-traceroute 
Xintegrate seamlessly with existing website layouts.
X
XWWW: http://www.carpe.net/src/index.html
X
X- Dean
Xdean at odyssey.apana.org.au
END-of-web-traceroute/pkg-descr
echo c - web-traceroute/scripts
mkdir -p web-traceroute/scripts > /dev/null 2>&1
echo x - web-traceroute/scripts/locate-template.sh
sed 's/^X//' >web-traceroute/scripts/locate-template.sh << 'END-of-web-traceroute/scripts/locate-template.sh'
X#!/bin/sh
X
Xecho -n "Path to template.html [default: port's location]: "
Xread location
X
Xif [ -z $location ] ; then
X
X	exit
X	fi
X
Xrm -f work/web-traceroute/template.html
X
Xln -s $location/template.html work/web-traceroute/template.html
END-of-web-traceroute/scripts/locate-template.sh
echo x - web-traceroute/pkg-plist
sed 's/^X//' >web-traceroute/pkg-plist << 'END-of-web-traceroute/pkg-plist'
Xwww/cgi-bin/trace
END-of-web-traceroute/pkg-plist
echo c - web-traceroute/files
mkdir -p web-traceroute/files > /dev/null 2>&1
echo x - web-traceroute/files/patch-Makefile
sed 's/^X//' >web-traceroute/files/patch-Makefile << 'END-of-web-traceroute/files/patch-Makefile'
X--- Makefile.old	Sun Oct 26 12:10:35 2003
X+++ Makefile	Sun Oct 26 12:13:14 2003
X@@ -4,24 +4,26 @@
X 
X # BINDEST should be the directory/filename where the cgi program needs
X # to be installed.  This must be configured with your web server.
X-BINDEST = /ns/cgi-bin/trace
X+BINDEST = $(PREFIX)/www/cgi-bin/trace
X 
X # CC and CCFLAGS should be set appropriately for your system
X # or uncomment the one you need.
X #
X # HP-UX
X CC = cc
X-CCFLAGS = -Aa +DA1.1 -D_HPUX_SOURCE
X+#CCFLAGS = -Aa +DA1.1 -D_HPUX_SOURCE
X #
X # BSDI's BSD/OS (probably ok for any recent version of gcc)
X # CC=gcc
X-# CCFLAGS = -O2
X+CCFLAGS = $(CFLAGS)
X 
X DEFINES = -DLEAVE_DOMAIN_NAME
X 
X # normally traceroute must be setuid root
X BINOWN  = root
X BINMODE = 4555
X+
X+all:	html.h $(PROG)
X 
X $(PROG): $(PROG).c html.h
X 	$(CC) $(CCFLAGS) $(DEFINES) -o $(PROG) $(PROG).c
END-of-web-traceroute/files/patch-Makefile
echo x - web-traceroute/distinfo
sed 's/^X//' >web-traceroute/distinfo << 'END-of-web-traceroute/distinfo'
XMD5 (web-traceroute.tar.gz) = 4665d0424dfb93fcb1ccfbcd76fc8377
END-of-web-traceroute/distinfo
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list