2013-03-15 08:40:34 +01:00
|
|
|
# Created by: Bill Fumerola <billf@chc-chimes.com>
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-08-24 03:56:04 +02:00
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= mtr
|
2013-07-13 15:29:56 +02:00
|
|
|
PORTVERSION= 0.85
|
2013-07-31 13:57:45 +02:00
|
|
|
PORTREVISION= 1
|
2011-10-08 21:03:02 +02:00
|
|
|
CATEGORIES= net
|
1999-03-01 23:15:45 +01:00
|
|
|
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
|
2010-10-01 03:14:18 +02:00
|
|
|
LOCAL/sunpoet
|
1998-08-24 03:56:04 +02:00
|
|
|
|
2010-09-22 19:10:26 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2013-03-15 08:40:34 +01:00
|
|
|
COMMENT= Traceroute and ping in a single network diagnostic tool
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2000-01-25 19:33:42 +01:00
|
|
|
|
2013-07-13 15:29:56 +02:00
|
|
|
OPTIONS_DEFINE= GLIB IPV6 X11
|
2013-03-15 08:40:34 +01:00
|
|
|
OPTIONS_DEFAULT=X11
|
2013-07-13 15:29:56 +02:00
|
|
|
GLIB_DESC= Build with glib library
|
2012-07-04 11:55:12 +02:00
|
|
|
X11_DESC= Build X11-enabled mtr
|
2011-01-15 12:34:12 +01:00
|
|
|
|
2008-08-25 04:48:22 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-04-23 16:20:25 +02:00
|
|
|
USES= pkgconfig
|
2000-01-25 19:33:42 +01:00
|
|
|
|
2013-10-10 16:36:49 +02:00
|
|
|
PLIST_FILES= man/man8/mtr.8.gz \
|
|
|
|
sbin/mtr
|
2000-01-25 19:33:42 +01:00
|
|
|
|
2013-10-10 16:36:49 +02:00
|
|
|
GLIB_CONFIGURE_WITH= glib
|
|
|
|
GLIB_USE= GNOME=glib20
|
|
|
|
IPV6_CATEGORIES= ipv6
|
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
|
|
X11_CONFIGURE_WITH= gtk
|
|
|
|
X11_USE= GNOME=gtk20
|
2013-07-13 15:29:56 +02:00
|
|
|
|
2013-10-10 16:36:49 +02:00
|
|
|
.include <bsd.port.options.mk>
|
1998-08-24 03:56:04 +02:00
|
|
|
|
2013-10-10 16:36:49 +02:00
|
|
|
.if !${PORT_OPTIONS:MX11}
|
2013-03-15 08:40:34 +01:00
|
|
|
PKGNAMESUFFIX+= -nox11
|
2007-02-21 00:48:46 +01:00
|
|
|
.endif
|
|
|
|
|
2008-04-26 16:50:03 +02:00
|
|
|
post-patch:
|
2012-07-04 11:55:12 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|getopt.*$$(OBJEXT)||g; s|getopt.*[ch]||g; /getopt.*Po/d' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|"getopt\.h"|<getopt.h>|g' ${WRKSRC}/mtr.c
|
2006-11-07 15:29:04 +01:00
|
|
|
|
1998-08-25 02:04:05 +02:00
|
|
|
post-install:
|
2008-04-26 16:50:03 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "${PREFIX}/sbin/mtr is setuid \"root\" "
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Please read about potential security issues"
|
|
|
|
@${ECHO_MSG} "in file ${WRKSRC}/SECURITY (not installed)"
|
|
|
|
@${ECHO_MSG} ""
|
1998-08-25 02:04:05 +02:00
|
|
|
|
2011-01-15 12:34:12 +01:00
|
|
|
.include <bsd.port.mk>
|