Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jun 2000 21:12:09 -0500 (CDT)
From:      hetzels@westbend.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19187: Cyrus-SASL Update
Message-ID:  <200006110212.VAA71441@wbiw01.westbend.net>

next in thread | raw e-mail | index | archive | help

>Number:         19187
>Category:       ports
>Synopsis:       Upgrade cyrus-sasl port to 1.5.21
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 10 19:20:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Scot W. Hetzel
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
West Bend Internet
>Environment:


>Description:

	Upgrade for cyrus-sasl port to 1.5.21.

	Fix detection of krb4 in the configure script so that kerberos4
	authentication method gets built.

	Removed the use of MAKE_EBONES, instead always build the kerberos4
	authentication method if /usr/lib/libkrb.a exists.

	Removed the use of echoing Port Documents to the PLIST if NOPORTDOCS
	wasn't defined.  In stead we use Satoshi PLIST_SUB method.

	Removed the use of grep -v library TMPPLIST > PLIST, instead using
	Satoshi PLIST_SUB method to comment out libgssapiv2 and libkerberos4
	depending on thier enabled/disabled status.

>How-To-Repeat:


	Execute "make configure -DMAKE_EBONES" and check the output of the
	configure script.  You will notice that Kerberos IV has been disabled.

>Fix:

	Apply the following patch. 

	NOTE: patch-af is no longer required.

diff -ruN cyrus-sasl.orig/Makefile cyrus-sasl/Makefile
--- cyrus-sasl.orig/Makefile	Fri Apr 21 03:18:15 2000
+++ cyrus-sasl/Makefile	Sat Jun 10 19:08:18 2000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	cyrus-sasl
-PORTVERSION=	1.5.15
+PORTVERSION=	1.5.21
 CATEGORIES=	security
 MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
 		http://people.FreeBSD.org/~stb/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ \
@@ -14,21 +14,24 @@
 
 MAINTAINER=	hetzels@westbend.net
 
-USE_OPENSSL=	NORSA
+USE_OPENSSL=	RSA
 
 .include <bsd.port.pre.mk>
 
-SASL_VER=	${PORTVERSION} #note, may not be needed any more
-
 Y2K=		http://asg.web.cmu.edu/cyrus/imapd/y2k.html
 
-MAN3=		sasl_client.3 sasl_server.3
-MAN8=		saslpasswd.8
+MAN3=		sasl.3 sasl_authorize_t.3 sasl_callbacks.3 sasl_checkpass.3 \
+		sasl_client_init.3 sasl_client_new.3 sasl_client_start.3 sasl_client_step.3 \
+		sasl_decode.3 sasl_done.3 sasl_encode.3 sasl_errstring.3 sasl_getopt_t.3 \
+		sasl_getpath_t.3 sasl_getprop.3 sasl_getsecret_t.3 sasl_getsimple_t.3 \
+		sasl_listmech.3 sasl_log_t.3 \
+		sasl_server_init.3 sasl_server_new.3 sasl_server_start.3 sasl_server_step.3 \
+		sasl_setprop.3 sasl_usererr.3
+MAN8=		sasldblistusers.8 saslpasswd.8
 
 USE_AUTOCONF=	YES
 USE_LIBTOOL=	YES
-CONFIGURE_ARGS=	--prefix=${PREFIX} \
-		--sysconfdir=${PREFIX}/etc \
+CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc \
 		--with-plugindir=${PREFIX}/lib/sasl \
 		--with-dbpath=${PREFIX}/etc/sasldb \
 		--includedir=${PREFIX}/include/sasl \
@@ -37,22 +40,55 @@
 		--with-pwcheck=/var/pwcheck \
 		--with-rc4=openssl
 
+# JavaSASL is currently Broken
+#JAVADIR=        jdk1.1.8
+#JAVALIBDIR=     ${PREFIX}/${JAVADIR}/lib/i386/green_threads/
+
+#.if defined(USE_JAVA) || exists(${LOCALBASE}/${JAVADIR}/bin/java)
+#BUILD_DEPENDS=  ${LOCALBASE}/${JAVADIR}/bin/java:${PORTSDIR}/java/jdk
+#CONFIGURE_ARGS+= --with-java \
+#		 --with-javabase=${LOCALBASE}/include
+#
+#CONFIGURE_ENV=	JAVAC="${LOCALBASE}/${JAVADIR}/bin/javac" \
+#		JAVAH="${LOCALBASE}/${JAVADIR}/bin/javah" \
+#		JAVADOC="${LOCALBASE}/${JAVADIR}/bin/javadoc"
+#.endif
+
 .if defined(KRB5_HOME) && exists(${KRB5_HOME})
 CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME}
+.else
+CONFIGURE_ARGS+= --disable-gssapi
+GSSAPI=	"@comment "
+.endif
+
+.if exists(/usr/lib/libkrb.a)
+CONFIGURE_ARGS+= --enable-krb4
+.else
+CONFIGURE_ARGS+= --disable-krb4
+EBONES=	"@comment "
 .endif
 
 CONFIGURE_ENV+=	LOCALBASE=${LOCALBASE} \
 		OPENSSLINC=${OPENSSLINC} \
 		OPENSSLLIB=${OPENSSLLIB}
 
-DOCS=	README README.Y2K TODO INSTALL ChangeLog NEWS
+DOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
 
-DOC2=	draft-newman-auth-scram-03.txt \
-	draft-newman-sasl-anon-00.txt \
-	draft-leach-digest-sasl-03.txt \
-	rfc1321.txt rfc2095.txt rfc2104.txt rfc2222.txt
+DOC2=	draft-leach-digest-sasl-05.txt \
+	draft-newman-auth-scram-03.txt \
+	rfc1321.txt rfc2095.txt rfc2104.txt \
+	rfc2222.txt rfc2245.txt
 
-HTDOCS=	index programming sysadmin
+HTDOCS=	gssapi index programming sysadmin
+
+.if defined(NOPORTDOCS)
+NODOCS=	"@comment "
+.endif
+
+PLIST_SUB=	PREFIX=${PREFIX} \
+		GSSAPI=${GSSAPI} \
+		EBONES=${EBONES} \
+		NOPORTDOCS=${NODOCS}
 
 # Create Cyrus user and group
 pre-install:
@@ -67,27 +103,25 @@
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${PREFIX}/share/doc/SASL/html
 .for file in ${DOCS}
-	@${ECHO} share/doc/SASL/${file} >>${TMPPLIST}
 	@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SASL
 .endfor
 .for file in ${DOC2}
-	@${ECHO} share/doc/SASL/${file} >>${TMPPLIST}
 	@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/SASL
 .endfor
 .for file in ${HTDOCS}
 	@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${PREFIX}/share/doc/SASL/html
-	@${ECHO} share/doc/SASL/html/${file}.html >>${TMPPLIST}
 .endfor
-	@${ECHO} "@dirrm share/doc/SASL/html" >>${TMPPLIST}
-	@${ECHO} "@dirrm share/doc/SASL" >>${TMPPLIST}
 .endif
