summaryrefslogtreecommitdiffstats
path: root/net/mtr/Makefile
blob: 1d49aeb1e3721bae3acb93645a725d306f05dc5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:   mtr
# Date created:        12 August 1998
# Whom:                Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#

PORTNAME=	mtr
PORTVERSION=	0.75
PORTREVISION=	1
CATEGORIES=	net ipv6
MASTER_SITES=	ftp://ftp.bitwizard.nl/mtr/ \
		http://gd.tuwien.ac.at/infosys/network/tools/mtr/ \
		http://mirrors.evolva.ro/util/mtr/ \
		http://sunpoet.net/distfiles/

MAINTAINER=	sunpoet@sunpoet.net
COMMENT=	Traceroute and ping in a single graphical network diagnostic tool

USE_GMAKE=	yes
GNU_CONFIGURE=	yes

MAN8=		mtr.8
PLIST_FILES=	sbin/mtr

.if defined(WITHOUT_X11)
PKGNAMESUFFIX=	-nox11
CONFIGURE_ARGS+=--without-gtk
.else
USE_GNOME=	gtk20
.endif

.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--disable-ipv6
.endif

.include <bsd.port.pre.mk>

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
.if ${OSVERSION} < 700024
	@${REINPLACE_CMD} -e \
		's|-Wno-pointer-sign||' ${WRKSRC}/configure
.endif

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.post.mk>
OpenPOWER on IntegriCloud