View | Details | Raw Unified | Return to bug 117144
Collapse All | Expand All

(-)Makefile (+9 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	nut
8
PORTNAME=	nut
9
PORTVERSION=	2.2.0
9
PORTVERSION=	2.2.0
10
PORTREVISION=	1
10
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
11
MASTER_SITES=	http://www.networkupstools.org/source/${PORTVERSION:R}/
12
MASTER_SITES=	http://www.networkupstools.org/source/${PORTVERSION:R}/
12
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
13
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
Lines 15-20 Link Here
15
MAINTAINER=	Joerg.Pulz@frm2.tum.de
16
MAINTAINER=	Joerg.Pulz@frm2.tum.de
16
COMMENT=	Network UPS Tools
17
COMMENT=	Network UPS Tools
17
18
19
USE_AUTOTOOLS=	autoconf:261
18
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
19
USE_GMAKE=	yes
21
USE_GMAKE=	yes
20
22
Lines 24-29 Link Here
24
26
25
OPTIONS=	USB		"USB support"	on \
27
OPTIONS=	USB		"USB support"	on \
26
		SNMP		"SNMP support"	on \
28
		SNMP		"SNMP support"	on \
29
		IPV6		"IPV6 support"	on \
27
		LIBUPSCLIENT	"Include the libupsclient library"	off \
30
		LIBUPSCLIENT	"Include the libupsclient library"	off \
28
		CGI		"Web CGI interface"	off \
31
		CGI		"Web CGI interface"	off \
29
32
Lines 102-107 Link Here
102
PLIST_SUB+=	NUT_SNMP="@comment "
105
PLIST_SUB+=	NUT_SNMP="@comment "
103
.endif
106
.endif
104
107
108
.if !defined(WITHOUT_IPV6)
109
CONFIGURE_ARGS+=	--with-ipv6
110
.else
111
CONFIGURE_ARGS+=	--without-ipv6
112
.endif
113
105
.if defined(WITH_LIBUPSCLIENT)
114
.if defined(WITH_LIBUPSCLIENT)
106
CONFIGURE_ARGS+=	--with-lib --enable-pkg-config \
115
CONFIGURE_ARGS+=	--with-lib --enable-pkg-config \
107
			--with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
116
			--with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
(-)files/patch-m4-nut_check_ipv6.m4 (+13 lines)
Added Link Here
1
--- m4/nut_check_ipv6.m4.orig	2007-03-15 21:19:05.000000000 +0100
2
+++ m4/nut_check_ipv6.m4	2007-10-15 11:42:02.000000000 +0200
3
@@ -22,7 +22,9 @@
4
 		   struct in6_addr],
5
                   [:],
6
                   [nut_have_ipv6=no],
7
-		  [#include <netdb.h>])
8
+		  [#include <netdb.h>
9
+		   #include <sys/socket.h>
10
+		   #include <netinet/in.h>])
11
 
12
 dnl AC_CHECK_MEMBERS([struct in6_addr.s6_addr32],
13
 dnl               [:],

Return to bug 117144