aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/syslog-ng-devel
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2009-12-22 08:16:49 +0800
committercy <cy@FreeBSD.org>2009-12-22 08:16:49 +0800
commit3c8b20b4de391c4742825ca18dcee14b523efdff (patch)
treefc57796982e05d88e35a3e9dd72166cbcfba851b /sysutils/syslog-ng-devel
parent4a4659b2cea96592639d0c4b88f5778f1c5e1507 (diff)
downloadfreebsd-ports-gnome-3c8b20b4de391c4742825ca18dcee14b523efdff.tar.gz
freebsd-ports-gnome-3c8b20b4de391c4742825ca18dcee14b523efdff.tar.zst
freebsd-ports-gnome-3c8b20b4de391c4742825ca18dcee14b523efdff.zip
Make OpenSSL support an OPTION to unbreak on FreeBSD < 7.
Make TCP/Wrappers an menu option. PR: 141287 Submitted by: Sean McAfee <smcafee@collaborativefusion.com>
Diffstat (limited to 'sysutils/syslog-ng-devel')
-rw-r--r--sysutils/syslog-ng-devel/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/sysutils/syslog-ng-devel/Makefile b/sysutils/syslog-ng-devel/Makefile
index ba7a6d2ea80f..cdc993325e59 100644
--- a/sysutils/syslog-ng-devel/Makefile
+++ b/sysutils/syslog-ng-devel/Makefile
@@ -16,6 +16,9 @@ DISTFILES= $(PORTNAME)_$(PORTVERSION).tar.gz
MAINTAINER= cy@FreeBSD.org
COMMENT= A powerful syslogd replacement
+OPTIONS= SSL "Build with OpenSSL support (requires >= 7.x)" on \
+ TCP_WRAPPERS "Build with TCP Wrappers" off
+
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
LIB_DEPENDS= evtlog.0:${PORTSDIR}/sysutils/eventlog
@@ -35,19 +38,18 @@ LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \
--enable-dynamic-linking --with-libnet=${LOCALBASE}/bin
CONFIGURE_ENV= CFLAGS="`${LIBNET_CONFIG} --cflags` ${CFLAGS}" \
- LDFLAGS="`${LIBNET_CONFIG} --libs` ${LDFLAGS}" \
- OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" \
- OPENSSL_LIBS="${OPENSSL_LDFLAGS} -lcrypto -lssl"
+ LDFLAGS="`${LIBNET_CONFIG} --libs` ${LDFLAGS}"
+.if defined (WITH_SSL)
+CONFIGURE_ENV+= OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" \
+ OPENSSL_LIBS="${OPENSSL_LDFLAGS} -lcrypto -lssl"
+.endif
.if defined(WITH_TCP_WRAPPERS)
CONFIGURE_ARGS+=--enable-tcp-wrapper
.endif
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 700000
-BROKEN= Does not build under FreeBSD 6.4
-.endif
post-patch:
@${REINPLACE_CMD} -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/src/syslog-ng.h