summaryrefslogtreecommitdiffstats
path: root/net/mtr/Makefile
blob: ba81a5c0829245b0dc4bc4e649a9f2cddd223d68 (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
# New ports collection makefile for:   mtr
# Date created:        12 August 1998
# Whom:                Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#

PORTNAME=	mtr
PORTVERSION=	0.42
CATEGORIES=	net ipv6
MASTER_SITES=	ftp://ftp.bitwizard.nl/mtr/ \
		http://www.giovannelli.it/~gmarco/files/

MAINTAINER=	billf@FreeBSD.org

HAS_CONFIGURE=	yes
USE_GMAKE=	yes

MAN8=	mtr.8

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 400014
PATCHFILES=	mtr-042-v6-20000719.diff.gz
PATCH_SITES=	ftp://ftp.kame.net/pub/kame/misc/
PATCH_DIST_STRIP=	-p1

CONFIGURE_ARGS+=--enable-ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif

pre-patch:
.if !defined(WITH_GTK)
	@${ECHO} ""
	@${ECHO} "If you want to compile with GTK support,"
	@${ECHO} "hit Ctrl-C right now and use \"make WITH_GTK=yes\" "
	@${ECHO} ""
CONFIGURE_ARGS+=--with-gtk-prefix=/nopath
.else
USE_XLIB=	yes
LIB_DEPENDS=    gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
CONFIGURE_ENV=	GTK_CONFIG="${X11BASE}/bin/gtk12-config"
.endif

do-install:
	${INSTALL} -c -s -m 4755 -o root -g wheel ${WRKSRC}/mtr ${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/mtr.8 ${PREFIX}/man/man8

post-install:
	@${ECHO} ""
	@${ECHO} "${PREFIX}/sbin/mtr is setuid \"root\" "
	@${ECHO} ""
	@${ECHO} "Please read about potential security issues"
	@${ECHO} "in file ${WRKSRC}/SECURITY (not installed)"
	@${ECHO} ""

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud