2 # Copyright (C) 2009 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2009 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
:=74f80b41c058a0ee34819d6bf5ff3b1a
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/msmtp
/Default
26 TITLE
:=Simple sendmail SMTP forwarding
27 URL
:=http
://msmtp.sourceforge.net
/
30 define Package
/msmtp
/Default
/conffiles
34 define Package
/msmtp
/Default
/description
35 msmtp is an SMTP client. In the default mode
, it transmits a mail to
36 an SMTP server
(for example at a free mail provider
) which does the
37 delivery. To use this program with your mail user agent
(MUA
), create
38 a configuration file with your mail account
(s
) and tell your MUA to
39 call msmtp instead of
/usr
/sbin
/sendmail.
43 $(call Package
/msmtp
/Default
)
45 TITLE
+= (with SSL support
)
48 define Package
/msmtp
/conffiles
49 $(call Package
/msmtp
/Default
/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
)
62 define Package
/msmtp-nossl
/conffiles
63 $(call Package
/msmtp
/Default
/conffiles
)
66 define Package
/msmtp-nossl
/description
67 $(call Package
/msmtp
/Default
/description
)
68 This package is built without SSL support.
73 $(STAMP_BUILT
)-$(2): $(STAMP_PREPARED
)
74 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
75 $(call Build
/Configure
/Default
,$(3))
76 $(MAKE
) -C
$(PKG_BUILD_DIR
)
77 ( cd
$(PKG_BUILD_DIR
)/src
; mv
-f msmtp msmtp-
$(2) )
80 $(STAMP_BUILT
): $(STAMP_BUILT
)-$(2)
82 define Package
/$(1)/install
83 $(INSTALL_DIR
) $$(1)/etc
84 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/doc
/msmtprc-system.example \
86 $(INSTALL_DIR
) $$(1)/usr
/bin
87 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/msmtp-
$(2) $$(1)/usr
/bin
/msmtp
88 $(INSTALL_DIR
) $$(1)/usr
/sbin
89 ln
-sf
/usr
/bin
/msmtp
$$(1)/usr
/sbin
/sendmail
101 ifneq ($(SDK
)$(CONFIG_PACKAGE_msmtp
),)
102 define Build
/with-ssl
103 $(call Build
/Template
,msmtp
,with-ssl
, \
105 --with-libssl-prefix
="$(STAGING_DIR)/usr/include" \
109 $(eval
$(Build
/with-ssl
))
111 ifneq ($(SDK
)$(CONFIG_PACKAGE_msmtp-nossl
),)
112 define Build
/without-ssl
113 $(call Build
/Template
,msmtp-nossl
,without-ssl
, \
118 $(eval
$(Build
/without-ssl
))
120 $(eval
$(call BuildPackage
,msmtp
))
121 $(eval
$(call BuildPackage
,msmtp-nossl
))