1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net/mtr/Makefile
2013-04-23 14:20:25 +00:00

60 lines
1.3 KiB
Makefile

# Created by: Bill Fumerola <billf@chc-chimes.com>
# $FreeBSD$
PORTNAME= mtr
PORTVERSION= 0.84
CATEGORIES= net
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
http://launchpadlibrarian.net/130869615/ \
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
CPPFLAGS+= -I${LOCALBASE}/include/glib-2.0
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib -lglib-2.0
USE_GMAKE= yes
USE_GNOME= _glib20
USES= pkgconfig
MAN8= mtr.8
PLIST_FILES= sbin/mtr
.include <bsd.port.options.mk>
.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"|<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 <bsd.port.mk>