summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-04-19 10:58:10 +0000
committerijliao <ijliao@FreeBSD.org>2001-04-19 10:58:10 +0000
commit1a1c7f34b275761c0f86df6202f1b1f1e50faf7b (patch)
treef73a107dd5c4173c7cec863de6830a248631deea
parent70af6d7f76d3dff0c8c24a83d64dc4b614d8a09e (diff)
downloadFreeBSD-ports-1a1c7f34b275761c0f86df6202f1b1f1e50faf7b.zip
FreeBSD-ports-1a1c7f34b275761c0f86df6202f1b1f1e50faf7b.tar.gz
add geotrace
Geotrace is a geographical traceroute utility.
-rw-r--r--net/Makefile1
-rw-r--r--net/geotrace/Makefile29
-rw-r--r--net/geotrace/distinfo1
-rw-r--r--net/geotrace/files/patch-Makefile12
-rw-r--r--net/geotrace/files/patch-prefs.c11
-rw-r--r--net/geotrace/files/patch-prefs.h11
-rw-r--r--net/geotrace/pkg-comment1
-rw-r--r--net/geotrace/pkg-descr3
-rw-r--r--net/geotrace/pkg-plist31
9 files changed, 100 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 28d015f..c682b5d 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -104,6 +104,7 @@
SUBDIR += gated
SUBDIR += gatekeeper
SUBDIR += generic-nqs
+ SUBDIR += geotrace
SUBDIR += ggsd
SUBDIR += ghtool
SUBDIR += gicq
diff --git a/net/geotrace/Makefile b/net/geotrace/Makefile
new file mode 100644
index 0000000..706b6f9
--- /dev/null
+++ b/net/geotrace/Makefile
@@ -0,0 +1,29 @@
+# ex:ts=8
+# New ports collection makefile for: geotrace
+# Date created: Apr 19, 2001
+# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= geotrace
+PORTVERSION= 0.0.4
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ijliao@FreeBSD.org
+
+LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
+
+USE_GTK= yes
+
+post-patch:
+ @${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/prefs.h
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/geotrace ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/etc/maps
+ ${CP} -R ${WRKSRC}/maps/ ${PREFIX}/etc/maps
+
+.include <bsd.port.mk>
diff --git a/net/geotrace/distinfo b/net/geotrace/distinfo
new file mode 100644
index 0000000..204a937
--- /dev/null
+++ b/net/geotrace/distinfo
@@ -0,0 +1 @@
+MD5 (geotrace-0.0.4.tar.gz) = d56b28838feb2e5e4e5df168d11a99af
diff --git a/net/geotrace/files/patch-Makefile b/net/geotrace/files/patch-Makefile
new file mode 100644
index 0000000..8a3c59b
--- /dev/null
+++ b/net/geotrace/files/patch-Makefile
@@ -0,0 +1,12 @@
+--- Makefile.orig Thu Apr 19 17:00:02 2001
++++ Makefile Thu Apr 19 17:00:40 2001
+@@ -1,6 +1,6 @@
+-CFLAGS = `gtk-config --cflags` `gdk-pixbuf-config --cflags`
+-LFLAGS = `gtk-config --libs gthread` `gdk-pixbuf-config --libs`
+-CC = gcc -Wall -g
++CFLAGS += `${GTK_CONFIG} --cflags` `gdk-pixbuf-config --cflags`
++LFLAGS = `${GTK_CONFIG} --libs gthread` `gdk-pixbuf-config --libs`
++CC = gcc
+
+ OBJ = geotrace.o interface.o callbacks.o map.o netgeoclient.o prefs.o
+
diff --git a/net/geotrace/files/patch-prefs.c b/net/geotrace/files/patch-prefs.c
new file mode 100644
index 0000000..32c07a9
--- /dev/null
+++ b/net/geotrace/files/patch-prefs.c
@@ -0,0 +1,11 @@
+--- prefs.c.orig Thu Apr 19 18:38:27 2001
++++ prefs.c Thu Apr 19 18:39:02 2001
+@@ -14,7 +14,7 @@
+ start_map = malloc (30);
+ value = malloc (100);
+ option = malloc (30);
+- sprintf (prefs_path,"%s/%s",getenv("HOME"),GEO_PREFS_FILE);
++ sprintf (prefs_path,"%s",GEO_PREFS_FILE);
+ strcpy (traceroute_path,TRACE_PATH_DEF);
+ strcpy (maps_dir_path,MAPS_DIR_DEF);
+ strcpy (start_map,START_MAP_DEF);
diff --git a/net/geotrace/files/patch-prefs.h b/net/geotrace/files/patch-prefs.h
new file mode 100644
index 0000000..2c880ee
--- /dev/null
+++ b/net/geotrace/files/patch-prefs.h
@@ -0,0 +1,11 @@
+--- prefs.h.orig Thu Apr 19 18:34:56 2001
++++ prefs.h Thu Apr 19 18:38:00 2001
+@@ -3,7 +3,7 @@
+ #define TIMEOUT_DEF 5
+ #define RESOLVE_DEF 1
+ #define GEO_PREFS_FILE ".geotrace"
+-#define MAPS_DIR_DEF "maps/"
++#define MAPS_DIR_DEF "%%PREFIX%%/etc/maps/"
+ #define START_MAP_DEF "World50.gif"
+ #define LINE_COLOR_RED_DEF 0
+ #define LINE_COLOR_GREEN_DEF 0
diff --git a/net/geotrace/pkg-comment b/net/geotrace/pkg-comment
new file mode 100644
index 0000000..b5c3df1
--- /dev/null
+++ b/net/geotrace/pkg-comment
@@ -0,0 +1 @@
+Graphical traceroute utility
diff --git a/net/geotrace/pkg-descr b/net/geotrace/pkg-descr
new file mode 100644
index 0000000..7e430fb
--- /dev/null
+++ b/net/geotrace/pkg-descr
@@ -0,0 +1,3 @@
+Geotrace is a geographical traceroute utility.
+
+WWW: http://geotrace.sourceforge.net/
diff --git a/net/geotrace/pkg-plist b/net/geotrace/pkg-plist
new file mode 100644
index 0000000..9674b66
--- /dev/null
+++ b/net/geotrace/pkg-plist
@@ -0,0 +1,31 @@
+bin/geotrace
+etc/maps/Africa.gif
+etc/maps/Australia.gif
+etc/maps/Belgium.gif
+etc/maps/Canada.gif
+etc/maps/Caribbean.gif
+etc/maps/CentralAmerica.gif
+etc/maps/China.gif
+etc/maps/Europe.gif
+etc/maps/France.gif
+etc/maps/Germany.gif
+etc/maps/Hawaii.gif
+etc/maps/India.gif
+etc/maps/Italy.gif
+etc/maps/Japan.gif
+etc/maps/Korea.gif
+etc/maps/MalaysiaIndonesia.gif
+etc/maps/MiddleEast.gif
+etc/maps/NOSEFI.gif
+etc/maps/Netherlands.gif
+etc/maps/NewZealand.gif
+etc/maps/Philippines.gif
+etc/maps/SouthAmerica.gif
+etc/maps/UK.gif
+etc/maps/Us100.gif
+etc/maps/Us200.gif
+etc/maps/Us50.gif
+etc/maps/World100.gif
+etc/maps/World50.gif
+etc/maps/maps.properties
+@dirrm etc/maps
OpenPOWER on IntegriCloud