From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 5 09:50:49 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 166D416A420 for ; Thu, 5 Jan 2006 09:50:49 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C45843DB1 for ; Thu, 5 Jan 2006 09:50:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k059o4o4094268 for ; Thu, 5 Jan 2006 09:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k059o40R094267; Thu, 5 Jan 2006 09:50:04 GMT (envelope-from gnats) Resent-Date: Thu, 5 Jan 2006 09:50:04 GMT Resent-Message-Id: <200601050950.k059o40R094267@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, Geraint Edwards Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1012E16A41F for ; Thu, 5 Jan 2006 09:45:36 +0000 (GMT) (envelope-from gedge@cymru.serf.org) Received: from stretcher.cymru.serf.org (cpc4-cdif5-5-0-cust230.cdif.cable.ntl.com [82.22.35.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CB1043D58 for ; Thu, 5 Jan 2006 09:45:34 +0000 (GMT) (envelope-from gedge@cymru.serf.org) Received: from gedge by stretcher.cymru.serf.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1EuRgc-0004bu-2a for FreeBSD-gnats-submit@freebsd.org; Thu, 05 Jan 2006 09:45:34 +0000 Message-Id: Date: Thu, 05 Jan 2006 09:45:34 +0000 From: Geraint Edwards To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/91340: ircd-hybrid ssl broken, prefix documentation, halfops option 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: Thu, 05 Jan 2006 09:50:49 -0000 >Number: 91340 >Category: ports >Synopsis: ircd-hybrid ssl broken, prefix documentation, halfops option >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 05 09:50:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Geraint Edwards >Release: FreeBSD 5.4-RELEASE-p7 i386 >Organization: >Environment: System: FreeBSD stretcher 5.4-RELEASE-p7 FreeBSD 5.4-RELEASE-p7 #0: Fri Sep 23 16:34:21 BST 2005 root@stretcher:/usr/obj/usr/src/sys/GENERIC i386 >Description: (i) The Makefile states that PREFIX defaults to /usr/local/ircd - this is not true. (minor doc error). (ii) If SSL is chosen (WITH_OPENSSL), the Makefile passes --enable-openssl=${OPENSSLINC}/openssl to configure, but configure tests by appending include/openssl, so SSL option fails (because it cannot find headers). (iii) Add option for halfops (WITH_HALFOPS). >How-To-Repeat: (i) compare "make configure" and "make PREFIX=/usr/local/ircd configure". Or use install and compare where the binaries, ircd-hybrid.sh (etc) get put (not the same!). (ii) Try to get SSL enabled in configure with: make WITH_OPENSSL=1 configure Then use my patch (below) and run, for non-port openssl: make OPENSSLINC=/usr WITH_OPENSSL=1 configure Or, for the openssl port (untested): make OPENSSLINC=/usr/local WITH_OPENSSL=1 configure (iii) With the patch, use: make WITH_HALFOPS=1 configure >Fix: Here's the patch --- /usr/local/ports/irc/ircd-hybrid/Makefile.20060101010203 Thu Jan 5 09:20:16 2006 +++ Makefile Wed Jan 4 09:41:13 2006 @@ -28,7 +28,7 @@ # # User Configurable Variables # -# PREFIX - Where to install ircd-hybrid. Default is /usr/local/ircd +# PREFIX - Where to install ircd-hybrid. Default is /usr/local # WITH_OPENSSL - Enable openssl. Allows use of CHALLENGE and encrypted links. # WITHOUT_SHARED_MODULES - Disable shared modules. More secure but reduces flexability. # WITHOUT_ASSERT - Disable parts of the debugging code. @@ -42,7 +42,11 @@ .if defined(WITH_OPENSSL) USE_OPENSSL= yes -CONFIGURE_ARGS+= --enable-openssl=${OPENSSLINC}/openssl +CONFIGURE_ARGS+= --enable-openssl=${OPENSSLINC} +.endif + +.if defined(WITH_HALFOPS) +CONFIGURE_ARGS+= --enable-halfops .endif .if defined(WITHOUT_SHARED_MODULES) >Release-Note: >Audit-Trail: >Unformatted: