From owner-svn-ports-head@FreeBSD.ORG Sat Sep 7 12:07:50 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 50F08430; Sat, 7 Sep 2013 12:07:50 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3EB0E2CE9; Sat, 7 Sep 2013 12:07:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r87C7nab042065; Sat, 7 Sep 2013 12:07:49 GMT (envelope-from zi@svn.freebsd.org) Received: (from zi@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r87C7nT1042064; Sat, 7 Sep 2013 12:07:49 GMT (envelope-from zi@svn.freebsd.org) Message-Id: <201309071207.r87C7nT1042064@svn.freebsd.org> From: Ryan Steinmetz Date: Sat, 7 Sep 2013 12:07:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r326631 - head/net-mgmt/pmacct X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Sep 2013 12:07:50 -0000 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@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