aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2016-08-16 13:45:41 +0800
committercy <cy@FreeBSD.org>2016-08-16 13:45:41 +0800
commit64acbd61607452212368e288dc3f7c4e04280ddf (patch)
tree30bbde5f1401f5d2745e994c868c0b0c3b9ce653 /sysutils
parent565b2ebba7102b22ac37bd8d57f2fc22eb4610d5 (diff)
downloadfreebsd-ports-gnome-64acbd61607452212368e288dc3f7c4e04280ddf.tar.gz
freebsd-ports-gnome-64acbd61607452212368e288dc3f7c4e04280ddf.tar.zst
freebsd-ports-gnome-64acbd61607452212368e288dc3f7c4e04280ddf.zip
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.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/syslog-ng-devel/Makefile25
-rw-r--r--sysutils/syslog-ng-devel/pkg-plist1
2 files changed, 18 insertions, 8 deletions
diff --git a/sysutils/syslog-ng-devel/Makefile b/sysutils/syslog-ng-devel/Makefile
index cdb6fe32a625..d3462176d0e5 100644
--- a/sysutils/syslog-ng-devel/Makefile
+++ b/sysutils/syslog-ng-devel/Makefile
@@ -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-9]-[0-9]* \
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
diff --git a/sysutils/syslog-ng-devel/pkg-plist b/sysutils/syslog-ng-devel/pkg-plist
index fdce6b3091d0..5d52f8cc9663 100644
--- a/sysutils/syslog-ng-devel/pkg-plist
+++ b/sysutils/syslog-ng-devel/pkg-plist
@@ -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