blob: f67af55996278e8e8a974e54389cdf9b9d76acaa (
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
60
61
62
|
# Created by: Bill Fumerola <billf@chc-chimes.com>
# $FreeBSD$
PORTNAME= mtr
PORTVERSION= 0.85
CATEGORIES= net
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Traceroute and ping in a single network diagnostic tool
LICENSE= GPLv2
OPTIONS_DEFINE= GLIB IPV6 X11
OPTIONS_DEFAULT=X11
GLIB_DESC= Build with glib library
X11_DESC= Build X11-enabled mtr
GNU_CONFIGURE= yes
USES= pkgconfig
MAN8= mtr.8
PLIST_FILES= sbin/mtr
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGLIB}
CONFIGURE_ARGS+=--with-glib
USE_GNOME= _glib20
.else
CONFIGURE_ARGS+=--without-glib
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=--enable-ipv6
CATEGORIES+= ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
.if ${PORT_OPTIONS:MX11}
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>
|