Subject: pkg/25582: cyrus-salsauthd for Solaris needs OpenSSL
To: None <>
From: charlie allom <>
List: pkgsrc-bugs
Date: 05/16/2004 00:56:17
>Number:         25582
>Category:       pkg
>Synopsis:       patch for cyrus-sasl2authd for Solaris
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 15 15:01:00 UTC 2004
>Originator:     Charlie Allom
>Release:        SunOS 5.9
>Organization: - Melbourne, Australia
 PGP: 0x14AA7941 || finger
System: SunOS squeaky 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-2
Architecture: sparc
Machine: sun4u
	cyrus-salsauthd will fail to compile from the start:

===> Building for cyrus-saslauthd-2.1.18
/usr/pkg/bin/bmake  all-am
source='auth_getpwent.c' object='auth_getpwent.o' libtool=no  depfile='.deps/aut
h_getpwent.Po' tmpdepfile='.deps/auth_getpwent.TPo'  depmode=none /usr/pkg/bin/p
dksh ./config/depcomp  cc -DHAVE_CONFIG_H -DSASLAUTHD_CONF_FILE_DEFAULT=\"/usr/p
kg/etc/saslauthd.conf\" -I. -I. -I.. -I. -I. -I. -I./include -I./include -I./../
include   -I/usr/include -I/usr/include  -O -xO4 -xspace -xarch=v8plusa -xtarget
=ultra2 -I/usr/include -c `test -f 'auth_getpwent.c' || echo './'`auth_getpwent.
"auth_getpwent.c", line 48: cannot find include file: <des.h>

squeaky:/usr/src/pkgsrc/security/cyrus-sasl2$ pkgdiff ../cyrus-saslauthd/Makefile

--- ../cyrus-saslauthd/Makefile.orig    2004-05-14 14:26:49.668878000 +1000
+++ ../cyrus-saslauthd/Makefile
@@ -34,6 +34,14 @@ BUILD_DEFS+=         SASLSOCKETDIR
 CONFIGURE_ARGS+=       --with-saslauthd="${SASLSOCKETDIR}"

+.if ${OPSYS} == "SunOS" # no des.h so we MUST use OpenSSL
+CONFIGURE_ARGS+=    --with-openssl=${SSLBASE}
+CONFIGURE_ARGS+=    --with-ipctype=doors
+CFLAGS+=       "-I${BUILDLINK_PREFIX.cyrus-sasl2}/include/sasl"
+. include "../../security/cyrus-sasl2/"
+. include "../../security/openssl/"
 .if defined(USE_PAM)
 .  include "../../security/PAM/"
 CONFIGURE_ARGS+=       --with-pam=${BUILDLINK_PREFIX.pam}