2 # Copyright (C) 2009 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2009-2011 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
:=5fb7ae88186624cdb125d3efad3fdc16
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
/description
34 msmtp is an SMTP client. In the default mode
, it transmits a mail to
35 an SMTP server
(for example at a free mail provider
) which does the
36 delivery. To use this program with your mail user agent
(MUA
), create
37 a configuration file with your mail account
(s
) and tell your MUA to
38 call msmtp instead of
/usr
/sbin
/sendmail.
42 $(call Package
/msmtp
/Default
)
44 TITLE
+= (with SSL support
)
48 define Package
/msmtp
/conffiles
52 define Package
/msmtp
/description
53 $(call Package
/msmtp
/Default
/description
)
54 This package is built with SSL support.
57 define Package
/msmtp-nossl
58 $(call Package
/msmtp
/Default
)
59 TITLE
+= (without SSL support
)
63 define Package
/msmtp-nossl
/description
64 $(call Package
/msmtp
/Default
/description
)
65 This package is built without SSL support.
70 --without-libssl32-prefix \
71 --without-libintl-prefix \
77 ifeq ($(BUILD_VARIANT
),ssl
)
80 --with-libssl-prefix
="$(STAGING_DIR)/usr/include"
83 ifeq ($(BUILD_VARIANT
),nossl
)
88 define Package
/msmtp
/install
89 $(INSTALL_DIR
) $(1)/etc
90 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/doc
/msmtprc-system.example \
92 $(INSTALL_DIR
) $(1)/usr
/bin
93 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/msmtp
$(1)/usr
/bin
/
94 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/msmtpqueue
/msmtp-
{en
,list
,run
}queue.sh
$(1)/usr
/bin
/
95 $(INSTALL_DIR
) $(1)/usr
/sbin
98 define Package
/msmtp
/postinst
99 ln
-sf ..
/bin
/msmtp
$${IPKG_INSTROOT}/usr
/sbin
/sendmail
102 Package
/msmtp-nossl
/conffiles
= $(Package
/msmtp
/conffiles
)
103 Package
/msmtp-nossl
/install = $(Package
/msmtp
/install)
104 Package
/msmtp-nossl
/postinst
= $(Package
/msmtp
/postinst
)
106 $(eval
$(call BuildPackage
,msmtp
))
107 $(eval
$(call BuildPackage
,msmtp-nossl
))