From df74a582568de5aeff3a743e9c7d425de0f1935e Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 24 May 2018 07:34:23 +0200 Subject: [PATCH 1/2] msmtp: Add version 1.6.6 Multiple tools (e.g. cron, php, MUAs) expect a sendmail compatible program to send emails. We currently don't have a /usr/bin/sendmail so these tools need more configuration or don't work. Installing a complete MUAs like postfix or sendmail on every system seems to be to much overhead. MUAs need to maintain a mail queue, generate bounce email, require daemons, user-idents, privileged code and a lot of configuration. msmtp in not a complete MUA, but provides a sendmail compatible interface. The plan is to configure it to pipeline email to our central mailhub. From [1] : msmtp is an SMTP client. In the default mode, it transmits a mail to an SMTP server Features include: Sendmail compatible interface (command line options and exit codes) Support for multiple accounts TLS/SSL support including client certificates Many authentication methods Support for Internationalized Domain Names (IDN) Fast SMTP implementation using command pipelining DSN (Delivery Status Notification) support SOCKS proxy support [1] http://msmtp.sourceforge.net/ --- msmtp.be0 | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 msmtp.be0 diff --git a/msmtp.be0 b/msmtp.be0 new file mode 100755 index 000000000..1dd7d98ac --- /dev/null +++ b/msmtp.be0 @@ -0,0 +1,79 @@ +#!/usr/bin/env beesh + +# BEE_VERSION msmtp-1.6.6-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://sourceforge.net/projects/msmtp/files/msmtp/${PKGVERSION}/msmtp-${PKGVERSION}.tar.xz/download" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From 4a52f89de68bdb16aa28a6213dda6cccf50d3abe Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 24 May 2018 07:37:08 +0200 Subject: [PATCH 2/2] msmtp: Create /usr/bin/sendmail symlink --- msmtp.be0 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/msmtp.be0 b/msmtp.be0 index 1dd7d98ac..c47b968bc 100755 --- a/msmtp.be0 +++ b/msmtp.be0 @@ -55,9 +55,10 @@ SRCURL[0]="https://sourceforge.net/projects/msmtp/files/msmtp/${PKGVERSION}/msmt # bee_build #} -#mee_install() { -# bee_install -#} +mee_install() { + bee_install + ln -s msmtp ${D}${BINDIR}/sendmail +} ## by default this may be 'make install DESTDIR="${D}"' ###############################################################################