pkgsrc/mail/msmtp/Makefile

40 lines
967 B
Makefile
Raw Normal View History

2020-03-08 17:47:24 +01:00
# $NetBSD: Makefile,v 1.79 2020/03/08 16:50:24 wiz Exp $
DISTNAME= msmtp-1.8.7
2020-03-08 17:47:24 +01:00
PKGREVISION= 2
Changes 1.2.4: - Changed return code in case of authentication error from EX_DATAERR to EX_NOPERM - Changed return code in case of missing/invalid configuration file or nonexistent account from EX_NOINPUT/EX_DATAERR to EX_CONFIG - Test return value of localtime(3) in msmtp_log() - Windows specific code in net.c: moved translation of error code from WSAStartup() from net_lib_init() to wsa_strerror() - OpenSSL specific code in tls.c: minor cleanup in openssl_io_error() - Always keep control of the format string in calls to merror(). (There were four cases where the result of strerror() was passed as the format string in smtp.c.) - Clarified usage instructions of merror() in merror.h - Check at initialization time whether support for a manually requested authentication mechanism is compiled, *before* establishing a network connection. This required a change from smtp_auth_caps() to the (equally trivial) smtp_authmech_is_supported() function. Made the output of both "not compiled in" messages (TLS and auth mech) consistent. The return code for these error conditions is EX_UNAVAILABLE now. - Make the output of -h/--help and -v/--version consistent with the GNU utilities by including copyright and no-warranty notice (version) and a short description and the bug report address (--help). - Add missing declarations of optarg and optind to msmtp.c, needed for getopt() handling. No compiler complained so far, though. - Fixed stupid error in smtp.c that prevented the detection of output errors when sending the RCPT TO command (highly unlikely to occur). - Cosmetic change in -v/--version output that avoids lines longer than 80 characters - Fixed some man page typos - Fixed typos in conffile.c error message - Fixed typo in tls.c error message (OpenSSL code only) - Changed error messages: "bla [blub]" -> "bla: blub" - Improved some TLS error messages - Corrected short description in man page, README and code comments - Updated README.dos
2005-01-19 16:30:25 +01:00
CATEGORIES= mail
msmtp: Update mail/msmtp to 1.8.0 pkgsrc changes: - Update HOMEPAGE and MASTER_SITES - Remove inet6 option (it was actually a no-op) - Adjust libidn dependency to libidn2 per 1.8.0 change - Cleanup the options.mk a bit: no need to add pkg-config to USE_TOOLS, it was already needed as tool and remove all --with-*-prefix= because pkg-config is used for that Changes: Version 1.8.0: - A minimal SMTP server called msmtpd was added that listens on the local host and pipes mails to msmtp (or another program). It is intended to be used with system services that cannot be configured to call msmtp directly. You can disable it with the configure option --without-msmtpd. - Using OpenSSL is discouraged and may not be supported in the future. Please use GnuTLS instead. The reasons are explained here: https://marlam.de/msmtp/news/openssl-discouraged/ - As using GNU SASL is most likely unnecessary, it is disabled by default now. Since everything uses TLS nowadays and thus can use PLAIN authentication, you really only need it for GSSAPI. - If your system requires a library for IDN support, libidn2 is now used instead of the older libidn. - The CRAM-MD5 authentication method is marked as obsolete / insecure and will not be chosen automatically anymore. - The passwordeval command does not require the password to be terminated by a new line character anymore. - The new logfile_time_format command allows to customize log file time stamps. - Builtin default port numbers are now used instead of consulting /etc/services. - Support for DJGPP and for systems lacking vasprintf(), mkstemp(), or tmpfile() is removed. Version 1.6.8: - Add --source-ip option and source_ip command to bind the outgoing connection to a specific source IP address. - Enable SNI for TLS Version 1.6.7: - Add support for ~/.config/msmtp/config as configuration file - Add network timeout handling on Windows - Fix command line handling of SHA256 TLS fingerprints - Fix SIGPIPE handling (affects at least Mac OS X) - Add french translation, and update german translation
2018-09-19 11:26:45 +02:00
MASTER_SITES= https://marlam.de/msmtp/releases/
Update mail/msmtp to version 1.6.1, from Leonardo Taccari in PR 49820. pkgsrc changes: - gnome-keyring option has changed to secret option to reflect the upstream change. For more information please read the changelog below. Changes: Version 1.6.1: - The new configure option --with-tls replaces --with-ssl. - A new configure option --disable-gai-idn was added. Version 1.6.0: - Support for SOCKS proxies was added. This allows msmtp to be used with Tor. - GNOME Keyring support now uses libsecret instead of libgnome-keyring. It is now documented how to use secret-tool to manage passwords for msmtp; the obsolete msmtp-gnome-tool script is removed. - Configuration file security is now only checked if the file actually contains secrets such as passwords. (If you still store passwords in the configuration file, consider using the passwordeval command or a key ring instead.) - The GSSAPI authentication method is not chosen automatically anymore, you have to request it manually if you really want to use it. - From: and Date: headers are now added to mails if necessary, for compatibility with sendmail, postfix, exim, and other MTAs. This can be disabled with the add_missing_from_header and add_missing_date_header commands. - Libidn is not required for IDN support anymore on systems where getaddrinfo() supports the AI_IDN flag and the GnuTLS version is >= 3.4.0. - The new remove_bcc_headers command replaces the old keepbcc command (but the old command is still supported for compatibility). - SSLv3 is disabled, and the obsolete tls_force_sslv3 command and --tls-force-sslv3 option have no effect anymore.
2015-04-08 07:31:59 +02:00
EXTRACT_SUFX= .tar.xz
Changes 1.2.4: - Changed return code in case of authentication error from EX_DATAERR to EX_NOPERM - Changed return code in case of missing/invalid configuration file or nonexistent account from EX_NOINPUT/EX_DATAERR to EX_CONFIG - Test return value of localtime(3) in msmtp_log() - Windows specific code in net.c: moved translation of error code from WSAStartup() from net_lib_init() to wsa_strerror() - OpenSSL specific code in tls.c: minor cleanup in openssl_io_error() - Always keep control of the format string in calls to merror(). (There were four cases where the result of strerror() was passed as the format string in smtp.c.) - Clarified usage instructions of merror() in merror.h - Check at initialization time whether support for a manually requested authentication mechanism is compiled, *before* establishing a network connection. This required a change from smtp_auth_caps() to the (equally trivial) smtp_authmech_is_supported() function. Made the output of both "not compiled in" messages (TLS and auth mech) consistent. The return code for these error conditions is EX_UNAVAILABLE now. - Make the output of -h/--help and -v/--version consistent with the GNU utilities by including copyright and no-warranty notice (version) and a short description and the bug report address (--help). - Add missing declarations of optarg and optind to msmtp.c, needed for getopt() handling. No compiler complained so far, though. - Fixed stupid error in smtp.c that prevented the detection of output errors when sending the RCPT TO command (highly unlikely to occur). - Cosmetic change in -v/--version output that avoids lines longer than 80 characters - Fixed some man page typos - Fixed typos in conffile.c error message - Fixed typo in tls.c error message (OpenSSL code only) - Changed error messages: "bla [blub]" -> "bla: blub" - Improved some TLS error messages - Corrected short description in man page, README and code comments - Updated README.dos
2005-01-19 16:30:25 +01:00
MAINTAINER= bcv@hub3.net
msmtp: Update mail/msmtp to 1.8.0 pkgsrc changes: - Update HOMEPAGE and MASTER_SITES - Remove inet6 option (it was actually a no-op) - Adjust libidn dependency to libidn2 per 1.8.0 change - Cleanup the options.mk a bit: no need to add pkg-config to USE_TOOLS, it was already needed as tool and remove all --with-*-prefix= because pkg-config is used for that Changes: Version 1.8.0: - A minimal SMTP server called msmtpd was added that listens on the local host and pipes mails to msmtp (or another program). It is intended to be used with system services that cannot be configured to call msmtp directly. You can disable it with the configure option --without-msmtpd. - Using OpenSSL is discouraged and may not be supported in the future. Please use GnuTLS instead. The reasons are explained here: https://marlam.de/msmtp/news/openssl-discouraged/ - As using GNU SASL is most likely unnecessary, it is disabled by default now. Since everything uses TLS nowadays and thus can use PLAIN authentication, you really only need it for GSSAPI. - If your system requires a library for IDN support, libidn2 is now used instead of the older libidn. - The CRAM-MD5 authentication method is marked as obsolete / insecure and will not be chosen automatically anymore. - The passwordeval command does not require the password to be terminated by a new line character anymore. - The new logfile_time_format command allows to customize log file time stamps. - Builtin default port numbers are now used instead of consulting /etc/services. - Support for DJGPP and for systems lacking vasprintf(), mkstemp(), or tmpfile() is removed. Version 1.6.8: - Add --source-ip option and source_ip command to bind the outgoing connection to a specific source IP address. - Enable SNI for TLS Version 1.6.7: - Add support for ~/.config/msmtp/config as configuration file - Add network timeout handling on Windows - Fix command line handling of SHA256 TLS fingerprints - Fix SIGPIPE handling (affects at least Mac OS X) - Add french translation, and update german translation
2018-09-19 11:26:45 +02:00
HOMEPAGE= https://marlam.de/msmtp/
Changes 1.2.4: - Changed return code in case of authentication error from EX_DATAERR to EX_NOPERM - Changed return code in case of missing/invalid configuration file or nonexistent account from EX_NOINPUT/EX_DATAERR to EX_CONFIG - Test return value of localtime(3) in msmtp_log() - Windows specific code in net.c: moved translation of error code from WSAStartup() from net_lib_init() to wsa_strerror() - OpenSSL specific code in tls.c: minor cleanup in openssl_io_error() - Always keep control of the format string in calls to merror(). (There were four cases where the result of strerror() was passed as the format string in smtp.c.) - Clarified usage instructions of merror() in merror.h - Check at initialization time whether support for a manually requested authentication mechanism is compiled, *before* establishing a network connection. This required a change from smtp_auth_caps() to the (equally trivial) smtp_authmech_is_supported() function. Made the output of both "not compiled in" messages (TLS and auth mech) consistent. The return code for these error conditions is EX_UNAVAILABLE now. - Make the output of -h/--help and -v/--version consistent with the GNU utilities by including copyright and no-warranty notice (version) and a short description and the bug report address (--help). - Add missing declarations of optarg and optind to msmtp.c, needed for getopt() handling. No compiler complained so far, though. - Fixed stupid error in smtp.c that prevented the detection of output errors when sending the RCPT TO command (highly unlikely to occur). - Cosmetic change in -v/--version output that avoids lines longer than 80 characters - Fixed some man page typos - Fixed typos in conffile.c error message - Fixed typo in tls.c error message (OpenSSL code only) - Changed error messages: "bla [blub]" -> "bla: blub" - Improved some TLS error messages - Corrected short description in man page, README and code comments - Updated README.dos
2005-01-19 16:30:25 +01:00
COMMENT= SMTP plugin for MUAs
LICENSE= gnu-gpl-v3
Update to 1.4.16. This is from Leonardo Taccari via PR 39337. Okayed by maintainer (private email to me). Adds DESTDIR support. Changes from ChangeLog: Version 1.4.16: - Changed all scripts to '#!/usr/bin/env bash' instead of '#!/bin/sh' or '#!/bin/bash', because they use bash features that are not available in POSIX /bin/sh and because bash might not live in /bin, e.g. on BSD systems. This is a quick fix for Debian bug #489635. - Accept both 250 and 251 in return of the RCPT TO command, as required by RFC 2821 sections 4.3.2 and 3.4. Reported and fixed by Matthias Bernhardt. Thanks! - Fix scripts/msmtpqueue/msmtp-runqueue.sh. An error made while applying a patch accidently broke it. Reported by Thomas Weber. Thanks! Version 1.4.15: - Added the new tls_crl_file configuration command and the corresponding --tls-crl-file option. - Added the new tls_min_dh_prime_bits configuration command and the corresponding --tls-min-dh-prime-bits option. This closes Debian bug #440344. - Added the new tls_priorities configuration command and the corresponding --tls-priorities option. - Gnulib upate to 2008-06-02. Use getpass-gnu instead of getpass module. - Add msmtpq scripts by Chris Gianniotis to the scripts directory. Suggest them as a replacement in the README of the msmtpqueue scripts. - Do not let getpass() read from stdin, because we read the mail from there. Reported by Karol Lewandowski. Thanks! - Updated the set_sendmail script by Gautam Iyer. Thanks! - Return EX_TEMPFAIL instead of EX_DATAERR in case of 4xx replies to the MAIL FROM, RCPT TO and DATA commands. Reported by Kent Vinther Friis. Thanks! Version 1.4.14: - Add support for the SMTPSERVER and EMAIL environment variables. These variables are used when no other configuration is available. Suggested by Jari Aalto. - Add the --read-envelope-from option, which extracts the envelope from address from the From: header. - Fix a typo in the man page. - Add support for Resent-* headers to the -t/--read-recipients option. Fixes Debian bug #464474, reported by Tim Abbott. - Buffer read operations also when TLS/SSL is active. Fixes performance problems with GnuTLS, reported by Dimitrios Apostolou for mpop. - Fixed a potential problem with VPATH builds. - Updated gnulib to 2008-02-26. Imported havelib module. - Always log smtpstatus and smtpmsg, even in case of success. Suggested by Bruno De Fraine. - Use locale-independent c_toupper() instead of toupper() to avoid problems with the tr_TR.UTF-8 locale. Reported by S.Çağlar Onur. Thanks! - Updated gnulib to 2008-02-15. Imported c-ctype module. - Support for the Max OS X keychain was added by Jay Soffian. Thanks a lot! - Fix network input/output timeouts for W32. Bug reported and fixed by Shoorick for mpop. Thanks!
2008-08-12 18:39:56 +02:00
GNU_CONFIGURE= yes
Update msmtp to 1.4.13. Based on patch provided by L. Schmidt in PR 36939. Version 1.4.13: - Added the set_sendmail.sh script by Gautam Iyer to the new scripts subdirectory. - Added the msmtpqueue scripts to the new scripts subdirectory. - Make the search of an account by the envelope from address case insensitive. Problem reported and fixed by Brandon Philips. - Update the license of the source code to GPLv3 or later, and change the license of the documentation to the GFDLv1.2 or later. - Gnulib update to 2007-07-15. Version 1.4.12: - Handle the special envelope from address MAILER-DAEMON correctly: send "MAIL FROM:<>" instead of "MAIL FROM:<MAILER-DAEMON>". Reported by Andre Egerer. - Improve the documentation for TLS vs. SSL. Thanks to Carlos Martin Nieto for suggestions. - Add documentation on how to find the right CA certificate for tls_trust_file. Thanks to Bryan Kam for suggestions. Version 1.4.11: - Require either tls_trust_file or tls_certcheck=off for TLS sessions, so that msmtp is not silently vulnerable to man-in-the-middle attacks. - Do not use NTLM authentication automatically anymore unless TLS is active. NTLM is not an open standard and must therefore be considered broken. - Gnulib update 2007-04-07. - Move build-aux files to separate directory build-aux. - Provide a hstrerror() function for systems that lack getaddrinfo(), so that gethostbyname() must be used instead, and do not provide hstrerror() themselves. Needed for Solaris 2.6. Reported and tested by Chris Green. Version 1.4.10: - Updated copyright info to 2007. - Gnulib update to 2007-01-10. - From mpop: Switch to autoconf-2.61 and automake-1.10, to avoid problems with configure trying to run "sh /usr/bin/install" where /usr/bin/install is not a shell script on NetBSD. Reported by Jeremy C. Reed. - From mpop: Remove the obsolete "extern int errno;" declaration. It does not conform to POSIX and causes trouble. Thanks to Jeremy C. Reed for the patch. - Added AC_SYS_LARGEFILE to configure.ac, for large file support. Removed the unnecessary AC_C_CONST and AC_HEADER_STDC. Version 1.4.9: - Remove gnulib module nanosleep. This fixes more build problems. Version 1.4.8: - Gnulib update. There are no local changes anymore. - Do not use nanosleep() on W32 anymore. Use Sleep() instead. Do not use nanosleep() on DJGPP anymore. Use usleep() instead. - Update gettext files to gettext-0.16. - Improved the configure check for the OpenSSL libraries. This fixes a build failure on Mac OS X. Reported by Michael Williams, who also tested the fix. Thanks! - Fix a bug in string_replace(). This bug did not affect msmtp. - Gnulib update. Removes the initialization of pkgdata_DATA from gnulib/Makefile.am, thanks to a fix by Bruno Haible. 'make install' will no longer create an empty directory $(pkgdatadir) anymore (the default for $(pkgdatadir) is /usr/local/share/msmtp). Reported by Roman Bogorodskiy. Version 1.4.7: - Gnulib update. The nanosleep module still differs from the official gnulib source. - Disable SSLv2 because it has known flaws. This only affects the OpenSSL version because GNU TLS does not implement SSLv2. - Add new command tls_force_sslv3 and option --tls-force-sslv3 to force TLS/SSL version SSLv3. This is needed to use SSL with some old and broken servers. Closes Debian bug #374610, reported by Marko Makela. Thanks to Julien Louis for tracking this problem down and testing the patch. - Changed detection of libgnutls so that it works with version >= 1.2.0 again. - Improvements for the build system: - Quote arguments of M4 macros. - Use AC_LIB_HAVE_LINKFLAGS to detect libraries. Do not use *-config scripts or pkg-config. This avoids problems that are reported in this thread: http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/ 1610/focus=1610 . - Use HAVE_LIB* macros instead of USE_* or others, for consistency. - Link with LIB_NANOSLEEP as determined by the gnulib nanosleep module. This fixes build problems on Solaris. Reported by Daniel Rechsteiner. Thanks! - Update to gettext-0.15. - W32/DJGPP: Assure that all files are opened in binary mode. This seems to also apply to socket connections, therefore it is necessary. - Fix error message typo in check_account(). - DJGPP port: include missing header <fcntl.h> in msmtp.c - Sync from mpop: - Adapt --version output to the latest GNU conventions. - Clean up #includes. - Renamed os_env.[ch] to tools.[ch]. - Replace __MINGW__ with W32_NATIVE in os_env.h. Version 1.4.6: - Updated README. - Minor documentation improvements. - Do not set a default port for LMTP, because none is officially defined. - Update gettext files to gettext-0.14.5. - Another gnulib update, with the additional sys_select module and a patch to the nanosleep module. See the mailing list gnulib-bugs for these patches that are not (yet?) part of the official gnulib. - Gnulib update. - Improved --help text output. - Improved error messages when logging to a logfile fails. - Sync from mpop: - Enable network connection timeouts on DJGPP/Watt32. Thanks to Gisle Vanem for pointing out that this works just like it does with UNIX. The DJGPP/Watt32 port is now on par with the UNIX port. - Update README.dos. - Don't check configuration file permissions on Cygwin. - Renamed README.win32 to README.w32. Updated README.w32 and README.dos. - Replace '#ifdef _WIN32' with '#ifdef W32_NATIVE', where W32_NATIVE is defined in config.h if the following is true: '#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__'. The reason is that Cygwin defines _WIN32 nowadays, but we want the UNIX API on that platform. - Include config.h in list.c. - Fix warnings emitted for configure.ac by autoreconf. - lock_file(): If another process holds a lock on the file, then wait 1/10 second instead of 1 second before the next try. - Gnulib update. Added nanosleep module. - Improve error handling for file locking: differentiate between timeouts and other errors. - Improve checks for libraries in configure.ac. The ./configure options have changed! See INSTALL for more info. - Improve --version output. - Add (optional) support for Internationalized Domain Names (IDN) via GNU Libidn. - Initialize TLS only if pop3_connect() succeeded. - Move SSL_LIBS and GSASL_LIBS into LIBS; do not put them in Makefile.am. - Fix memory leak in GNU SASL variant of pop3_auth(). (This change applies to smtp_auth(), GNU SASL variant.) - Fix memory leak in GnuTLS variant of tls_cert_info_get(). - pop3_auth(), GNU SASL variant: - Check if authentication data is complete before trying to start authentication. - Never call password_callback() when no user name is given. (This change applies to smtp_auth(), GNU SASL variant.) - Prevent a double free if an invalid argument to the auth command is given. - Prevent a double free if an invalid argument to --auth is given. - Replace crypto.[ch] with gnulib hmac-md5 module. - Gnulib update. Add hmac-md5 module. - net.c, tls.c: allow all network operations to be interrupted with CTRL+C, and print an appropriate error message in this case. (This change does not affect msmtp.) - tls.c: if an error occurs, clean up *after* building the error message. This fixes a potential segfault in the OpenSSL version of tls_start(). - net_open_socket(): don't let net_close_socket() clobber errno. - net_open_socket(): print correct error message if getaddrinfo() returns EAI_SYSTEM. - Fixed comment in net.h. - net_get_canonical_hostname(): Only call freeaddrinfo() if getaddrinfo() succeeded. Reported and fixed by Raul Nunez de Arenas Coronado. (This change does not affect msmtp.) - Update copyright message. - Gnulib update. - Minor Win32 portability/cross-compilation updates. - configure.ac: Rely on PKG_CHECK_MODULES to find GSASL, do not fall back to manual detection, to prevent using an incompatible version of GSASL. Problem reported by Jari Aalto. - Gnulibs sysexit_.h now defines EX_OK; there's no need to use a locally modified version anymore. - Use a locally modified version of gnulibs sysexit_.h that defines EX_OK to 0, since the gnulib maintainers apparently won't fix this file. Include the sysexits.h header after all other system headers to override previous definitions of EX_OK on systems that use EX_OK for other purposes. This is needed on Interix, reported by Ben Collver.
2007-09-08 10:05:22 +02:00
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config msgfmt xgettext
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS.Darwin+= --with-macosx-keyring
EGDIR= ${PREFIX}/share/examples/msmtp
CONF_FILES= ${EGDIR}/msmtprc-user.example \
${PKG_SYSCONFDIR}/msmtprc
Update msmtp to 1.4.13. Based on patch provided by L. Schmidt in PR 36939. Version 1.4.13: - Added the set_sendmail.sh script by Gautam Iyer to the new scripts subdirectory. - Added the msmtpqueue scripts to the new scripts subdirectory. - Make the search of an account by the envelope from address case insensitive. Problem reported and fixed by Brandon Philips. - Update the license of the source code to GPLv3 or later, and change the license of the documentation to the GFDLv1.2 or later. - Gnulib update to 2007-07-15. Version 1.4.12: - Handle the special envelope from address MAILER-DAEMON correctly: send "MAIL FROM:<>" instead of "MAIL FROM:<MAILER-DAEMON>". Reported by Andre Egerer. - Improve the documentation for TLS vs. SSL. Thanks to Carlos Martin Nieto for suggestions. - Add documentation on how to find the right CA certificate for tls_trust_file. Thanks to Bryan Kam for suggestions. Version 1.4.11: - Require either tls_trust_file or tls_certcheck=off for TLS sessions, so that msmtp is not silently vulnerable to man-in-the-middle attacks. - Do not use NTLM authentication automatically anymore unless TLS is active. NTLM is not an open standard and must therefore be considered broken. - Gnulib update 2007-04-07. - Move build-aux files to separate directory build-aux. - Provide a hstrerror() function for systems that lack getaddrinfo(), so that gethostbyname() must be used instead, and do not provide hstrerror() themselves. Needed for Solaris 2.6. Reported and tested by Chris Green. Version 1.4.10: - Updated copyright info to 2007. - Gnulib update to 2007-01-10. - From mpop: Switch to autoconf-2.61 and automake-1.10, to avoid problems with configure trying to run "sh /usr/bin/install" where /usr/bin/install is not a shell script on NetBSD. Reported by Jeremy C. Reed. - From mpop: Remove the obsolete "extern int errno;" declaration. It does not conform to POSIX and causes trouble. Thanks to Jeremy C. Reed for the patch. - Added AC_SYS_LARGEFILE to configure.ac, for large file support. Removed the unnecessary AC_C_CONST and AC_HEADER_STDC. Version 1.4.9: - Remove gnulib module nanosleep. This fixes more build problems. Version 1.4.8: - Gnulib update. There are no local changes anymore. - Do not use nanosleep() on W32 anymore. Use Sleep() instead. Do not use nanosleep() on DJGPP anymore. Use usleep() instead. - Update gettext files to gettext-0.16. - Improved the configure check for the OpenSSL libraries. This fixes a build failure on Mac OS X. Reported by Michael Williams, who also tested the fix. Thanks! - Fix a bug in string_replace(). This bug did not affect msmtp. - Gnulib update. Removes the initialization of pkgdata_DATA from gnulib/Makefile.am, thanks to a fix by Bruno Haible. 'make install' will no longer create an empty directory $(pkgdatadir) anymore (the default for $(pkgdatadir) is /usr/local/share/msmtp). Reported by Roman Bogorodskiy. Version 1.4.7: - Gnulib update. The nanosleep module still differs from the official gnulib source. - Disable SSLv2 because it has known flaws. This only affects the OpenSSL version because GNU TLS does not implement SSLv2. - Add new command tls_force_sslv3 and option --tls-force-sslv3 to force TLS/SSL version SSLv3. This is needed to use SSL with some old and broken servers. Closes Debian bug #374610, reported by Marko Makela. Thanks to Julien Louis for tracking this problem down and testing the patch. - Changed detection of libgnutls so that it works with version >= 1.2.0 again. - Improvements for the build system: - Quote arguments of M4 macros. - Use AC_LIB_HAVE_LINKFLAGS to detect libraries. Do not use *-config scripts or pkg-config. This avoids problems that are reported in this thread: http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/ 1610/focus=1610 . - Use HAVE_LIB* macros instead of USE_* or others, for consistency. - Link with LIB_NANOSLEEP as determined by the gnulib nanosleep module. This fixes build problems on Solaris. Reported by Daniel Rechsteiner. Thanks! - Update to gettext-0.15. - W32/DJGPP: Assure that all files are opened in binary mode. This seems to also apply to socket connections, therefore it is necessary. - Fix error message typo in check_account(). - DJGPP port: include missing header <fcntl.h> in msmtp.c - Sync from mpop: - Adapt --version output to the latest GNU conventions. - Clean up #includes. - Renamed os_env.[ch] to tools.[ch]. - Replace __MINGW__ with W32_NATIVE in os_env.h. Version 1.4.6: - Updated README. - Minor documentation improvements. - Do not set a default port for LMTP, because none is officially defined. - Update gettext files to gettext-0.14.5. - Another gnulib update, with the additional sys_select module and a patch to the nanosleep module. See the mailing list gnulib-bugs for these patches that are not (yet?) part of the official gnulib. - Gnulib update. - Improved --help text output. - Improved error messages when logging to a logfile fails. - Sync from mpop: - Enable network connection timeouts on DJGPP/Watt32. Thanks to Gisle Vanem for pointing out that this works just like it does with UNIX. The DJGPP/Watt32 port is now on par with the UNIX port. - Update README.dos. - Don't check configuration file permissions on Cygwin. - Renamed README.win32 to README.w32. Updated README.w32 and README.dos. - Replace '#ifdef _WIN32' with '#ifdef W32_NATIVE', where W32_NATIVE is defined in config.h if the following is true: '#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__'. The reason is that Cygwin defines _WIN32 nowadays, but we want the UNIX API on that platform. - Include config.h in list.c. - Fix warnings emitted for configure.ac by autoreconf. - lock_file(): If another process holds a lock on the file, then wait 1/10 second instead of 1 second before the next try. - Gnulib update. Added nanosleep module. - Improve error handling for file locking: differentiate between timeouts and other errors. - Improve checks for libraries in configure.ac. The ./configure options have changed! See INSTALL for more info. - Improve --version output. - Add (optional) support for Internationalized Domain Names (IDN) via GNU Libidn. - Initialize TLS only if pop3_connect() succeeded. - Move SSL_LIBS and GSASL_LIBS into LIBS; do not put them in Makefile.am. - Fix memory leak in GNU SASL variant of pop3_auth(). (This change applies to smtp_auth(), GNU SASL variant.) - Fix memory leak in GnuTLS variant of tls_cert_info_get(). - pop3_auth(), GNU SASL variant: - Check if authentication data is complete before trying to start authentication. - Never call password_callback() when no user name is given. (This change applies to smtp_auth(), GNU SASL variant.) - Prevent a double free if an invalid argument to the auth command is given. - Prevent a double free if an invalid argument to --auth is given. - Replace crypto.[ch] with gnulib hmac-md5 module. - Gnulib update. Add hmac-md5 module. - net.c, tls.c: allow all network operations to be interrupted with CTRL+C, and print an appropriate error message in this case. (This change does not affect msmtp.) - tls.c: if an error occurs, clean up *after* building the error message. This fixes a potential segfault in the OpenSSL version of tls_start(). - net_open_socket(): don't let net_close_socket() clobber errno. - net_open_socket(): print correct error message if getaddrinfo() returns EAI_SYSTEM. - Fixed comment in net.h. - net_get_canonical_hostname(): Only call freeaddrinfo() if getaddrinfo() succeeded. Reported and fixed by Raul Nunez de Arenas Coronado. (This change does not affect msmtp.) - Update copyright message. - Gnulib update. - Minor Win32 portability/cross-compilation updates. - configure.ac: Rely on PKG_CHECK_MODULES to find GSASL, do not fall back to manual detection, to prevent using an incompatible version of GSASL. Problem reported by Jari Aalto. - Gnulibs sysexit_.h now defines EX_OK; there's no need to use a locally modified version anymore. - Use a locally modified version of gnulibs sysexit_.h that defines EX_OK to 0, since the gnulib maintainers apparently won't fix this file. Include the sysexits.h header after all other system headers to override previous definitions of EX_OK on systems that use EX_OK for other purposes. This is needed on Interix, reported by Ben Collver.
2007-09-08 10:05:22 +02:00
INFO_FILES= yes
PLIST_VARS+= scripts
2016-02-25 16:00:50 +01:00
CPPFLAGS.Interix+= -D__WINSOCK
2018-09-29 23:42:13 +02:00
LDFLAGS.SunOS+= -lsocket -lnsl
Update to 1.2.3, provided by Sergio Jimenez in PR 26975. Changes since 1.0.0: Version 1.2.3: - IPv6 support on Windows systems - The configuration file supports all commands and arguments related to TLS and authentication, even if TLS and/or GNU SASL support is not compiled in - The GNU SASL library is not required to support DIGEST-MD5 and NTLM anymore. This means you can now use the packaged versions of the library from Gentoo or Debian sarge. - You can use the -v/--version option to find out which authentication methods are supported. Version 1.2.2: - Enhancements to the logfile command: - All available information is now written to the logfile (new fields: mailsize=..., smtpmsg='...', errormsg='...'). - Logging to standard output is possible by using "logfile -" Version 1.2.1: - No new features. Version 1.2.0: - This version can be compiled without TLS/SSL support; use --disable-ssl if you really want that. - Read the entries for versions 1.1.x for more changes since the last stable version 1.0.0. Version 1.1.3: - New option -i for compatibility with mail(1). - New 'logfile' command; see man page for details. Version 1.1.2: - No user visible changes. Version 1.1.1: - The tls_nostarttls command now sets the default port to 465 (ssmtp). Version 1.1.0: - Support for SMTP command pipelining. On high latency networks, this may increase transmission speed, especially when sending to many recipients. - The short option for --file, -f, has changed to -F - A new option --from/-f is available to set the envelope from address. - A new option --serverinfo/-S is available to print information about the capabilities and limitations of an SMTP server
2004-09-19 15:02:00 +02:00
.include "options.mk"
.PHONY: install-msmtp-scripts
post-install: install-msmtp-scripts
Update to 1.4.16. This is from Leonardo Taccari via PR 39337. Okayed by maintainer (private email to me). Adds DESTDIR support. Changes from ChangeLog: Version 1.4.16: - Changed all scripts to '#!/usr/bin/env bash' instead of '#!/bin/sh' or '#!/bin/bash', because they use bash features that are not available in POSIX /bin/sh and because bash might not live in /bin, e.g. on BSD systems. This is a quick fix for Debian bug #489635. - Accept both 250 and 251 in return of the RCPT TO command, as required by RFC 2821 sections 4.3.2 and 3.4. Reported and fixed by Matthias Bernhardt. Thanks! - Fix scripts/msmtpqueue/msmtp-runqueue.sh. An error made while applying a patch accidently broke it. Reported by Thomas Weber. Thanks! Version 1.4.15: - Added the new tls_crl_file configuration command and the corresponding --tls-crl-file option. - Added the new tls_min_dh_prime_bits configuration command and the corresponding --tls-min-dh-prime-bits option. This closes Debian bug #440344. - Added the new tls_priorities configuration command and the corresponding --tls-priorities option. - Gnulib upate to 2008-06-02. Use getpass-gnu instead of getpass module. - Add msmtpq scripts by Chris Gianniotis to the scripts directory. Suggest them as a replacement in the README of the msmtpqueue scripts. - Do not let getpass() read from stdin, because we read the mail from there. Reported by Karol Lewandowski. Thanks! - Updated the set_sendmail script by Gautam Iyer. Thanks! - Return EX_TEMPFAIL instead of EX_DATAERR in case of 4xx replies to the MAIL FROM, RCPT TO and DATA commands. Reported by Kent Vinther Friis. Thanks! Version 1.4.14: - Add support for the SMTPSERVER and EMAIL environment variables. These variables are used when no other configuration is available. Suggested by Jari Aalto. - Add the --read-envelope-from option, which extracts the envelope from address from the From: header. - Fix a typo in the man page. - Add support for Resent-* headers to the -t/--read-recipients option. Fixes Debian bug #464474, reported by Tim Abbott. - Buffer read operations also when TLS/SSL is active. Fixes performance problems with GnuTLS, reported by Dimitrios Apostolou for mpop. - Fixed a potential problem with VPATH builds. - Updated gnulib to 2008-02-26. Imported havelib module. - Always log smtpstatus and smtpmsg, even in case of success. Suggested by Bruno De Fraine. - Use locale-independent c_toupper() instead of toupper() to avoid problems with the tr_TR.UTF-8 locale. Reported by S.Çağlar Onur. Thanks! - Updated gnulib to 2008-02-15. Imported c-ctype module. - Support for the Max OS X keychain was added by Jay Soffian. Thanks a lot! - Fix network input/output timeouts for W32. Bug reported and fixed by Shoorick for mpop. Thanks!
2008-08-12 18:39:56 +02:00
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/msmtprc-user.example ${DESTDIR}${EGDIR}
Update msmtp to 1.4.13. Based on patch provided by L. Schmidt in PR 36939. Version 1.4.13: - Added the set_sendmail.sh script by Gautam Iyer to the new scripts subdirectory. - Added the msmtpqueue scripts to the new scripts subdirectory. - Make the search of an account by the envelope from address case insensitive. Problem reported and fixed by Brandon Philips. - Update the license of the source code to GPLv3 or later, and change the license of the documentation to the GFDLv1.2 or later. - Gnulib update to 2007-07-15. Version 1.4.12: - Handle the special envelope from address MAILER-DAEMON correctly: send "MAIL FROM:<>" instead of "MAIL FROM:<MAILER-DAEMON>". Reported by Andre Egerer. - Improve the documentation for TLS vs. SSL. Thanks to Carlos Martin Nieto for suggestions. - Add documentation on how to find the right CA certificate for tls_trust_file. Thanks to Bryan Kam for suggestions. Version 1.4.11: - Require either tls_trust_file or tls_certcheck=off for TLS sessions, so that msmtp is not silently vulnerable to man-in-the-middle attacks. - Do not use NTLM authentication automatically anymore unless TLS is active. NTLM is not an open standard and must therefore be considered broken. - Gnulib update 2007-04-07. - Move build-aux files to separate directory build-aux. - Provide a hstrerror() function for systems that lack getaddrinfo(), so that gethostbyname() must be used instead, and do not provide hstrerror() themselves. Needed for Solaris 2.6. Reported and tested by Chris Green. Version 1.4.10: - Updated copyright info to 2007. - Gnulib update to 2007-01-10. - From mpop: Switch to autoconf-2.61 and automake-1.10, to avoid problems with configure trying to run "sh /usr/bin/install" where /usr/bin/install is not a shell script on NetBSD. Reported by Jeremy C. Reed. - From mpop: Remove the obsolete "extern int errno;" declaration. It does not conform to POSIX and causes trouble. Thanks to Jeremy C. Reed for the patch. - Added AC_SYS_LARGEFILE to configure.ac, for large file support. Removed the unnecessary AC_C_CONST and AC_HEADER_STDC. Version 1.4.9: - Remove gnulib module nanosleep. This fixes more build problems. Version 1.4.8: - Gnulib update. There are no local changes anymore. - Do not use nanosleep() on W32 anymore. Use Sleep() instead. Do not use nanosleep() on DJGPP anymore. Use usleep() instead. - Update gettext files to gettext-0.16. - Improved the configure check for the OpenSSL libraries. This fixes a build failure on Mac OS X. Reported by Michael Williams, who also tested the fix. Thanks! - Fix a bug in string_replace(). This bug did not affect msmtp. - Gnulib update. Removes the initialization of pkgdata_DATA from gnulib/Makefile.am, thanks to a fix by Bruno Haible. 'make install' will no longer create an empty directory $(pkgdatadir) anymore (the default for $(pkgdatadir) is /usr/local/share/msmtp). Reported by Roman Bogorodskiy. Version 1.4.7: - Gnulib update. The nanosleep module still differs from the official gnulib source. - Disable SSLv2 because it has known flaws. This only affects the OpenSSL version because GNU TLS does not implement SSLv2. - Add new command tls_force_sslv3 and option --tls-force-sslv3 to force TLS/SSL version SSLv3. This is needed to use SSL with some old and broken servers. Closes Debian bug #374610, reported by Marko Makela. Thanks to Julien Louis for tracking this problem down and testing the patch. - Changed detection of libgnutls so that it works with version >= 1.2.0 again. - Improvements for the build system: - Quote arguments of M4 macros. - Use AC_LIB_HAVE_LINKFLAGS to detect libraries. Do not use *-config scripts or pkg-config. This avoids problems that are reported in this thread: http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/ 1610/focus=1610 . - Use HAVE_LIB* macros instead of USE_* or others, for consistency. - Link with LIB_NANOSLEEP as determined by the gnulib nanosleep module. This fixes build problems on Solaris. Reported by Daniel Rechsteiner. Thanks! - Update to gettext-0.15. - W32/DJGPP: Assure that all files are opened in binary mode. This seems to also apply to socket connections, therefore it is necessary. - Fix error message typo in check_account(). - DJGPP port: include missing header <fcntl.h> in msmtp.c - Sync from mpop: - Adapt --version output to the latest GNU conventions. - Clean up #includes. - Renamed os_env.[ch] to tools.[ch]. - Replace __MINGW__ with W32_NATIVE in os_env.h. Version 1.4.6: - Updated README. - Minor documentation improvements. - Do not set a default port for LMTP, because none is officially defined. - Update gettext files to gettext-0.14.5. - Another gnulib update, with the additional sys_select module and a patch to the nanosleep module. See the mailing list gnulib-bugs for these patches that are not (yet?) part of the official gnulib. - Gnulib update. - Improved --help text output. - Improved error messages when logging to a logfile fails. - Sync from mpop: - Enable network connection timeouts on DJGPP/Watt32. Thanks to Gisle Vanem for pointing out that this works just like it does with UNIX. The DJGPP/Watt32 port is now on par with the UNIX port. - Update README.dos. - Don't check configuration file permissions on Cygwin. - Renamed README.win32 to README.w32. Updated README.w32 and README.dos. - Replace '#ifdef _WIN32' with '#ifdef W32_NATIVE', where W32_NATIVE is defined in config.h if the following is true: '#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__'. The reason is that Cygwin defines _WIN32 nowadays, but we want the UNIX API on that platform. - Include config.h in list.c. - Fix warnings emitted for configure.ac by autoreconf. - lock_file(): If another process holds a lock on the file, then wait 1/10 second instead of 1 second before the next try. - Gnulib update. Added nanosleep module. - Improve error handling for file locking: differentiate between timeouts and other errors. - Improve checks for libraries in configure.ac. The ./configure options have changed! See INSTALL for more info. - Improve --version output. - Add (optional) support for Internationalized Domain Names (IDN) via GNU Libidn. - Initialize TLS only if pop3_connect() succeeded. - Move SSL_LIBS and GSASL_LIBS into LIBS; do not put them in Makefile.am. - Fix memory leak in GNU SASL variant of pop3_auth(). (This change applies to smtp_auth(), GNU SASL variant.) - Fix memory leak in GnuTLS variant of tls_cert_info_get(). - pop3_auth(), GNU SASL variant: - Check if authentication data is complete before trying to start authentication. - Never call password_callback() when no user name is given. (This change applies to smtp_auth(), GNU SASL variant.) - Prevent a double free if an invalid argument to the auth command is given. - Prevent a double free if an invalid argument to --auth is given. - Replace crypto.[ch] with gnulib hmac-md5 module. - Gnulib update. Add hmac-md5 module. - net.c, tls.c: allow all network operations to be interrupted with CTRL+C, and print an appropriate error message in this case. (This change does not affect msmtp.) - tls.c: if an error occurs, clean up *after* building the error message. This fixes a potential segfault in the OpenSSL version of tls_start(). - net_open_socket(): don't let net_close_socket() clobber errno. - net_open_socket(): print correct error message if getaddrinfo() returns EAI_SYSTEM. - Fixed comment in net.h. - net_get_canonical_hostname(): Only call freeaddrinfo() if getaddrinfo() succeeded. Reported and fixed by Raul Nunez de Arenas Coronado. (This change does not affect msmtp.) - Update copyright message. - Gnulib update. - Minor Win32 portability/cross-compilation updates. - configure.ac: Rely on PKG_CHECK_MODULES to find GSASL, do not fall back to manual detection, to prevent using an incompatible version of GSASL. Problem reported by Jari Aalto. - Gnulibs sysexit_.h now defines EX_OK; there's no need to use a locally modified version anymore. - Use a locally modified version of gnulibs sysexit_.h that defines EX_OK to 0, since the gnulib maintainers apparently won't fix this file. Include the sysexits.h header after all other system headers to override previous definitions of EX_OK on systems that use EX_OK for other purposes. This is needed on Interix, reported by Ben Collver.
2007-09-08 10:05:22 +02:00
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"