1998-08-24 03:56:04 +02:00
|
|
|
# New ports collection makefile for: mtr
|
|
|
|
# Date created: 12 August 1998
|
|
|
|
# Whom: 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
|
2010-07-15 09:59:01 +02:00
|
|
|
PORTVERSION= 0.80
|
2005-05-28 19:26:23 +02:00
|
|
|
CATEGORIES= net ipv6
|
1999-03-01 23:15:45 +01:00
|
|
|
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
|
2009-01-11 05:18:02 +01:00
|
|
|
http://mirrors.evolva.ro/util/mtr/ \
|
|
|
|
http://sunpoet.net/distfiles/
|
1998-08-24 03:56:04 +02:00
|
|
|
|
2010-09-22 19:10:26 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Traceroute and ping in a single graphical network diagnostic tool
|
2000-01-25 19:33:42 +01:00
|
|
|
|
2008-08-25 04:48:22 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2010-07-12 08:17:20 +02:00
|
|
|
USE_GMAKE= yes
|
2000-01-25 19:33:42 +01:00
|
|
|
|
2004-02-06 14:12:53 +01:00
|
|
|
MAN8= mtr.8
|
|
|
|
PLIST_FILES= sbin/mtr
|
2000-01-25 19:33:42 +01:00
|
|
|
|
2008-08-25 04:48:22 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
CONFIGURE_ARGS+=--without-gtk
|
2010-07-12 08:17:20 +02:00
|
|
|
PKGNAMESUFFIX= -nox11
|
2000-05-07 17:18:14 +02:00
|
|
|
.else
|
2010-07-12 08:17:20 +02:00
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
2004-10-30 00:31:02 +02:00
|
|
|
USE_GNOME= gtk20
|
1999-04-13 22:53:18 +02:00
|
|
|
.endif
|
1998-08-24 03:56:04 +02:00
|
|
|
|
2007-02-21 00:48:46 +01:00
|
|
|
.if defined(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
2010-07-12 08:17:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
2007-02-21 00:48:46 +01:00
|
|
|
.endif
|
|
|
|
|
2008-08-25 04:48:22 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-04-26 16:50:03 +02:00
|
|
|
post-patch:
|
2008-08-25 04:48:22 +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
|
|
|
|
.if ${OSVERSION} < 700024
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-Wno-pointer-sign||' ${WRKSRC}/configure
|
|
|
|
.endif
|
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
|
|
|
|
2008-08-25 04:48:22 +02:00
|
|
|
.include <bsd.port.post.mk>
|