From 3c9ecc4516917c2fb49723612d44fae8b362d752 Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Tue, 15 Jul 2003 08:50:52 +0000 Subject: Add esmtp 0.4.1, esmtp is a user configurable relay-only Mail Transfer Agent (MTA) with a sendmail compatible syntax. It's based on libESMTP supporting the AUTH (including the CRAM-MD5 and NTLM SASL mechanisms) and the StartTLS SMTP extensions. These are the esmtp features: * fully sendmail command line compatible, * supports the AUTH SMTP extension, with the CRAM-MD5 and * NTLM SASL mechanisms, * support the StartTLS SMTP extension, * requires no administration privileges, * individual user configuration, * does not receive mail, expand aliases or manage a queue. PR: 54491 Submitted by: Kirill Ponomarew --- mail/esmtp/Makefile | 62 ++++++++++++++++++++++++++++++++++++++++ mail/esmtp/distinfo | 1 + mail/esmtp/files/patch-esmtprc.5 | 13 +++++++++ mail/esmtp/files/patch-lexer.c | 12 ++++++++ mail/esmtp/pkg-descr | 16 +++++++++++ mail/esmtp/pkg-plist | 4 +++ 6 files changed, 108 insertions(+) create mode 100644 mail/esmtp/Makefile create mode 100644 mail/esmtp/distinfo create mode 100644 mail/esmtp/files/patch-esmtprc.5 create mode 100644 mail/esmtp/files/patch-lexer.c create mode 100644 mail/esmtp/pkg-descr create mode 100644 mail/esmtp/pkg-plist (limited to 'mail/esmtp') diff --git a/mail/esmtp/Makefile b/mail/esmtp/Makefile new file mode 100644 index 000000000000..b5362212a11b --- /dev/null +++ b/mail/esmtp/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: esmtp +# Date created: 12.07.2003 +# Whom: Kirill Ponomarew +# +# $FreeBSD$ +# + +PORTNAME= esmtp +PORTVERSION= 0.4.1 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ponomarew@oberon.net +COMMENT= Relay-only Mail Transfer Agent with sendmail compatible syntax + +LIB_DEPENDS= esmtp.6:${PORTSDIR}/mail/libesmtp + +USE_BZIP2= yes +GNU_CONFIGURE= yes +USE_GETOPT_LONG= yes +USE_OPENSSL= yes +USE_REINPLACE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" + +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 diff --git a/mail/esmtp/distinfo b/mail/esmtp/distinfo new file mode 100644 index 000000000000..218ddc5a0c50 --- /dev/null +++ b/mail/esmtp/distinfo @@ -0,0 +1 @@ +MD5 (esmtp-0.4.1.tar.bz2) = 57b124dc6b2fffac4d2a7283a1a7f771 diff --git a/mail/esmtp/files/patch-esmtprc.5 b/mail/esmtp/files/patch-esmtprc.5 new file mode 100644 index 000000000000..03e77453bde0 --- /dev/null +++ b/mail/esmtp/files/patch-esmtprc.5 @@ -0,0 +1,13 @@ +--- esmtprc.5.orig Tue Jul 15 07:57:07 2003 ++++ esmtprc.5 Tue Jul 15 07:58:05 2003 +@@ -96,8 +96,8 @@ + place a %T. The mail message's \fBFrom\fR address will be inserted where you + place an %F. + +-Some common MDAs are "/usr/bin/procmail -d %T", +-"/usr/bin/deliver" and "/usr/lib/mail.local %T". ++Some common MDAs are "/usr/local/bin/procmail -d %T" ++and "/usr/libexec/mail.local %T". + + .SH SEE ALSO + esmtp(1) diff --git a/mail/esmtp/files/patch-lexer.c b/mail/esmtp/files/patch-lexer.c new file mode 100644 index 000000000000..1b0f2d1935e3 --- /dev/null +++ b/mail/esmtp/files/patch-lexer.c @@ -0,0 +1,12 @@ +--- lexer.c.orig Sat Jul 12 09:26:44 2003 ++++ lexer.c Sat Jul 12 09:27:04 2003 +@@ -20,7 +20,9 @@ + #include + #include + #include ++#ifdef HAVE_STDINT_H + #include /* May break IA64 test-noansi-r */ ++#endif + + /* end standard C headers. */ + diff --git a/mail/esmtp/pkg-descr b/mail/esmtp/pkg-descr new file mode 100644 index 000000000000..54bca43a7030 --- /dev/null +++ b/mail/esmtp/pkg-descr @@ -0,0 +1,16 @@ +esmtp is a user configurable relay-only Mail Transfer Agent +(MTA) with a sendmail compatible syntax. It's based on libESMTP +supporting the AUTH (including the CRAM-MD5 and NTLM SASL +mechanisms) and the StartTLS SMTP extensions. + +These are the esmtp features: + + * fully sendmail command line compatible, + * supports the AUTH SMTP extension, with the CRAM-MD5 and + * NTLM SASL mechanisms, + * support the StartTLS SMTP extension, + * requires no administration privileges, + * individual user configuration, + * does not receive mail, expand aliases or manage a queue. + +WWW: http://esmtp.sourceforge.net diff --git a/mail/esmtp/pkg-plist b/mail/esmtp/pkg-plist new file mode 100644 index 000000000000..91f4b9c225eb --- /dev/null +++ b/mail/esmtp/pkg-plist @@ -0,0 +1,4 @@ +bin/esmtp +etc/esmtprc.sample +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit v1.2.3