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
18 PKG_MD5SUM
:=b0b74f1144812b60688f590c62a0d3dd
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/msmtp
/Default
25 TITLE
:=Simple sendmail SMTP forwarding
26 URL
:=http
://msmtp.sourceforge.net
/
29 define Package
/msmtp
/Default
/conffiles
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
)
47 define Package
/msmtp
/conffiles
48 $(call Package
/msmtp
/Default
/conffiles
)
51 define Package
/msmtp
/description
52 $(call Package
/msmtp
/Default
/description
)
53 This package is built with SSL support.
56 define Package
/msmtp-nossl
57 $(call Package
/msmtp
/Default
)
58 TITLE
+= (without SSL support
)
61 define Package
/msmtp-nossl
/conffiles
62 $(call Package
/msmtp
/Default
/conffiles
)
65 define Package
/msmtp-nossl
/description
66 $(call Package
/msmtp
/Default
/description
)
67 This package is built without SSL support.
72 $(STAMP_BUILT
)-$(2): $(STAMP_PREPARED
)
73 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
74 $(call Build
/Configure
/Default
,$(3))
75 $(MAKE
) -C
$(PKG_BUILD_DIR
)
76 ( cd
$(PKG_BUILD_DIR
)/src
; mv
-f msmtp msmtp-
$(2) )
79 $(STAMP_BUILT
): $(STAMP_BUILT
)-$(2)
81 define Package
/$(1)/install
82 $(INSTALL_DIR
) $$(1)/etc
83 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/doc
/msmtprc-system.example \
85 $(INSTALL_DIR
) $$(1)/usr
/bin
86 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/msmtp-
$(2) $$(1)/usr
/bin
/msmtp
87 $(INSTALL_DIR
) $$(1)/usr
/sbin
88 ln
-sf
/usr
/bin
/msmtp
$$(1)/usr
/sbin
/sendmail
99 ifneq ($(SDK
)$(CONFIG_PACKAGE_msmtp
),)
100 define Build
/with-ssl
101 $(call Build
/Template
,msmtp
,with-ssl
, \
103 --with-libssl-prefix
="$(STAGING_DIR)/usr/include" \
107 $(eval
$(Build
/with-ssl
))
109 ifneq ($(SDK
)$(CONFIG_PACKAGE_msmtp-nossl
),)
110 define Build
/without-ssl
111 $(call Build
/Template
,msmtp-nossl
,without-ssl
, \
116 $(eval
$(Build
/without-ssl
))
118 $(eval
$(call BuildPackage
,msmtp
))
119 $(eval
$(call BuildPackage
,msmtp-nossl
))