aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/pmacct/Makefile12
-rw-r--r--net-mgmt/pmacct/distinfo6
-rw-r--r--net-mgmt/pmacct/pkg-plist1
3 files changed, 14 insertions, 5 deletions
diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile
index e00196f7ae9b..7f34939069a3 100644
--- a/net-mgmt/pmacct/Makefile
+++ b/net-mgmt/pmacct/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pmacct
-PORTVERSION= 0.9.4p1
+PORTVERSION= 0.9.5
CATEGORIES= net-mgmt
MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/
@@ -17,12 +17,12 @@ GNU_CONFIGURE= yes
GNUCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-WRKSRC= ${WRKDIR}/${PORTNAME}-0.9.4
USE_GETOPT_LONG=yes
USE_REINPLACE= yes
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
@@ -50,6 +50,14 @@ CONFIGURE_ARGS+= --disable-pgsql
PLIST_SUB+= WITH_PGSQL="@comment "
.endif
+.if defined(WITH_SQLITE)
+LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
+CONFIGURE_ARGS+=--enable-sqlite3 \
+ --with-sqlite3-includes=${LOCALBASE}/include
+.else
+CONFIGURE_ARGS+=--disable-sqlite3
+.endif
+
.if defined(WITHOUT_MMAP)
CONFIGURE_ARGS+=--disable-mmap
.else
diff --git a/net-mgmt/pmacct/distinfo b/net-mgmt/pmacct/distinfo
index d732c0038090..db37d861105f 100644
--- a/net-mgmt/pmacct/distinfo
+++ b/net-mgmt/pmacct/distinfo
@@ -1,3 +1,3 @@
-MD5 (pmacct-0.9.4p1.tar.gz) = a11e70b0474061bcd0f336c72fa79f74
-SHA256 (pmacct-0.9.4p1.tar.gz) = 06111542c7e222a5822e315fc7a0a8007c688480d270cdce051bd6e855d75ab8
-SIZE (pmacct-0.9.4p1.tar.gz) = 301266
+MD5 (pmacct-0.9.5.tar.gz) = b4780356c1285f518e934c2b3b55c8f8
+SHA256 (pmacct-0.9.5.tar.gz) = fd288d73f299852d11d20f2f85340dc878f11360ae0970464f72866162a9d635
+SIZE (pmacct-0.9.5.tar.gz) = 304129
diff --git a/net-mgmt/pmacct/pkg-plist b/net-mgmt/pmacct/pkg-plist
index 88feba6ec08f..1a95318dfe54 100644
--- a/net-mgmt/pmacct/pkg-plist
+++ b/net-mgmt/pmacct/pkg-plist
@@ -23,6 +23,7 @@ sbin/sfacctd
%%EXAMPLESDIR%%/pmacctd-sql.conf.example
%%EXAMPLESDIR%%/pmacctd-sql_v1.conf.example
%%EXAMPLESDIR%%/pmacctd-sql_v2.conf.example
+%%EXAMPLESDIR%%/pmacctd-sqlite3_v4.conf.example
%%EXAMPLESDIR%%/ports.lst.example
%%EXAMPLESDIR%%/pretag.map.example
%%EXAMPLESDIR%%/rrdtool-example.sh