|
|
@ -1,7 +1,6 @@ |
|
|
|
#
|
|
|
|
# Copyright (C) 2009 David Cooper <dave@kupesoft.com>
|
|
|
|
# Copyright (C) 2009-2015 OpenWrt.org
|
|
|
|
# Copyright (C) 2016 Daniel Dickinson <cshored@thecshore.com>
|
|
|
|
# Copyright (C) 2016-2019 Daniel Dickinson <cshored@thecshore.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
@ -10,14 +9,15 @@ |
|
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
PKG_NAME:=msmtp-scripts |
|
|
|
PKG_VERSION:=1.0.8 |
|
|
|
PKG_VERSION:=1.2.4 |
|
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
PKG_SOURCE_URL:=@SF/msmtp-scripts |
|
|
|
PKG_HASH:=2aec48d47b02facf2a33cf97a7434e969c1a054224406e6c55320d825c7902b2 |
|
|
|
PKG_SOURCE_URL:=https://launchpad.net/$(PKG_NAME)/1.2/$(PKG_VERSION)/+download |
|
|
|
PKG_HASH:=fc85ab8ed1348be584adfc1feb89f51daed7404e9e8643652ff31d2af00f1cf5 |
|
|
|
PKG_MAINTAINER:=Daniel F. Dickinson <cshored@thecshore.com> |
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-3.0+ |
|
|
|
PKG_LICENSE:=GPL-3.0-or-later |
|
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
@ -25,24 +25,20 @@ include $(INCLUDE_DIR)/package.mk |
|
|
|
define Package/msmtp-scripts/Default |
|
|
|
SECTION:=mail |
|
|
|
CATEGORY:=Mail |
|
|
|
TITLE:=DEPRECATED: Simple sendmail SMTP queueing and forwarding |
|
|
|
URL:=http://msmtp-scripts.sourceforge.net/ |
|
|
|
TITLE:=Forwarding only SMTP with queuing |
|
|
|
URL:=https://msmtp-scripts.thecshore.com |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtp-scripts/Default/description |
|
|
|
DEPRECATED: SourceForge project is abandonded; and upstream (on GitHub) |
|
|
|
has deprecated this project. See: |
|
|
|
https://github.com/cshore-history/msmtp-scripts#deprecation-notice |
|
|
|
|
|
|
|
msmtp-scripts are scripts wrappers around the msmtp SMTP client that |
|
|
|
add queueing, logging to syslog or file, a subset of sendmail/postfix |
|
|
|
add queueing, logging to syslog or file, and a subset of sendmail/postfix |
|
|
|
mailq/postsuper/postqueue commands implemented in a compatible fashion. |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtpq-ng |
|
|
|
$(call Package/msmtp-scripts/Default) |
|
|
|
DEPENDS+= @(PACKAGE_msmtp||PACKAGE_msmtp-nossl) |
|
|
|
TITLE+= (msmtpq-ng wrappers) |
|
|
|
DEPENDS+= +msmtp |
|
|
|
TITLE+= (common) |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtpq-ng/conffiles |
|
|
@ -60,10 +56,15 @@ define Package/msmtpq-ng-mta |
|
|
|
$(call Package/msmtp-scripts/Default) |
|
|
|
TITLE+= (as MTA) |
|
|
|
DEPENDS+=+msmtpq-ng |
|
|
|
USERID:=msmtp=482:msmtp=482 |
|
|
|
ALTERNATIVES:=\
|
|
|
|
400:/usr/sbin/sendmail:/usr/sbin/msmtpq-ng-mta \
|
|
|
|
400:/usr/lib/sendmail:/usr/sbin/msmtpq-ng-mta \
|
|
|
|
400:/usr/sbin/mailq:/usr/sbin/msmtpq-ng-queue-mta \
|
|
|
|
400:/usr/sbin/postqueue:/usr/sbin/msmtpq-ng-queue-mta \
|
|
|
|
400:/usr/sbin/postsuper:/usr/sbin/msmtpq-ng-queue-mta |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtp-queue-mta/conffiles |
|
|
|
define Package/msmtpq-ng-mta/conffiles |
|
|
|
/etc/msmtpq-ng-mta.rc |
|
|
|
endef |
|
|
|
|
|
|
@ -78,7 +79,8 @@ endef |
|
|
|
define Package/msmtpq-ng-mta-smtpd |
|
|
|
$(call Package/msmtp-scripts/Default) |
|
|
|
DEPENDS+= +msmtpq-ng-mta +xinetd |
|
|
|
TITLE+= (basic SMTP server) |
|
|
|
TITLE+= (localhost SMTPd) |
|
|
|
USERID:=msmtp=482:msmtp=482 |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtp-ng-mta-smtpd/description |
|
|
@ -92,13 +94,13 @@ define Package/msmtp-ng-mta-smtpd/description |
|
|
|
the hold queue before it can be delivered. |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtpq-ng-mta/postinst |
|
|
|
mkdir -p $${IPKG_INSTROOT}/etc/crontabs |
|
|
|
if ! grep -q msmtpq-ng-mta $${IPKG_INSTROOT}/etc/crontabs/root; then echo $$'\n'"*/60 * * * * /usr/bin/msmtpq-ng-mta -q" >>$${IPKG_INSTROOT}/etc/crontabs/root; fi |
|
|
|
define Package/msmtpq-ng-mta-smtpd/conffiles |
|
|
|
/etc/xinetd.d/ms-mta-smtpd |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtp-queue-mta/prerm |
|
|
|
if grep -q msmtpq-ng-mta $${IPKG_INSTROOT}/etc/crontabs/root; then grep -v '\*/60 \* \* \* \* /usr/bin/msmtpq-ng-mta -q' $${IPKG_INSTROOT}/etc/crontabs/root >$${IPKG_INSTROOT}/etc/crontabs/root.new; mv -f $${IPKG_INSTROOT}/etc/crontabs/root.new $${IPKG_INSTROOT}/etc/crontabs; fi |
|
|
|
define Package/msmtpq-ng-mta/postinst |
|
|
|
mkdir -p $${IPKG_INSTROOT}/etc/crontabs |
|
|
|
if ! grep -q msmtpq-ng-mta $${IPKG_INSTROOT}/etc/crontabs/root 2>/dev/null; then echo $$'\n'"*/60 * * * * /usr/bin/msmtpq-ng-mta -q" >>$${IPKG_INSTROOT}/etc/crontabs/root; fi |
|
|
|
endef |
|
|
|
|
|
|
|
define Build/Configure |
|
|
@ -111,31 +113,24 @@ endef |
|
|
|
|
|
|
|
define Package/msmtpq-ng/install |
|
|
|
$(INSTALL_DIR) $(1)/etc |
|
|
|
$(INSTALL_CONF) ./files/msmtpq-ng.rc $(1)/etc/msmtpq-ng.rc |
|
|
|
$(INSTALL_DATA) ./files/msmtpq-ng.rc $(1)/etc/msmtpq-ng.rc |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
$(CP) $(PKG_BUILD_DIR)/msmtpq-ng/msmtpq-ng $(1)/usr/bin/ |
|
|
|
$(SED) 's/logger -i/logger/' $(1)/usr/bin/msmtpq-ng |
|
|
|
$(CP) $(PKG_BUILD_DIR)/msmtpq-ng/msmtpq-ng-queue $(1)/usr/bin/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/usr/bin/msmtpq-ng $(1)/usr/bin/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/usr/bin/msmtpq-ng-queue $(1)/usr/bin/ |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtpq-ng-mta/install |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/usr/lib $(1)/etc/init.d |
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/msmtpq-ng-mta/msmtpq-ng-mta.rc $(1)/etc/ |
|
|
|
echo 'MSMTP_LOCK_DIR=/var/lock/msmtp' >>$(1)/etc/msmtpq-ng-mta.rc |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/msmtpq-ng-mta/msmtpq-ng-mta $(1)/usr/bin/ |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/msmtpq-ng-mta/msmtpq-ng-queue-mta $(1)/usr/bin/ |
|
|
|
$(INSTALL_DATA) ./files/msmtpq-ng-mta.rc $(1)/etc/ |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/usr/sbin/msmtpq-ng-mta $(1)/usr/sbin/ |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/usr/sbin//msmtpq-ng-queue-mta $(1)/usr/sbin/ |
|
|
|
$(INSTALL_DIR) $(1)/etc/crontabs |
|
|
|
$(INSTALL_BIN) ./files/msmtpq-ng-mta.init $(1)/etc/init.d/msmtpq-ng-mta |
|
|
|
ln -sf ../bin/msmtpq-ng-mta $(1)/usr/sbin/sendmail |
|
|
|
ln -sf ../bin/msmtpq-ng-mta $(1)/usr/lib/sendmail |
|
|
|
ln -sf ../bin/msmtpq-ng-queue-mta $(1)/usr/sbin/mailq |
|
|
|
ln -sf ../bin/msmtpq-ng-queue-mta $(1)/usr/sbin/postqueue |
|
|
|
ln -sf ../bin/msmtpq-ng-queue-mta $(1)/usr/sbin/postsuper |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/msmtpq-ng-mta-smtpd/install |
|
|
|
$(INSTALL_DIR) $(1)/etc/xinetd.d |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/msmtpq-ng-mta/sendmail-bs.xinetd $(1)/etc/xinetd.d/msmtpq-ng-mta-smtpd |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/etc/xinetd.d/ms-mta-smtpd $(1)/etc/xinetd.d/ms-mta-smtpd |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|