2015-01-10 17:42:20 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 David Cooper <dave@kupesoft.com>
|
2016-08-08 19:44:04 +00:00
|
|
|
# Copyright (C) 2009-2016 OpenWrt.org
|
2015-01-10 17:42:20 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=msmtp
|
2023-09-19 21:59:29 +00:00
|
|
|
PKG_VERSION:=1.8.24
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2015-01-10 17:42:20 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2018-08-24 01:20:02 +00:00
|
|
|
PKG_SOURCE_URL:=https://marlam.de/msmtp/releases
|
2023-09-19 21:59:29 +00:00
|
|
|
PKG_HASH:=bd6644b1aaab17d61b86647993e3efad860b23c54283b00ddc579c1f5110aa59
|
2015-01-10 17:42:20 +00:00
|
|
|
|
2020-03-16 02:57:06 +00:00
|
|
|
PKG_MAINTAINER:=
|
2019-07-15 21:59:29 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2015-01-10 17:42:20 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-02-25 23:27:50 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:marlam:msmtp
|
2015-01-10 17:42:20 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2019-07-15 21:59:29 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2015-01-10 17:42:20 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2016-08-08 19:44:04 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2015-01-10 17:42:20 +00:00
|
|
|
|
|
|
|
define Package/msmtp/Default
|
|
|
|
SECTION:=mail
|
|
|
|
CATEGORY:=Mail
|
2016-08-08 19:44:04 +00:00
|
|
|
DEPENDS:=$(INTL_DEPENDS)
|
2015-01-10 17:42:20 +00:00
|
|
|
TITLE:=Simple sendmail SMTP forwarding
|
2018-08-24 01:20:02 +00:00
|
|
|
URL:=https://marlam.de/msmtp
|
2015-01-10 17:42:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp/Default/description
|
|
|
|
msmtp is an SMTP client. In the default mode, it transmits a mail to
|
|
|
|
an SMTP server (for example at a free mail provider) which does the
|
|
|
|
delivery. To use this program with your mail user agent (MUA), create
|
|
|
|
a configuration file with your mail account(s) and tell your MUA to
|
|
|
|
call msmtp instead of /usr/sbin/sendmail.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp
|
|
|
|
$(call Package/msmtp/Default)
|
2018-12-13 21:28:42 +00:00
|
|
|
DEPENDS+= +libgnutls +ca-bundle
|
2015-01-10 17:42:20 +00:00
|
|
|
TITLE+= (with SSL support)
|
|
|
|
VARIANT:=ssl
|
2019-01-16 07:56:33 +00:00
|
|
|
DEFAULT_VARIANT:=1
|
2015-01-10 17:42:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp/conffiles
|
|
|
|
/etc/msmtprc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp/description
|
|
|
|
$(call Package/msmtp/Default/description)
|
|
|
|
This package is built with SSL support.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp-nossl
|
|
|
|
$(call Package/msmtp/Default)
|
|
|
|
TITLE+= (without SSL support)
|
|
|
|
VARIANT:=nossl
|
2019-01-16 07:56:33 +00:00
|
|
|
PROVIDES:=msmtp
|
2015-01-10 17:42:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp-nossl/description
|
|
|
|
$(call Package/msmtp/Default/description)
|
|
|
|
This package is built without SSL support.
|
|
|
|
endef
|
|
|
|
|
2016-09-17 01:49:08 +00:00
|
|
|
define Package/msmtp-mta
|
|
|
|
$(call Package/msmtp/Default)
|
|
|
|
TITLE+= (as MTA)
|
2019-01-16 07:56:33 +00:00
|
|
|
DEPENDS+=+msmtp
|
|
|
|
ALTERNATIVES:=\
|
|
|
|
100:/usr/sbin/sendmail:/usr/bin/msmtp \
|
|
|
|
100:/usr/lib/sendmail:/usr/bin/msmtp
|
2016-09-17 01:49:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp-mta/description
|
|
|
|
$(call Package/msmtp/Default/description)
|
|
|
|
This package add a link from sendmail to msmtp
|
|
|
|
and is built with SSL support.
|
|
|
|
endef
|
|
|
|
|
2015-01-10 17:42:20 +00:00
|
|
|
define Package/msmtp-queue
|
|
|
|
$(call Package/msmtp/Default)
|
2019-01-16 07:56:33 +00:00
|
|
|
DEPENDS+= +bash +msmtp
|
2015-01-10 17:42:20 +00:00
|
|
|
TITLE+= (queue scripts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp-queue/description
|
|
|
|
$(call Package/msmtp/Default/description)
|
|
|
|
This package contains the msmtp queue scripts.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-rpath \
|
|
|
|
--without-libintl-prefix \
|
|
|
|
--without-libgsasl \
|
|
|
|
--without-libidn \
|
2015-03-07 21:57:04 +00:00
|
|
|
--without-libsecret \
|
2015-01-10 17:42:20 +00:00
|
|
|
--without-macosx-keyring \
|
2018-12-13 21:28:42 +00:00
|
|
|
--without-msmtpd
|
2015-01-10 17:42:20 +00:00
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
2019-04-29 21:26:13 +00:00
|
|
|
CONFIGURE_ARGS += --with-tls=gnutls
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS += --without-tls
|
2015-01-10 17:42:20 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
define Package/msmtp/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/msmtprc-system.example \
|
|
|
|
$(1)/etc/msmtprc
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/msmtp $(1)/usr/bin/
|
2016-09-17 01:49:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/msmtp-mta/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/lib
|
2015-01-10 17:42:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
Package/msmtp-nossl/conffiles = $(Package/msmtp/conffiles)
|
|
|
|
Package/msmtp-nossl/install = $(Package/msmtp/install)
|
|
|
|
|
|
|
|
define Package/msmtp-queue/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/msmtpq/msmtp{q,-queue} $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/msmtpqueue/msmtp-{en,list,run}queue.sh $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,msmtp))
|
|
|
|
$(eval $(call BuildPackage,msmtp-nossl))
|
|
|
|
$(eval $(call BuildPackage,msmtp-queue))
|
2016-09-17 01:49:08 +00:00
|
|
|
$(eval $(call BuildPackage,msmtp-mta))
|