ports/161867: Revised Port: www/web-traceroute

Dean Hollister dean at odyssey.apana.org.au
Fri Oct 21 09:20:14 UTC 2011


>Number:         161867
>Category:       ports
>Synopsis:       Revised Port: www/web-traceroute
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 21 09:20:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Dean Hollister
>Release:        8.2-STABLE
>Organization:
Australian Public Access Network Association Inc
>Environment:
FreeBSD odyssey.apana.org.au 8.2-STABLE FreeBSD 8.2-STABLE #4: Thu Sep 29 21:18:29 WST 2011     root at odyssey.apana.org.au:/usr/src/sys/i386/compile/ODYSSEY  i386
>Description:
Revised Port: www/web-traceroute

Changes in this revision:

o Apache depend amended to 2.2, as per request.

o template.sh now executes before the build, to prompt the user to enter the full path to template.html, or hit enter to just use the default template file.

o IS_INTERACTIVE variable added.

o NO_PACKAGE variable added.
>How-To-Repeat:

>Fix:
diff -ruN web-traceroute.old/Makefile web-traceroute/Makefile
--- web-traceroute.old/Makefile 2009-04-22 08:15:55.000000000 +0800
+++ web-traceroute/Makefile     2011-10-21 17:08:00.000000000 +0800
@@ -7,19 +7,24 @@

 PORTNAME=      web-traceroute
 PORTVERSION=   3.0
+PORTREVISION=  1
 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}

+IS_INTERACTIVE=        yes
+
+NO_PACKAGE=    Requires that the file template.html or equivalent be created and located before building port
+
 MAINTAINER=    dean at odyssey.apana.org.au
 COMMENT=       WWW Traceroute CGI script written in C

 PLIST_FILES=   www/cgi-bin/trace
-USE_APACHE=    1.3
+USE_APACHE=    2.2

-#pre-configure:
-#      ${SH} ${SCRIPTDIR}/locate-template.sh
+pre-build:
+               ${SH} ${SCRIPTDIR}/template.sh


 .include <bsd.port.mk>
diff -ruN web-traceroute.old/scripts/template.sh web-traceroute/scripts/template.sh
--- web-traceroute.old/scripts/template.sh      1970-01-01 08:00:00.000000000 +0800
+++ web-traceroute/scripts/template.sh  2011-10-21 17:03:39.000000000 +0800
@@ -0,0 +1,7 @@  
+#!/bin/sh
+echo -n "Please enter the full path to your localised template.html or [Use default]: "
+read template
+if [ "$template" != "" ]; then
+       rm work/web-traceroute/template.html;
+       ln -s $template work/web-traceroute/template.html;
+       fi


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list