2 # Copyright (C) 2009 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2009-2010 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@SF
/msmtp
17 PKG_MD5SUM
:=9d764cd9036168f49bc9d6531a7f3dba
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/msmtp
/Default
29 TITLE
:=Simple sendmail SMTP forwarding
30 URL
:=http
://msmtp.sourceforge.net
/
33 define Package
/msmtp
/Default
/conffiles
37 define Package
/msmtp
/Default
/description
38 msmtp is an SMTP client. In the default mode
, it transmits a mail to
39 an SMTP server
(for example at a free mail provider
) which does the
40 delivery. To use this program with your mail user agent
(MUA
), create
41 a configuration file with your mail account
(s
) and tell your MUA to
42 call msmtp instead of
/usr
/sbin
/sendmail.
46 $(call Package
/msmtp
/Default
)
48 TITLE
+= (with SSL support
)
52 define Package
/msmtp
/conffiles
53 $(call Package
/msmtp
/Default
/conffiles
)
56 define Package
/msmtp
/description
57 $(call Package
/msmtp
/Default
/description
)
58 This package is built with SSL support.
61 define Package
/msmtp-nossl
62 $(call Package
/msmtp
/Default
)
63 TITLE
+= (without SSL support
)
67 define Package
/msmtp-nossl
/conffiles
68 $(call Package
/msmtp
/Default
/conffiles
)
71 define Package
/msmtp-nossl
/description
72 $(call Package
/msmtp
/Default
/description
)
73 This package is built without SSL support.
78 --without-libssl32-prefix \
79 --without-libintl-prefix \
85 ifeq ($(BUILD_VARIANT
),ssl
)
88 --with-libssl-prefix
="$(STAGING_DIR)/usr/include"
91 ifeq ($(BUILD_VARIANT
),nossl
)
96 define Package
/msmtp
/install
97 $(INSTALL_DIR
) $(1)/etc
98 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/doc
/msmtprc-system.example \
100 $(INSTALL_DIR
) $(1)/usr
/bin
101 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/msmtp
$(1)/usr
/bin
/
102 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/msmtpqueue
/msmtp-
{en
,list
,run
}queue.sh
$(1)/usr
/bin
/
103 $(INSTALL_DIR
) $(1)/usr
/sbin
106 define Package
/msmtp
/postinst
107 ln
-sf ..
/bin
/msmtp
$${IPKG_INSTROOT}/usr
/sbin
/sendmail
110 Package
/msmtp-nossl
/install = $(Package
/msmtp
/install)
111 Package
/msmtp-nossl
/postinst
= $(Package
/msmtp
/postinst
)
113 $(eval
$(call BuildPackage
,msmtp
))
114 $(eval
$(call BuildPackage
,msmtp-nossl
))