1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

net/mtr: Convert X11 option to x11 and nox11 flavors

net/mtr-nox11 is net/mtr@nox11 now.
This commit is contained in:
Po-Chuan Hsieh 2024-08-15 17:44:37 +08:00
parent 3af6d00781
commit 4aeef9e30a
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 16 additions and 9 deletions

View File

@ -112,7 +112,7 @@ NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios
NMAP_RUN_DEPENDS= nmap:security/nmap
WMIC_RUN_DEPENDS= wmic:net-mgmt/wmi-client
X11_RUN_DEPENDS= mtr:net/mtr
X11_RUN_DEPENDS_OFF= mtr:net/mtr-nox11
X11_RUN_DEPENDS_OFF= mtr:net/mtr@nox11
X11_USES= magick:6
X11_USES_OFF= magick:6,nox11

View File

@ -34,7 +34,7 @@ NO_BUILD= yes
RUN_DEPENDS+= rrdtool:databases/rrdtool \
dot:graphics/graphviz \
mtr:net/mtr-nox11 \
mtr:net/mtr@nox11 \
${LOCALBASE}/share/pear/Net/IPv4.php:net/pear-Net_IPv4@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Net/IPv6.php:net/pear-Net_IPv6@${PHP_FLAVOR} \
snmpget:net-mgmt/net-snmp \

View File

@ -18,7 +18,7 @@ LIB_DEPENDS= libpng.so:graphics/png \
libcares.so:dns/c-ares
RUN_DEPENDS= rrdtool:databases/rrdtool \
fping:net/fping \
mtr:net/mtr-nox11
mtr:net/mtr@nox11
USERS= xymon
GROUPS= xymon

View File

@ -17,22 +17,29 @@ USES= autoreconf ncurses pkgconfig
GNU_CONFIGURE= yes
LDFLAGS+= -lncurses
FLAVORS= x11 nox11
FLAVOR?= ${FLAVORS:[1]}
nox11_PKGNAMESUFFIX= -nox11
.if ${FLAVOR} == x11
CONFIGURE_ARGS+=--with-gtk
USE_GNOME= gtk20
USES+= gnome
.else
CONFIGURE_ARGS+=--without-gtk
.endif
USE_GITHUB= yes
GH_ACCOUNT= traviscross
CONFLICTS_INSTALL= mtr mtr-nox11
OPTIONS_DEFINE= IPV6 JSON X11
OPTIONS_DEFAULT=JSON X11
OPTIONS_DEFINE= IPV6 JSON
OPTIONS_DEFAULT=JSON
JSON_DESC= JSON support
X11_DESC= Build X11-enabled mtr
IPV6_CONFIGURE_ENABLE= ipv6
JSON_CONFIGURE_WITH= jansson
JSON_LIB_DEPENDS= libjansson.so:devel/jansson
X11_CONFIGURE_WITH= gtk
X11_USE= GNOME=gtk20
X11_USES= gnome
post-install:
@${ECHO_MSG} ""