aboutsummaryrefslogtreecommitdiff
path: root/net/xtraceroute
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-05-08 11:20:46 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-05-08 11:20:46 +0000
commitfcc5e609e58dcc73fb5af7ffb704df4379a2d4c8 (patch)
tree91b34628a794c743f698e33a54120b80928d2fa8 /net/xtraceroute
parentd2b12d1ec78d2e0e903699293e859eda0507aeca (diff)
downloadports-fcc5e609e58dcc73fb5af7ffb704df4379a2d4c8.tar.gz
ports-fcc5e609e58dcc73fb5af7ffb704df4379a2d4c8.zip
Notes
Diffstat (limited to 'net/xtraceroute')
-rw-r--r--net/xtraceroute/Makefile5
-rw-r--r--net/xtraceroute/files/patch-main.c22
-rw-r--r--net/xtraceroute/files/patch-share::xtraceroute-resolve-location.sh.in11
3 files changed, 37 insertions, 1 deletions
diff --git a/net/xtraceroute/Makefile b/net/xtraceroute/Makefile
index e2af044e07d0..9bd5d9075edf 100644
--- a/net/xtraceroute/Makefile
+++ b/net/xtraceroute/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xtraceroute
PORTVERSION= 0.9.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.dtek.chalmers.se/~d3august/xt/dl/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DATAFILES}
@@ -34,6 +34,9 @@ DATAFILES= ndg_files.tar.gz
MAN1= xtraceroute.1
+post-patch:
+ @${TOUCH} ${WRKSRC}/po/*
+
post-install:
${INSTALL_DATA} ${WRKDIR}/hosts.cache ${PREFIX}/share/xtraceroute
${INSTALL_DATA} ${WRKDIR}/networks.cache ${PREFIX}/share/xtraceroute
diff --git a/net/xtraceroute/files/patch-main.c b/net/xtraceroute/files/patch-main.c
new file mode 100644
index 000000000000..3586cf2cee0a
--- /dev/null
+++ b/net/xtraceroute/files/patch-main.c
@@ -0,0 +1,22 @@
+--- main.c.orig Fri May 7 13:50:04 2004
++++ main.c Fri May 7 13:50:10 2004
+@@ -1215,15 +1215,14 @@
+ {
+ float tmpquat[4];
+ float vect[3] = {0.0, 1.0, 0.0};
+- struct utsname un;
+- struct hostent* he;
++ char namebuf[256];
++ struct hostent* he = NULL;
+ struct in_addr in;
+
+ memset(&local, 0, sizeof(site));
+
+- uname(&un);
+- strcpy(local.name, un.nodename);
+- he = gethostbyname(un.nodename);
++ if (gethostname(namebuf,256) == 0)
++ he = gethostbyname(namebuf);
+ if(!he)
+ {
+ printf("Error gethostbynaming local hostname");
diff --git a/net/xtraceroute/files/patch-share::xtraceroute-resolve-location.sh.in b/net/xtraceroute/files/patch-share::xtraceroute-resolve-location.sh.in
new file mode 100644
index 000000000000..13f4ba00bdf0
--- /dev/null
+++ b/net/xtraceroute/files/patch-share::xtraceroute-resolve-location.sh.in
@@ -0,0 +1,11 @@
+--- share/xtraceroute-resolve-location.sh.in.orig Fri May 7 15:01:36 2004
++++ share/xtraceroute-resolve-location.sh.in Fri May 7 15:01:57 2004
+@@ -34,7 +34,7 @@
+ BIND)
+ FIRST=yes
+ #while target contains a dot.
+- while [ `echo $TARGET | cut -s -f1- -d.` ] || [ $FIRST = yes ]
++ while [ -n "$TARGET" ] && [ `echo $TARGET | cut -s -f1- -d.` ] || [ $FIRST = yes ]
+ do
+ FIRST=no
+ #echo $TARGET