1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net/mtr/Makefile
Sunpoet Po-Chuan Hsieh 323ce32bdf - Re-enable X11 by default
- Bump PORTREVISION for dependency change

Suggested by:	dougb (via IRC)
Feature safe:	yes
2011-01-15 20:59:13 +00:00

61 lines
1.3 KiB
Makefile

# New ports collection makefile for: mtr
# Date created: 12 August 1998
# Whom: Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#
PORTNAME= mtr
PORTVERSION= 0.80
PORTREVISION?= 2
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
http://mirrors.evolva.ro/util/mtr/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Traceroute and ping in a single graphical network diagnostic tool
OPTIONS= IPV6 "Build IPv6 support" on \
X11 "Build X11-enabled mtr" on
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAN8= mtr.8
PLIST_FILES= sbin/mtr
.include <bsd.port.options.mk>
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--enable-ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
.if !defined(WITHOUT_X11)
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>