# Created by: Bill Fumerola # $FreeBSD: head/net/mtr/Makefile 383955 2015-04-13 19:25:24Z sunpoet $ PORTNAME= mtr PORTVERSION= 0.86 CATEGORIES= net MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \ LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Traceroute and ping in a single network diagnostic tool LICENSE= GPLv2 OPTIONS_DEFINE= IPV6 X11 OPTIONS_DEFAULT=X11 X11_DESC= Build X11-enabled mtr GNU_CONFIGURE= yes LDFLAGS+= -lncurses USES= autoreconf ncurses pkgconfig PLIST_FILES= man/man8/mtr.8.gz \ sbin/mtr IPV6_CATEGORIES= ipv6 IPV6_CONFIGURE_ENABLE= ipv6 X11_CONFIGURE_WITH= gtk X11_USE= GNOME=gtk20 .if defined(PKGNAMESUFFIX) CONFLICTS_INSTALL= mtr-0* .else CONFLICTS_INSTALL= mtr-nox11-0* .endif post-patch: @${REINPLACE_CMD} -e 's|getopt.*$$(OBJEXT)||g; s|getopt.*[ch]||g; /getopt.*Po/d' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|"getopt\.h"||g' ${WRKSRC}/mtr.c post-install: @${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} "" .include