Skip to content

Commit

Permalink
mail/libesmtp: Update to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed May 7, 2023
1 parent 07b8363 commit b63c215
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 106 deletions.
44 changes: 11 additions & 33 deletions mail/libesmtp/Makefile
@@ -1,47 +1,25 @@
PORTNAME= libesmtp
PORTVERSION= 1.0.6
PORTREVISION= 2
PORTVERSION= 1.1.0
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://www.stafford.uklinux.net/libesmtp/ \
http://ftp.osuosl.org/pub/blfs/svn/l/ \
GENTOO

PATCH_SITES= https://gitweb.gentoo.org/repo/gentoo.git/plain/net-libs/libesmtp/files/ \
https://raw.githubusercontent.com/gentoo/gentoo/master/net-libs/libesmtp/files/
PATCHFILES= libesmtp-1.0.6-openssl-1.1-api-compatibility.patch:-p1

MAINTAINER= ports@FreeBSD.org
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library for posting electronic mail
WWW= http://www.stafford.uklinux.net/libesmtp/

LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING.LIB

USES= autoreconf cpe gmake libtool tar:bzip2
GNU_CONFIGURE= yes
# require-all-recipients (implied by enable-all) is required for Balsa
CONFIGURE_ARGS= --enable-all --disable-isoc
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CPE_VENDOR= libesmtp_project
LICENSE_FILE= ${WRKSRC}/LICENSE

OPTIONS_DEFINE= OPENSSL DEBUG DOCS EXAMPLES
OPTIONS_DEFAULT=OPENSSL
OPTIONS_SUB= yes
USES= cpe meson pkgconfig ssl

DEBUG_CONFIGURE_ENABLE= debug
OPENSSL_CONFIGURE_WITH= openssl=${OPENSSLBASE}
OPENSSL_USES= ssl
CFLAGS+= -D__BSD_VISIBLE
MESON_ARGS= --default-library=both -Dbdat=true -Detrn=true -Dlwres=disabled -Dpthreads=enabled -Dtls=enabled -Dxdg=true -Dxusr=true
USE_LDCONFIG= yes

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in AUTHORS ChangeLog NEWS Notes README TODO
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
CPE_VENDOR= libesmtp_project

post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
USE_GITHUB= yes
GH_PROJECT= libESMTP

.include <bsd.port.mk>
8 changes: 3 additions & 5 deletions mail/libesmtp/distinfo
@@ -1,5 +1,3 @@
TIMESTAMP = 1281387021
SHA256 (libesmtp-1.0.6.tar.bz2) = d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b
SIZE (libesmtp-1.0.6.tar.bz2) = 365506
SHA256 (libesmtp-1.0.6-openssl-1.1-api-compatibility.patch) = d10161f8b01c7865dcb948f8e65e61b8596752856953a605632d2c09dd41494c
SIZE (libesmtp-1.0.6-openssl-1.1-api-compatibility.patch) = 2243
TIMESTAMP = 1683227585
SHA256 (libesmtp-libESMTP-v1.1.0_GH0.tar.gz) = 32bc3614ca12d21c7d933f32d43410e8744b6f91fdca7732da9877a385e4e6c3
SIZE (libesmtp-libESMTP-v1.1.0_GH0.tar.gz) = 169134
18 changes: 18 additions & 0 deletions mail/libesmtp/files/patch-meson.build
@@ -0,0 +1,18 @@
--- meson.build.orig 2021-06-04 16:18:50 UTC
+++ meson.build
@@ -61,7 +61,6 @@ add_project_arguments(cc.get_supported_arguments(cflag
################################################################################
# dependencies
################################################################################
-dldep = cc.find_library('dl')
ssldep = dependency('openssl', version : '>=1.1.0', required : get_option('tls'))
threaddep = dependency('threads', required : get_option('pthreads'))

@@ -69,7 +68,6 @@ threaddep = dependency('threads', required : get_optio
lwresdep = cc.find_library('lwres', required : get_option('lwres'))

deps = [
- dldep,
ssldep,
threaddep,
lwresdep,
34 changes: 0 additions & 34 deletions mail/libesmtp/files/patch-ntlm_ntlmdes.c

This file was deleted.

18 changes: 5 additions & 13 deletions mail/libesmtp/pkg-descr
@@ -1,14 +1,6 @@
libESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
Exim. It may be used as part of a Mail User Agent (MUA) or another
program that must be able to post electronic mail but where mail
functionality is not the program's primary purpose. libESMTP is not
intended to be used as part of a program that implements a Mail
Transport Agent.
libESMTP is an SMTP client which manages submission of electronic mail via a
preconfigured Mail Transport Agent (MTA) such as Exim or Postfix.

libESMTP is an attempt to provide a robust implementation of the SMTP
protocol for use with mail clients. It is being developed as a reaction
to the experience of incomplete or buggy implementations of SMTP and
also to help remove the need for the installation of MTAs on
workstations which only need them to provide a sendmail command for a
mail client to post its mail.
libESMTP relieves the developer of the need to handle the complexity of
negotiating the SMTP protocol by providing a simple API. Additionally libESMTP
transparently handles many SMTP extensions including authentication.
27 changes: 6 additions & 21 deletions mail/libesmtp/pkg-plist
@@ -1,25 +1,10 @@
bin/libesmtp-config
include/auth-client.h
include/auth-plugin.h
include/libesmtp.h
lib/esmtp-plugins/sasl-cram-md5.a
lib/esmtp-plugins/sasl-cram-md5.so
lib/esmtp-plugins/sasl-login.a
lib/esmtp-plugins/sasl-login.so
%%OPENSSL%%lib/esmtp-plugins/sasl-ntlm.a
%%OPENSSL%%lib/esmtp-plugins/sasl-ntlm.so
lib/esmtp-plugins/sasl-plain.a
lib/esmtp-plugins/sasl-plain.so
lib/esmtp-plugins-6.2.0/sasl-crammd5.so
lib/esmtp-plugins-6.2.0/sasl-login.so
lib/esmtp-plugins-6.2.0/sasl-ntlm.so
lib/esmtp-plugins-6.2.0/sasl-plain.so
lib/libesmtp.a
lib/libesmtp.so
lib/libesmtp.so.6
lib/libesmtp.so.6.1.6
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/Notes
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mail-file.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test-mail
lib/libesmtp.so.6.2.0
libdata/pkgconfig/libesmtp-1.0.pc

0 comments on commit b63c215

Please sign in to comment.