From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Dec 8 16:10:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AD731065676 for ; Tue, 8 Dec 2009 16:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DB9E38FC1E for ; Tue, 8 Dec 2009 16:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB8GA4bu019766 for ; Tue, 8 Dec 2009 16:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB8GA4ft019765; Tue, 8 Dec 2009 16:10:04 GMT (envelope-from gnats) Resent-Date: Tue, 8 Dec 2009 16:10:04 GMT Resent-Message-Id: <200912081610.nB8GA4ft019765@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sean McAfee Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E15B1065693 for ; Tue, 8 Dec 2009 16:08:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1CE008FC0A for ; Tue, 8 Dec 2009 16:08:56 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB8G8t34085018 for ; Tue, 8 Dec 2009 16:08:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nB8G8tRf085017; Tue, 8 Dec 2009 16:08:55 GMT (envelope-from nobody) Message-Id: <200912081608.nB8G8tRf085017@www.freebsd.org> Date: Tue, 8 Dec 2009 16:08:55 GMT From: Sean McAfee To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/141287: Syslog-ng3 - Make OpenSSL support an OPTION to unbreak on < 7 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2009 16:10:05 -0000 >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@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 -.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: