Index: head/mail/esmtp/Makefile =================================================================== --- head/mail/esmtp/Makefile (revision 112549) +++ head/mail/esmtp/Makefile (revision 112550) @@ -1,61 +1,61 @@ # New ports collection makefile for: esmtp # Date created: 12.07.2003 # Whom: Kirill Ponomarew # # $FreeBSD$ # PORTNAME= esmtp PORTVERSION= 0.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= krion@FreeBSD.org COMMENT= Relay-only Mail Transfer Agent with sendmail compatible syntax LIB_DEPENDS= esmtp.6:${PORTSDIR}/mail/libesmtp USE_BZIP2= yes GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} USE_GETOPT_LONG= yes USE_OPENSSL= yes USE_REINPLACE= yes USE_BISON= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" DOC_FILES= README MAN1= esmtp.1 MAN5= esmtprc.5 post-patch: @${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|g' \ ${WRKSRC}/sample.esmtprc @${REINPLACE_CMD} -e 's|sendmail(1)|sendmail(8)|g ; \ s|/etc|${PREFIX}/etc|g' ${WRKSRC}/${PORTNAME}.1 @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' \ ${WRKSRC}/parser.c ${WRKSRC}/parser.y do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/esmtprc.5 ${PREFIX}/man/man5 ${INSTALL_DATA} ${WRKSRC}/sample.esmtprc \ ${PREFIX}/etc/esmtprc.sample @${ECHO} "------------------------------------------------------------" @${ECHO} "Sample of configuration file placed at" @${ECHO} "${PREFIX}/etc/esmtprc.sample" @${ECHO} "------------------------------------------------------------" post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for doc in ${DOC_FILES} @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} .endfor .endif .include Property changes on: head/mail/esmtp/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.6 \ No newline at end of property +1.7 \ No newline at end of property Index: head/mail/esmtp/files/patch-smtp.c =================================================================== --- head/mail/esmtp/files/patch-smtp.c (nonexistent) +++ head/mail/esmtp/files/patch-smtp.c (revision 112550) @@ -0,0 +1,33 @@ + +$FreeBSD$ + +--- smtp.c.orig Fri Nov 7 12:47:16 2003 ++++ smtp.c Tue Jun 29 15:27:29 2004 +@@ -426,9 +426,14 @@ + goto failure; + + /* Do what's needed at application level to use authentication. */ +- authctx = auth_create_context (); +- auth_set_mechanism_flags (authctx, AUTH_PLUGIN_PLAIN, 0); +- auth_set_interact_cb (authctx, authinteract, identity); ++ if(identity->user || identity->pass) ++ { ++ authctx = auth_create_context (); ++ auth_set_mechanism_flags (authctx, AUTH_PLUGIN_PLAIN, 0); ++ auth_set_interact_cb (authctx, authinteract, identity); ++ } ++ else ++ authctx = NULL; + + /* Use our callback for X.509 certificate passwords. If STARTTLS is not in + * use or disabled in configure, the following is harmless. +@@ -560,7 +565,8 @@ + fputc('\n', log_fp); + + smtp_destroy_session (session); +- auth_destroy_context (authctx); ++ if(authctx) ++ auth_destroy_context (authctx); + auth_client_exit (); + + return; Property changes on: head/mail/esmtp/files/patch-smtp.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property