mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
Add new port of mtrace, multicast traceroute for IPv4.
Nudged by: fenner
This commit is contained in:
parent
b96488f973
commit
4e9cb2caae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174063
@ -82,6 +82,7 @@
|
||||
SUBDIR += libsmi
|
||||
SUBDIR += mbrowse
|
||||
SUBDIR += mrtg
|
||||
SUBDIR += mtrace
|
||||
SUBDIR += nagcon
|
||||
SUBDIR += nagios
|
||||
SUBDIR += nagios-plugins
|
||||
|
27
net-mgmt/mtrace/Makefile
Normal file
27
net-mgmt/mtrace/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# New ports collection makefile for: mtrace
|
||||
# Date created: 28 September 2006
|
||||
# Whom: Bruce M Simpson <bms@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mtrace
|
||||
PORTVERSION= 5.2
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= bms@FreeBSD.org
|
||||
COMMENT= Multicast traceroute program for IPv4
|
||||
|
||||
MAN8= mtrace.8
|
||||
|
||||
ALL_TARGET= mtrace
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mtrace ${PREFIX}/sbin/mtrace
|
||||
${INSTALL_MAN} ${WRKSRC}/mtrace.8 ${PREFIX}/man/man8
|
||||
|
||||
PLIST_FILES= sbin/mtrace
|
||||
|
||||
.include <bsd.port.mk>
|
3
net-mgmt/mtrace/distinfo
Normal file
3
net-mgmt/mtrace/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (mtrace-5.2.tar.gz) = 3d2e3a156205bb4bf62d7dae06d8ab53
|
||||
SHA256 (mtrace-5.2.tar.gz) = 36ee82b09000951e55039c683eb493acb01371edcc3a47ddd3465a3ae534403d
|
||||
SIZE (mtrace-5.2.tar.gz) = 36488
|
10
net-mgmt/mtrace/files/patch-Makefile
Normal file
10
net-mgmt/mtrace/files/patch-Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
--- Makefile.orig Thu Sep 28 22:57:58 2006
|
||||
+++ Makefile Thu Sep 28 22:58:46 2006
|
||||
@@ -9,6 +9,7 @@
|
||||
#MCAST_INCLUDE= -I/sys
|
||||
#
|
||||
CFLAGS= -O ${MCAST_INCLUDE} ## SunOS, OSF1, FreeBSD, IRIX
|
||||
+CFLAGS+= -O2 -fno-strict-aliasing -Dlog=logit
|
||||
#CFLAGS= -O ${MCAST_INCLUDE} -DRAW_OUTPUT_IS_RAW ## OpenBSD
|
||||
#CFLAGS= -O ${MCAST_INCLUDE} -D__BSD_SOURCE -DRAW_OUTPUT_IS_RAW -DRAW_INPUT_IS_RAW ## Linux
|
||||
#CFLAGS= -O ${MCAST_INCLUDE} -DSYSV -DSUNOS5 ## Solaris 2.x
|
20
net-mgmt/mtrace/files/patch-mtrace.c
Normal file
20
net-mgmt/mtrace/files/patch-mtrace.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- mtrace.c.orig Thu Sep 28 22:58:53 2006
|
||||
+++ mtrace.c Thu Sep 28 23:00:11 2006
|
||||
@@ -1486,6 +1486,7 @@
|
||||
struct sockaddr_in recvaddr;
|
||||
struct tm *now;
|
||||
char timebuf[32];
|
||||
+ time_t tr_sec;
|
||||
int socklen;
|
||||
int ipdatalen, iphdrlen, igmpdatalen;
|
||||
int len, recvlen;
|
||||
@@ -1593,7 +1594,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
- now = localtime(&tr.tv_sec);
|
||||
+ tr_sec = tr.tv_sec;
|
||||
+ now = localtime(&tr_sec);
|
||||
strftime(timebuf, sizeof(timebuf) - 1, "%b %e %k:%M:%S", now);
|
||||
printf("Mtrace %s at %s",
|
||||
len == 0 ? "query" :
|
2
net-mgmt/mtrace/pkg-descr
Normal file
2
net-mgmt/mtrace/pkg-descr
Normal file
@ -0,0 +1,2 @@
|
||||
mtrace is a program to trace the routes taken by IPv4 multicast
|
||||
traffic flows.
|
Loading…
Reference in New Issue
Block a user