-.if !defined(KRB5_HOME) || !exists(${KRB5_HOME})
-	@${GREP} -v libgssapiv2 ${TMPPLIST} > ${WRKDIR}/tmp.plist
-	@${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
-.endif
-.if !defined(MAKE_EBONES) || exists(/usr/lib/libkrb.a)
-	@${GREP} -v libkerberos4 ${TMPPLIST} > ${WRKDIR}/tmp.plist
-	@${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
+
+.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
+post-clean:
+	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+
+.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
+.elif ${PREFIX} != ${LOCALBASE}
+# Save PREFIX so that it can be used during make install
+.BEGIN:
+	@echo "PREFIX=	${PREFIX}" > ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
 .endif
 
 .include <bsd.port.post.mk>
diff -ruN cyrus-sasl.orig/files/md5 cyrus-sasl/files/md5
--- cyrus-sasl.orig/files/md5	Sun Jan 23 23:22:14 2000
+++ cyrus-sasl/files/md5	Sat Jun 10 12:34:22 2000
@@ -1 +1 @@
-MD5 (cyrus-sasl-1.5.15.tar.gz) = a1c0f6ef22f34b0a2366e7ec70bdf705
+MD5 (cyrus-sasl-1.5.21.tar.gz) = ada3a2b8ca3fd27982dcb6a97a65f4aa
diff -ruN cyrus-sasl.orig/patches/patch-ab cyrus-sasl/patches/patch-ab
--- cyrus-sasl.orig/patches/patch-ab	Mon Feb 28 15:36:02 2000
+++ cyrus-sasl/patches/patch-ab	Sat Jun 10 20:26:30 2000
@@ -1,6 +1,6 @@
---- configure.in.orig	Fri Jan 14 00:00:16 2000
-+++ configure.in	Mon Feb  7 15:14:50 2000
-@@ -49,8 +49,9 @@
+--- configure.in.orig	Mon May  8 12:51:13 2000
++++ configure.in	Sat Jun 10 20:23:18 2000
+@@ -66,8 +66,9 @@
  dnl check for -R, etc. switch
  CMU_GUESS_RUNPATH_SWITCH
  dnl let's just link against local.  otherwise we never find anything useful.
@@ -10,13 +10,26 @@
 +CMU_ADD_LIBPATH("${LOCALBASE}/lib")
 +CMU_ADD_LIBPATH("${OPENSSLLIB}")
  
- if test "$enable_java" = yes; then
-   AC_PATH_PROG(JAVAC, javac, no)
-@@ -222,6 +223,7 @@
-   AC_CHECK_LIB(crypt, crypt,
- 	       LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes,
- 	       cmu_have_crypt=no))
-+AC_SUBST(LIB_CRYPT)
+ AM_DISABLE_STATIC
  
- CMU_SOCKETS
+@@ -413,8 +414,9 @@
  
+   if test "$with_des" != no; then
+     AC_CHECK_HEADER(krb.h,
+-      AC_CHECK_LIB(krb, krb_mk_priv,:,
+-                   AC_WARN(No Kerberos V4 found); krb4=no,
++      AC_CHECK_LIB(krb, krb_mk_priv, COM_ERR="",
++                   AC_CHECK_LIB(krb, krb_mk_err, COM_ERR="-lcom_err",
++			AC_WARN(No Kerberos V4 found); krb4=no,-ldes -lcom_err),
+ 		   -ldes),
+       AC_WARN(No Kerberos V4 found); krb4=no)
+   else
+@@ -428,7 +430,7 @@
+   AC_MSG_RESULT(enabled)
+   SASL_MECHS="$SASL_MECHS libkerberos4.la"
+   AC_DEFINE(HAVE_KRB)
+-  SASL_KRB_LIB="-lkrb -ldes"
++  SASL_KRB_LIB="-lkrb -ldes $COM_ERR"
+   AC_SUBST(SASL_KRB_LIB)
+ else
+   AC_MSG_RESULT(disabled)
diff -ruN cyrus-sasl.orig/patches/patch-af cyrus-sasl/patches/patch-af
--- cyrus-sasl.orig/patches/patch-af	Wed Dec 29 01:06:25 1999
+++ cyrus-sasl/patches/patch-af	Wed Dec 31 18:00:00 1969
@@ -1,20 +0,0 @@
---- man/Makefile.in.orig	Tue Dec 28 17:21:26 1999
-+++ man/Makefile.in	Tue Dec 28 17:22:17 1999
-@@ -128,7 +128,7 @@
- mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
- CONFIG_HEADER = ../config.h
- CONFIG_CLEAN_FILES = 
--man1dir = $(mandir)/man1
-+man1dir = $(mandir)/man3
- MANS = $(man_MANS)
- 
- NROFF = nroff
-@@ -162,7 +162,7 @@
- 	  else file=$$i; fi; \
- 	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
- 	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
--	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
-+	  inst=`echo $$inst | sed '$(transform)'`.3; \
- 	  echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
- 	  $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
- 	done
diff -ruN cyrus-sasl.orig/pkg/PLIST cyrus-sasl/pkg/PLIST
--- cyrus-sasl.orig/pkg/PLIST	Fri Apr 21 03:18:16 2000
+++ cyrus-sasl/pkg/PLIST	Sat Jun 10 16:01:38 2000
@@ -1,4 +1,4 @@
-@unexec %D/etc/rc.d/pwcheck.sh stop ; echo " stopped."
+@unexec %D/etc/rc.d/pwcheck.sh stop ; echo "pwcheck stopped."
 etc/rc.d/pwcheck.sh
 include/sasl/hmac-md5.h
 include/sasl/md5.h
@@ -9,7 +9,7 @@
 @dirrm include/sasl
 lib/libsasl.a
 lib/libsasl.so
-lib/libsasl.so.7
+lib/libsasl.so.8
 @exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
 @unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
 lib/sasl/libanonymous.a
@@ -21,12 +21,12 @@
 lib/sasl/libdigestmd5.a
 lib/sasl/libdigestmd5.so
 lib/sasl/libdigestmd5.so.0
-lib/sasl/libgssapiv2.a
-lib/sasl/libgssapiv2.so
-lib/sasl/libgssapiv2.so.1
-lib/sasl/libkerberos4.a
-lib/sasl/libkerberos4.so
-lib/sasl/libkerberos4.so.1
+%%GSSAPI%%lib/sasl/libgssapiv2.a
+%%GSSAPI%%lib/sasl/libgssapiv2.so
+%%GSSAPI%%lib/sasl/libgssapiv2.so.1
+%%EBONES%%lib/sasl/libkerberos4.a
+%%EBONES%%lib/sasl/libkerberos4.so
+%%EBONES%%lib/sasl/libkerberos4.so.1
 lib/sasl/liblogin.a
 lib/sasl/liblogin.so
 lib/sasl/liblogin.so.0
@@ -34,12 +34,35 @@
 lib/sasl/libplain.so
 lib/sasl/libplain.so.1
 @dirrm lib/sasl
+sbin/sasldblistusers
 sbin/saslpasswd
 sbin/pwcheck
+%%NOPORTDOCS%%share/doc/SASL/AUTHORS
+%%NOPORTDOCS%%share/doc/SASL/COPYING
+%%NOPORTDOCS%%share/doc/SASL/ChangeLog
+%%NOPORTDOCS%%share/doc/SASL/INSTALL
+%%NOPORTDOCS%%share/doc/SASL/NEWS
+%%NOPORTDOCS%%share/doc/SASL/README
+%%NOPORTDOCS%%share/doc/SASL/TODO
+%%NOPORTDOCS%%share/doc/SASL/draft-leach-digest-sasl-05.txt
+%%NOPORTDOCS%%share/doc/SASL/draft-newman-auth-scram-03.txt
+%%NOPORTDOCS%%share/doc/SASL/rfc1321.txt
+%%NOPORTDOCS%%share/doc/SASL/rfc2095.txt
+%%NOPORTDOCS%%share/doc/SASL/rfc2104.txt
+%%NOPORTDOCS%%share/doc/SASL/rfc2222.txt
+%%NOPORTDOCS%%share/doc/SASL/rfc2245.txt
+%%NOPORTDOCS%%share/doc/SASL/html/gssapi.html
+%%NOPORTDOCS%%share/doc/SASL/html/index.html
+%%NOPORTDOCS%%share/doc/SASL/html/programming.html
+%%NOPORTDOCS%%share/doc/SASL/html/sysadmin.html
+%%NOPORTDOCS%%@dirrm share/doc/SASL/html
+%%NOPORTDOCS%%@dirrm share/doc/SASL
 @mode u=rwx,go=
-@exec mkdir /var/pwcheck
-@exec chown cyrus:cyrus /var/pwcheck
-@exec chmod go= /var/pwcheck
+@cwd /var
+@exec mkdir pwcheck
+@exec chown cyrus:cyrus pwcheck
+@exec chmod go= pwcheck
 @comment This file gets create by the pwcheck program
-@unexec rm -f /var/pwcheck/pwcheck
-@dirrm /var/pwcheck
+@unexec rm -f pwcheck/pwcheck
+@dirrm pwcheck
+@cwd %%PREFIX%%

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006110212.VAA71441>