ports/91340: ircd-hybrid ssl broken, prefix documentation, halfops option

Geraint Edwards gedge-oss at yadn.org
Thu Jan 5 09:50:49 UTC 2006

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 05 09:50:03 GMT 2006
>Originator:     Geraint Edwards
>Release:        FreeBSD 5.4-RELEASE-p7 i386
System: FreeBSD stretcher 5.4-RELEASE-p7 FreeBSD 5.4-RELEASE-p7 #0: Fri Sep 23 16:34:21 BST 2005 root at stretcher:/usr/obj/usr/src/sys/GENERIC i386

	(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).
	(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


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)
-CONFIGURE_ARGS+=	--enable-openssl=${OPENSSLINC}/openssl
+CONFIGURE_ARGS+=	--enable-openssl=${OPENSSLINC}
+.if defined(WITH_HALFOPS)
+CONFIGURE_ARGS+=	--enable-halfops

More information about the freebsd-ports-bugs mailing list