aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nut
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2008-01-02 21:55:34 +0800
committerarved <arved@FreeBSD.org>2008-01-02 21:55:34 +0800
commitd4d716ebb76fd44b0763f2a56d3f92c665323580 (patch)
tree62a8ba1aad48aff77c6cae977598d0b40f934512 /sysutils/nut
parent210a39f21df6b6df5c2e0fe22dcaf640eb6ee1fd (diff)
downloadfreebsd-ports-gnome-d4d716ebb76fd44b0763f2a56d3f92c665323580.tar.gz
freebsd-ports-gnome-d4d716ebb76fd44b0763f2a56d3f92c665323580.tar.zst
freebsd-ports-gnome-d4d716ebb76fd44b0763f2a56d3f92c665323580.zip
Fix configure check for IPv6 detection, and add an IPV6 OPTION
PR: 117144 Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Diffstat (limited to 'sysutils/nut')
-rw-r--r--sysutils/nut/Makefile9
-rw-r--r--sysutils/nut/files/patch-m4-nut_check_ipv6.m413
2 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile
index c3dcd9404b9e..973ab7ac05b2 100644
--- a/sysutils/nut/Makefile
+++ b/sysutils/nut/Makefile
@@ -7,6 +7,7 @@
PORTNAME= nut
PORTVERSION= 2.2.0
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
@@ -15,6 +16,7 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= Joerg.Pulz@frm2.tum.de
COMMENT= Network UPS Tools
+USE_AUTOTOOLS= autoconf:261
GNU_CONFIGURE= yes
USE_GMAKE= yes
@@ -24,6 +26,7 @@ STATEDIR?= /var/db/nut
OPTIONS= USB "USB support" on \
SNMP "SNMP support" on \
+ IPV6 "IPV6 support" on \
LIBUPSCLIENT "Include the libupsclient library" off \
CGI "Web CGI interface" off \
@@ -102,6 +105,12 @@ CONFIGURE_ARGS+= --without-snmp
PLIST_SUB+= NUT_SNMP="@comment "
.endif
+.if !defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+= --with-ipv6
+.else
+CONFIGURE_ARGS+= --without-ipv6
+.endif
+
.if defined(WITH_LIBUPSCLIENT)
CONFIGURE_ARGS+= --with-lib --enable-pkg-config \
--with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
diff --git a/sysutils/nut/files/patch-m4-nut_check_ipv6.m4 b/sysutils/nut/files/patch-m4-nut_check_ipv6.m4
new file mode 100644
index 000000000000..fa12e98b55d3
--- /dev/null
+++ b/sysutils/nut/files/patch-m4-nut_check_ipv6.m4
@@ -0,0 +1,13 @@
+--- m4/nut_check_ipv6.m4.orig 2007-03-15 21:19:05.000000000 +0100
++++ m4/nut_check_ipv6.m4 2007-10-15 11:42:02.000000000 +0200
+@@ -22,7 +22,9 @@
+ struct in6_addr],
+ [:],
+ [nut_have_ipv6=no],
+- [#include <netdb.h>])
++ [#include <netdb.h>
++ #include <sys/socket.h>
++ #include <netinet/in.h>])
+
+ dnl AC_CHECK_MEMBERS([struct in6_addr.s6_addr32],
+ dnl [:],