1998-08-23 21:56:04 -04:00
|
|
|
# New ports collection makefile for: mtr
|
|
|
|
# Date created: 12 August 1998
|
|
|
|
# Whom: Bill Fumerola <billf@chc-chimes.com>
|
|
|
|
#
|
1999-08-30 10:24:37 -04:00
|
|
|
# $FreeBSD$
|
1998-08-23 21:56:04 -04:00
|
|
|
#
|
|
|
|
|
2000-04-09 14:14:07 -04:00
|
|
|
PORTNAME= mtr
|
|
|
|
PORTVERSION= 0.42
|
2000-01-18 07:34:34 -05:00
|
|
|
CATEGORIES= net ipv6
|
1999-03-01 17:15:45 -05:00
|
|
|
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
|
1999-04-13 16:53:18 -04:00
|
|
|
http://www.giovannelli.it/~gmarco/files/
|
1998-08-23 21:56:04 -04:00
|
|
|
|
2000-01-25 13:33:42 -05:00
|
|
|
MAINTAINER= billf@FreeBSD.org
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2000-01-27 03:25:29 -05:00
|
|
|
USE_GMAKE= yes
|
2000-01-25 13:33:42 -05:00
|
|
|
|
|
|
|
MAN8= mtr.8
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-05-07 11:18:14 -04:00
|
|
|
.if ${OSVERSION} >= 400014
|
2000-07-19 11:05:26 -04:00
|
|
|
PATCHFILES= mtr-042-v6-20000719.diff.gz
|
2000-05-07 11:18:14 -04:00
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
|
|
|
PATCH_DIST_STRIP= -p1
|
1998-08-23 21:56:04 -04:00
|
|
|
|
2000-05-07 11:18:14 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
.else
|
2000-01-13 02:02:22 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
2000-05-07 11:18:14 -04:00
|
|
|
.endif
|
1998-08-23 21:56:04 -04:00
|
|
|
|
1999-07-04 13:08:55 -04:00
|
|
|
pre-patch:
|
2000-04-16 20:19:02 -04:00
|
|
|
.if !defined(WITH_GTK)
|
1999-04-13 16:53:18 -04:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "If you want to compile with GTK support,"
|
2000-04-16 20:19:02 -04:00
|
|
|
@${ECHO} "hit Ctrl-C right now and use \"make WITH_GTK=yes\" "
|
1999-04-13 16:53:18 -04:00
|
|
|
@${ECHO} ""
|
2000-01-13 02:02:22 -05:00
|
|
|
CONFIGURE_ARGS+=--with-gtk-prefix=/nopath
|
1999-04-13 16:53:18 -04:00
|
|
|
.else
|
1998-08-24 20:04:05 -04:00
|
|
|
USE_XLIB= yes
|
1999-05-28 23:56:15 -04:00
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
1999-04-13 16:53:18 -04:00
|
|
|
CONFIGURE_ENV= GTK_CONFIG="${X11BASE}/bin/gtk12-config"
|
|
|
|
.endif
|
1998-08-23 21:56:04 -04:00
|
|
|
|
1999-04-13 16:53:18 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL} -c -s -m 4755 -o root -g wheel ${WRKSRC}/mtr ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mtr.8 ${PREFIX}/man/man8
|
1998-08-23 21:56:04 -04:00
|
|
|
|
1998-08-24 20:04:05 -04:00
|
|
|
post-install:
|
1999-04-13 16:53:18 -04:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "${PREFIX}/sbin/mtr is setuid \"root\" "
|
|
|
|
@${ECHO} ""
|
1999-10-28 04:06:00 -04:00
|
|
|
@${ECHO} "Please read about potential security issues"
|
1999-04-13 16:53:18 -04:00
|
|
|
@${ECHO} "in file ${WRKSRC}/SECURITY (not installed)"
|
|
|
|
@${ECHO} ""
|
1998-08-24 20:04:05 -04:00
|
|
|
|
2000-01-25 13:33:42 -05:00
|
|
|
.include <bsd.port.post.mk>
|