aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/pmacct
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/pmacct')
-rw-r--r--net-mgmt/pmacct/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile
index f5638830ab43..1e2aecda9b84 100644
--- a/net-mgmt/pmacct/Makefile
+++ b/net-mgmt/pmacct/Makefile
@@ -22,7 +22,8 @@ OPTIONS= MYSQL "Enable MySQL support." Off \
PGSQL "Enable PostgreSQL support." Off \
SQLITE "Enable SQLite support." Off \
MMAP "Enable mmap(2) support." On \
- LAYER2 "Enable Layer-2 support: MAC Adresses and VLANs" On
+ LAYER2 "Enable Layer-2 support: MAC Adresses and VLANs" On \
+ IPV6 "Enable IPv6 support." On
.include <bsd.port.pre.mk>
@@ -68,6 +69,12 @@ CONFIGURE_ARGS+=--disable-l2
CONFIGURE_ARGS+=--enable-l2
.endif
+.if defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+=--disable-ipv6
+.else
+CONFIGURE_ARGS+=--enable-ipv6
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure