ports/141287: Syslog-ng3 - Make OpenSSL support an OPTION to unbreak on < 7
Sean McAfee
smcafee at collaborativefusion.com
Tue Dec 8 16:10:05 UTC 2009
>Number: 141287
>Category: ports
>Synopsis: Syslog-ng3 - Make OpenSSL support an OPTION to unbreak on < 7
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 08 16:10:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Sean McAfee
>Release: 6.3 amd64
>Organization:
Collaborative Fusion, Inc.
>Environment:
FreeBSD 6.3-RELEASE-p12 (SMP) #3: Wed Sep 30 13:59:48 EDT 2009
>Description:
A port revision (3.0.3_2) enabled OpenSSL support for syslog-ng3, which required a subsequent revision (3.0.3_3) to mark it broken < 7.
Since there are a lot of useful features in syslog-ng3 other than SSL support, using this on 6.x clients is still desirable.
The attached patch makes SSL support an OPTION. Since TCP_WRAPPERS relied on environmental settings, I've added that as well.
>How-To-Repeat:
1. Attempt to build on 6.x (build fails)
2. Apply patch
3. make config
4. Attempt to rebuild (build succeeds)
>Fix:
Apply the following patch, then run make config.
Patch attached with submission follows:
diff -ruN sysutils/syslog-ng3_orig/Makefile sysutils/syslog-ng3/Makefile
--- sysutils/syslog-ng3_orig/Makefile 2009-09-22 23:53:46.000000000 -0400
+++ sysutils/syslog-ng3/Makefile 2009-12-08 10:53:25.000000000 -0500
@@ -16,6 +16,9 @@
MAINTAINER= cy at 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 @@
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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list