Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2016 05:45:42 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420266 - head/sysutils/syslog-ng-devel
Message-ID:  <201608160545.u7G5jgQw029216@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Tue Aug 16 05:45:41 2016
New Revision: 420266
URL: https://svnweb.freebsd.org/changeset/ports/420266

Log:
  Fix build due to missing dependencies and false detection of mongodb.
  
  Change reminder for when this port replaces PORTREVISION with
  DISTVERSION when next beta is available. This is to avoid a PORTEPOCH
  bump.

Modified:
  head/sysutils/syslog-ng-devel/Makefile
  head/sysutils/syslog-ng-devel/pkg-plist

Modified: head/sysutils/syslog-ng-devel/Makefile
==============================================================================
--- head/sysutils/syslog-ng-devel/Makefile	Mon Aug 15 20:32:24 2016	(r420265)
+++ head/sysutils/syslog-ng-devel/Makefile	Tue Aug 16 05:45:41 2016	(r420266)
@@ -2,13 +2,12 @@
 # $FreeBSD$
 
 PORTNAME=	syslog-ng
-# XXX Should be: PORTVERSION=	3.8.0.b2
-# XXX update at 3.8.1.
+# XXX As of 3.8.1beta1, replace PORTVERSION with DISTVERSION=3.8.1beta1
 PORTVERSION=	3.8.0b2
+PORTREVISION=	1
 PKGNAMESUFFIX=	-devel
 CATEGORIES=	sysutils
-# XXX Should be: DISTVERSION=	${PORTVERSION:S/.a/alpha/:S/.b/beta/:S/.r/rc/}
-# XXX update at 3.8.1.
+# XXX As of 3.8.1beta1, delete the following line.
 DISTVERSION=	${PORTVERSION:S/a/alpha/:S/b/beta/:S/r/rc/}
 DISTFILES=	syslog-ng-${DISTVERSION}.tar.gz
 MASTER_SITES=	https://github.com/balabit/syslog-ng/releases/download/syslog-ng-${DISTVERSION}/
@@ -19,7 +18,9 @@ COMMENT=	Powerful syslogd replacement
 BROKEN_powerpc64=	Does not build
 
 LIB_DEPENDS=	libevtlog.so:sysutils/eventlog \
-		libpcre.so:devel/pcre
+		libpcre.so:devel/pcre \
+		libcurl.so:ftp/curl \
+		libuuid.so:misc/e2fsprogs-libuuid
 
 CONFLICTS?=	syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \
 		syslog-ng[0-9][0-9]-[0-9]* \
@@ -27,7 +28,7 @@ CONFLICTS?=	syslog-ng-[0-9]* syslog-ng[0
 WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
 MAKE_JOBS_UNSAFE=	yes
-OPTIONS_DEFINE=	TCP_WRAPPERS SQL SPOOF IPV6 SMTP JSON GEOIP DOCS REDIS JAVA PYTHON
+OPTIONS_DEFINE=	TCP_WRAPPERS SQL SPOOF IPV6 SMTP JSON GEOIP DOCS REDIS JAVA PYTHON MONGO
 OPTIONS_DEFAULT=	JSON
 TCP_WRAPPERS_DESC=	Build with TCP Wrappers
 SQL_DESC=		Build with database (libdbi) support
@@ -40,7 +41,8 @@ REDIS_DESC=		Build with Redis support
 JAVA_DESC=		Build with Java support (and modules, like Elastic)
 PYTHON_DESC=		Build with Python 2.7 support
 
-USES=		autoreconf:build gmake libtool pathfix pkgconfig ssl
+USES=		autoreconf:build gmake libtool pathfix pkgconfig ssl \
+		gettext-runtime
 USE_LDCONFIG=	yes
 USE_RC_SUBR=	syslog-ng
 GNU_CONFIGURE=	yes
@@ -114,6 +116,15 @@ PLIST_FILES+=		lib/syslog-ng/libafsql.so
 CONFIGURE_ARGS+=	--disable-sql
 .endif
 
+.if ${PORT_OPTIONS:MMONGO}
+BUILD_DEPENDS+=		mongo:databases/mongodb
+RUN_DEPENDS+=		mongo:databases/mongodb
+CONFIGURE_ARGS+=	--enable-mongodb
+PLIST_FILES+=		lib/syslog-ng/libafmongodb.so
+.else
+CONFIGURE_ARGS+=	--disable-mongodb
+.endif
+
 .if ${PORT_OPTIONS:MJSON}
 LIB_DEPENDS+=		libjson-c.so:devel/json-c
 CONFIGURE_ARGS+=	--enable-json

Modified: head/sysutils/syslog-ng-devel/pkg-plist
==============================================================================
--- head/sysutils/syslog-ng-devel/pkg-plist	Mon Aug 15 20:32:24 2016	(r420265)
+++ head/sysutils/syslog-ng-devel/pkg-plist	Tue Aug 16 05:45:41 2016	(r420266)
@@ -220,7 +220,6 @@ lib/syslog-ng/libaffile.so
 lib/syslog-ng/libafprog.so
 lib/syslog-ng/libafuser.so
 lib/syslog-ng/libafamqp.so
-lib/syslog-ng/libafmongodb.so
 lib/syslog-ng/libcsvparser.so
 lib/syslog-ng/libconfgen.so
 lib/syslog-ng/libcurl.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608160545.u7G5jgQw029216>