remove outdated, broken port of abandoned software; many agree
This commit is contained in:
parent
2876344b0c
commit
13d61231a0
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.343 2004/12/16 13:42:56 pedro Exp $
|
||||
# $OpenBSD: Makefile,v 1.344 2004/12/18 00:38:44 pvalchev Exp $
|
||||
# $FreeBSD: Makefile,v 1.129 1997/11/20 13:47:40 itojun Exp $
|
||||
#
|
||||
|
||||
@ -141,7 +141,6 @@
|
||||
SUBDIR += oinkmaster
|
||||
SUBDIR += openh323
|
||||
SUBDIR += openvpn
|
||||
SUBDIR += oproute
|
||||
SUBDIR += p5-Chatbot-Eliza
|
||||
SUBDIR += p5-Geo-IP
|
||||
SUBDIR += p5-IO-INET6
|
||||
|
@ -1,33 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2004/12/16 00:31:24 alek Exp $
|
||||
|
||||
COMMENT= "network performance measuring tool"
|
||||
|
||||
DISTNAME= oproute-0.7
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
CATEGORIES= net
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
HOMEPAGE= http://www.oproute.net/
|
||||
|
||||
MAINTAINER= Jason Peel <jsyn@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c m stdc++
|
||||
|
||||
MASTER_SITES= ftp://ftp.opnix.com/oproute/ \
|
||||
http://www.mirrors.wiretapped.net/security/network-monitoring/oproute/
|
||||
|
||||
MAKE_FLAGS= CXX="${CXX}" CFLAGS="${CFLAGS}"
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/oproute
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/oproute
|
||||
@strip ${PREFIX}/bin/oproute
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,3 +0,0 @@
|
||||
MD5 (oproute-0.7.tgz) = 57b45cd6218371e601501ed4d647bff7
|
||||
RMD160 (oproute-0.7.tgz) = db78597132debf7f79757a00b17ac9d8f86ac14d
|
||||
SHA1 (oproute-0.7.tgz) = c69985f46a4258e5225d8bf8abdab815bf69a24a
|
@ -1,20 +0,0 @@
|
||||
$OpenBSD: patch-Makefile,v 1.2 2001/07/03 19:12:55 jsyn Exp $
|
||||
--- Makefile.orig Wed Feb 28 19:28:31 2001
|
||||
+++ Makefile Mon Jul 2 20:57:23 2001
|
||||
@@ -1,12 +1,13 @@
|
||||
|
||||
-CPPFLAGS = -O3
|
||||
+CXX=g++
|
||||
+CFLAGS=-O3
|
||||
VERSION = 0.7
|
||||
-BIN = /usr/local/bin
|
||||
+BIN = ${PREFIX}/bin
|
||||
|
||||
all: oproute
|
||||
|
||||
oproute: oproute.cpp oproute.h main.cpp
|
||||
- g++ $(CPPFLAGS) -o oproute oproute.cpp main.cpp jivastring.cpp
|
||||
+ $(CXX) $(CFLAGS) -o oproute oproute.cpp main.cpp jivastring.cpp
|
||||
|
||||
install: all
|
||||
install -d $(BIN)
|
@ -1,44 +0,0 @@
|
||||
$OpenBSD: patch-oproute_cpp,v 1.2 2002/09/17 08:42:20 pvalchev Exp $
|
||||
--- oproute.cpp.orig Wed Feb 28 19:28:31 2001
|
||||
+++ oproute.cpp Tue Sep 17 02:07:26 2002
|
||||
@@ -146,10 +146,13 @@ OpRoute::OpRoute(string sDestination, in
|
||||
cout << "Could not resolve host... " << endl;
|
||||
exit(1);
|
||||
}
|
||||
+ recvfd = socket(PF_INET, SOCK_RAW, 1);
|
||||
+ /* revoke priveleges */
|
||||
+ seteuid(getuid());
|
||||
+ setuid(getuid());
|
||||
struct in_addr *ia = (struct in_addr *) *he->h_addr_list;
|
||||
sDestinationIP = inet_ntoa(*ia);
|
||||
nPort = getpid();
|
||||
- recvfd = socket(PF_INET, SOCK_RAW, 1);
|
||||
long nBufSize = 10000000;
|
||||
setsockopt(recvfd, SOL_SOCKET, SO_RCVBUF, (char *)&nBufSize, sizeof(nBufSize));
|
||||
nCurrentTTL = nBeginTTL = nTheBeginTTL;
|
||||
@@ -706,7 +709,7 @@ void OpRoute::CatchICMP(Hop *pHop)
|
||||
udp = (struct udphdr *)(recvbuf + hlen1 + 8 +hlen2);
|
||||
if(hip->ip_p == IPPROTO_UDP)
|
||||
{
|
||||
- pHop->nPort = ntohs(udp->dest);
|
||||
+ pHop->nPort = ntohs(udp->uh_dport);
|
||||
pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
|
||||
pHop->state = HOP_COMPLETED;
|
||||
pHop->fLatency = GetLatencyFromTV(tvNow, tvTimeOfLastSend);
|
||||
@@ -721,14 +724,14 @@ void OpRoute::CatchICMP(Hop *pHop)
|
||||
{
|
||||
if (icmp->icmp_code == ICMP_UNREACH_PORT)
|
||||
{
|
||||
- pHop->nPort = ntohs(udp->dest);
|
||||
+ pHop->nPort = ntohs(udp->uh_dport);
|
||||
pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
|
||||
pHop->state = HOP_ENDOFLINE;
|
||||
pHop->fLatency = GetLatencyFromTV(tvNow, tvTimeOfLastSend);
|
||||
}
|
||||
else
|
||||
{
|
||||
- pHop->nPort = ntohs(udp->dest);
|
||||
+ pHop->nPort = ntohs(udp->uh_dport);
|
||||
pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
|
||||
pHop->state = HOP_FAILED;
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
$OpenBSD: patch-oproute_h,v 1.1.1.1 2001/07/03 02:40:21 pvalchev Exp $
|
||||
--- oproute.h.orig Sun Jun 24 15:43:30 2001
|
||||
+++ oproute.h Sun Jun 24 15:44:09 2001
|
||||
@@ -3,6 +3,9 @@
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <sys/time.h>
|
||||
#include <map>
|
||||
|
@ -1,12 +0,0 @@
|
||||
The purpose of OpRoute is to attempt to establish a
|
||||
*generalized* measurement system which takes into
|
||||
account all of the factors that are usually considered
|
||||
to be important when it comes to performance.
|
||||
Specifically:
|
||||
|
||||
- Packet Loss
|
||||
- Latency
|
||||
- Layer 3 Hops
|
||||
- AS Hops
|
||||
- NAP Hops
|
||||
- Throughput (To be done, not in there yet)
|
@ -1,4 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/03 02:40:21 pvalchev Exp $
|
||||
bin/oproute
|
||||
share/doc/oproute/README
|
||||
@dirrm share/doc/oproute
|
Loading…
Reference in New Issue
Block a user