# New ports collection makefile for: mtr # Date created: 12 August 1998 # Whom: Bill Fumerola # # $FreeBSD$ # PORTNAME= mtr PORTVERSION= 0.82 PORTREVISION?= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \ http://launchpadlibrarian.net/82181604/ \ LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Traceroute and ping in a single graphical network diagnostic tool OPTIONS_DEFINE= IPV6 X11 OPTIONS_DEFAULT=IPV6 X11 X11_DESC= Build X11-enabled mtr GNU_CONFIGURE= yes USE_GMAKE= yes MAN8= mtr.8 PLIST_FILES= sbin/mtr .include .if ${PORT_OPTIONS:MIPV6} CONFIGURE_ARGS+=--enable-ipv6 CATEGORIES+= ipv6 .else CONFIGURE_ARGS+=--disable-ipv6 .endif .if ${PORT_OPTIONS:MX11} CONFIGURE_ARGS+=--with-gtk USE_GNOME= gtk20 .else CONFIGURE_ARGS+=--without-gtk PKGNAMESUFFIX= -nox11 .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