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
:=f0afdc943bf7c8a3a3bf3fe1a73072c4
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/msmtp
/Default
28 TITLE
:=Simple sendmail SMTP forwarding
29 URL
:=http
://msmtp.sourceforge.net
/
32 define Package
/msmtp
/Default
/conffiles
36 define Package
/msmtp
/Default
/description
37 msmtp is an SMTP client. In the default mode
, it transmits a mail to
38 an SMTP server
(for example at a free mail provider
) which does the
39 delivery. To use this program with your mail user agent
(MUA
), create
40 a configuration file with your mail account
(s
) and tell your MUA to
41 call msmtp instead of
/usr
/sbin
/sendmail.
45 $(call Package
/msmtp
/Default
)
47 TITLE
+= (with SSL support
)
51 define Package
/msmtp
/conffiles
52 $(call Package
/msmtp
/Default
/conffiles
)
55 define Package
/msmtp
/description
56 $(call Package
/msmtp
/Default
/description
)
57 This package is built with SSL support.
60 define Package
/msmtp-nossl
61 $(call Package
/msmtp
/Default
)
62 TITLE
+= (without SSL support
)
66 define Package
/msmtp-nossl
/conffiles
67 $(call Package
/msmtp
/Default
/conffiles
)
70 define Package
/msmtp-nossl
/description
71 $(call Package
/msmtp
/Default
/description
)
72 This package is built without SSL support.
84 ifeq ($(BUILD_VARIANT
),ssl
)
87 --with-libssl-prefix
="$(STAGING_DIR)/usr/include"
90 ifeq ($(BUILD_VARIANT
),nossl
)
95 define Package
/msmtp
/install
96 $(INSTALL_DIR
) $(1)/etc
97 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/doc
/msmtprc-system.example \
99 $(INSTALL_DIR
) $(1)/usr
/bin
100 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/msmtp
$(1)/usr
/bin
/msmtp
101 $(INSTALL_DIR
) $(1)/usr
/sbin
102 ln
-sf
/usr
/bin
/msmtp
$(1)/usr
/sbin
/sendmail
105 Package
/msmtp-nossl
/install = $(Package
/msmtp
/install)
107 $(eval
$(call BuildPackage
,msmtp
))
108 $(eval
$(call BuildPackage
,msmtp-nossl
))