diff --git a/net/pchar/Makefile b/net/pchar/Makefile index 9c80b88f34f..7a5968c4ea4 100644 --- a/net/pchar/Makefile +++ b/net/pchar/Makefile @@ -1,9 +1,11 @@ -# $OpenBSD: Makefile,v 1.16 2002/12/23 08:40:58 pvalchev Exp $ +# $OpenBSD: Makefile,v 1.17 2003/06/17 15:28:55 avsm Exp $ # $FreeBSD: ports/net/pchar/Makefile,v 1.1.1.1 1999/11/04 08:33:26 obrien Exp $ COMMENT= "Sandia Internet path characterization tool" -DISTNAME= pchar-1.4 +V= 1.4 +DISTNAME= pchar-${V} +PKGNAME= pchar-${V}p1 CATEGORIES= net MASTER_SITES= ${HOMEPAGE} @@ -13,7 +15,7 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -HOMEPAGE= http://www.ca.sandia.gov/~bmah/Software/pchar/ +HOMEPAGE= http://www.employees.org/~bmah/Software/pchar/ CONFIGURE_STYLE=gnu CONFIGURE_ARGS= --with-ipv6 --with-pcap diff --git a/net/pchar/patches/patch-PctestIpv4File_cc b/net/pchar/patches/patch-PctestIpv4File_cc new file mode 100644 index 00000000000..27d112cc54d --- /dev/null +++ b/net/pchar/patches/patch-PctestIpv4File_cc @@ -0,0 +1,28 @@ +$OpenBSD: patch-PctestIpv4File_cc,v 1.1 2003/06/17 15:28:55 avsm Exp $ +--- PctestIpv4File.cc.orig Tue Jun 17 16:20:42 2003 ++++ PctestIpv4File.cc Tue Jun 17 16:21:11 2003 +@@ -195,13 +195,13 @@ int PctestIpv4File::SetTargetName(char * + + else if (strncasecmp(s, "src ", 4) == 0) { + char t[128]; +- sscanf(s, "src %128s", t); ++ sscanf(s, "src %127s", t); + originAddress.s_addr = inet_addr(t); + } + + else if (strncasecmp(s, "dest ", 5) == 0) { + char t[128]; +- sscanf(s, "dest %128s", t); ++ sscanf(s, "dest %127s", t); + targetAddress.s_addr = inet_addr(t); + } + +@@ -236,7 +236,7 @@ int PctestIpv4File::SetTargetName(char * + + else if (strncasecmp(s, "targethost ", 11) == 0) { + char t[128]; +- sscanf(s, "targethost %128s", t); ++ sscanf(s, "targethost %127s", t); + PctestIpv4::SetTargetName(t); + } + diff --git a/net/pchar/patches/patch-PctestIpv6File_cc b/net/pchar/patches/patch-PctestIpv6File_cc new file mode 100644 index 00000000000..0003ddfff06 --- /dev/null +++ b/net/pchar/patches/patch-PctestIpv6File_cc @@ -0,0 +1,28 @@ +$OpenBSD: patch-PctestIpv6File_cc,v 1.1 2003/06/17 15:28:55 avsm Exp $ +--- PctestIpv6File.cc.orig Tue Jun 17 16:21:21 2003 ++++ PctestIpv6File.cc Tue Jun 17 16:21:45 2003 +@@ -212,13 +212,13 @@ int PctestIpv6File::SetTargetName(char * + + else if (strncasecmp(s, "src ", 4) == 0) { + char t[128]; +- sscanf(s, "src %128s", t); ++ sscanf(s, "src %127s", t); + inet_pton(AF_INET6, t, (void *) &originAddress); + } + + else if (strncasecmp(s, "dest ", 5) == 0) { + char t[128]; +- sscanf(s, "dest %128s", t); ++ sscanf(s, "dest %127s", t); + inet_pton(AF_INET6, t, (void *) &targetAddress); + } + +@@ -253,7 +253,7 @@ int PctestIpv6File::SetTargetName(char * + + else if (strncasecmp(s, "targethost ", 11) == 0) { + char t[128]; +- sscanf(s, "targethost %128s", t); ++ sscanf(s, "targethost %127s", t); + PctestIpv6::SetTargetName(t); + } +