svn commit: r326631 - head/net-mgmt/pmacct

Ryan Steinmetz zi at FreeBSD.org
Sat Sep 7 12:07:50 UTC 2013


Author: zi
Date: Sat Sep  7 12:07:49 2013
New Revision: 326631
URL: http://svnweb.freebsd.org/changeset/ports/326631

Log:
  - Add OPTIONS for MongoDB and GeoIP support
  
  Requested by:	softded at gmail.com

Modified:
  head/net-mgmt/pmacct/Makefile

Modified: head/net-mgmt/pmacct/Makefile
==============================================================================
--- head/net-mgmt/pmacct/Makefile	Sat Sep  7 11:58:02 2013	(r326630)
+++ head/net-mgmt/pmacct/Makefile	Sat Sep  7 12:07:49 2013	(r326631)
@@ -18,7 +18,8 @@ GNU_CONFIGURE=	yes
 CPPFLAGS+=	"-I${LOCALBASE}/include"
 LDFLAGS+=	"-L${LOCALBASE}/lib"
 
-OPTIONS_DEFINE=	MYSQL PGSQL SQLITE THREADS MMAP LAYER2 IPV6 SHARED DEBUG
+OPTIONS_DEFINE=	MYSQL PGSQL SQLITE THREADS MMAP LAYER2 IPV6 SHARED DEBUG \
+		MONGO GEOIP
 OPTIONS_DEFAULT=MMAP LAYER2 IPV6 SHARED
 
 SQLITE_DESC=	Enable SQLite support
@@ -92,6 +93,20 @@ CONFIGURE_ARGS+=--disable-so
 CONFIGURE_ARGS+=--enable-debug
 .endif
 
+.if ${PORT_OPTIONS:MMONGO}
+LIB_DEPENDS+=	libmongoc.so:${PORTSDIR}/devel/mongo-c-driver
+CONFIGURE_ARGS+=--enable-mongodb \
+		--with-mongodb-libs=${LOCALBASE}/lib \
+		--with-mongodb-includes=${LOCALBASE}/include
+.endif
+
+.if ${PORT_OPTIONS:MGEOIP}
+LIB_DEPENDS+=	GeoIP:${PORTSDIR}/net/GeoIP
+CONFIGURE_ARGS+=--enable-geoip \
+		--with-geoip-libs=${LOCALBASE}/lib \
+		--with-geoip-includes=${LOCALBASE}/include
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
 


More information about the svn-ports-all mailing list