| 1 | NAME = msmtp |
|---|
| 2 | VERSION = 1.4.27 |
|---|
| 3 | CATEGORIES = net |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = SMTP client |
|---|
| 7 | define BLURB |
|---|
| 8 | In the default mode, it transmits a mail to an SMTP server |
|---|
| 9 | (for example at a free mail provider) which does the delivery. |
|---|
| 10 | To use this program with your mail user agent (MUA), create a |
|---|
| 11 | configuration file with your mail account(s) and tell your MUA |
|---|
| 12 | to call msmtp instead of /usr/sbin/sendmail. |
|---|
| 13 | Features include: |
|---|
| 14 | * Sendmail compatible interface (command line options and exit codes). |
|---|
| 15 | * Authentication methods PLAIN, LOGIN, CRAM-MD5, DIGEST-MD5, GSSAPI, and NTLM. |
|---|
| 16 | * TLS/SSL both in SMTP-over-SSL mode and in STARTTLS mode. |
|---|
| 17 | Full certificate trust checks can be performed. A client certificate can be sent. |
|---|
| 18 | * Fast SMTP implementation using command pipelining. |
|---|
| 19 | * Support for Internationalized Domain Names (IDN). |
|---|
| 20 | * DSN (Delivery Status Notification) support. |
|---|
| 21 | * RMQS (Remote Message Queue Starting) support (ETRN keyword). |
|---|
| 22 | * IPv6 support. |
|---|
| 23 | * Support for multiple accounts. |
|---|
| 24 | endef |
|---|
| 25 | |
|---|
| 26 | MASTER_SITES = $(SF_MIRRORS) |
|---|
| 27 | DISTFILES = $(NAME)-$(VERSION).tar.bz2 |
|---|
| 28 | |
|---|
| 29 | # New glib2 is only available for Solaris 10 |
|---|
| 30 | PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386 |
|---|
| 31 | |
|---|
| 32 | VENDOR_URL = http://msmtp.sourceforge.net/ |
|---|
| 33 | |
|---|
| 34 | BUILD_DEP_PKGS += CSWlibgnutls-dev |
|---|
| 35 | BUILD_DEP_PKGS += CSWlibgsasl-dev |
|---|
| 36 | BUILD_DEP_PKGS += CSWggettext-dev |
|---|
| 37 | BUILD_DEP_PKGS += CSWgnomekeyring-dev |
|---|
| 38 | BUILD_DEP_PKGS += CSWlibglib2-dev |
|---|
| 39 | |
|---|
| 40 | PACKAGES += CSWmsmtp |
|---|
| 41 | SPKG_DESC_CSWmsmtp = $(DESCRIPTION) |
|---|
| 42 | RUNTIME_DEP_PKGS_CSWmsmtp += CSWlibgsasl7 |
|---|
| 43 | RUNTIME_DEP_PKGS_CSWmsmtp += CSWlibintl8 |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWmsmtp += CSWlibidn11 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWmsmtp += CSWlibgnome-keyring0 |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWmsmtp += CSWlibgnutls26 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWmsmtp += CSWlibglib2-0-0 |
|---|
| 48 | |
|---|
| 49 | PRESERVECONF = $(sysconfdir)/msmtprc |
|---|
| 50 | |
|---|
| 51 | include gar/category.mk |
|---|
| 52 | |
|---|
| 53 | # The path in CA_CERTIFICATES is taken from CSWcacertificates |
|---|
| 54 | post-install-modulated: DOCDIR=$(docdir)/msmtp |
|---|
| 55 | post-install-modulated: CA_CERTIFICATES=/opt/csw/etc/ca-certificates.conf |
|---|
| 56 | post-install-modulated: |
|---|
| 57 | ginstall -d $(DESTDIR)$(DOCDIR) |
|---|
| 58 | ginstall $(WORKSRC)/doc/Mutt+msmtp.txt $(DESTDIR)$(DOCDIR) |
|---|
| 59 | # ginstall $(WORKSRC)/doc/msmtp.html $(DESTDIR)$(DOCDIR) |
|---|
| 60 | # ginstall $(WORKSRC)/doc/msmtp.pdf $(DESTDIR)$(DOCDIR) |
|---|
| 61 | ginstall -d $(DESTDIR)$(sysconfdir) |
|---|
| 62 | cat $(WORKSRC)/doc/msmtprc-system.example | \ |
|---|
| 63 | perl -np -e 's/^/#/ if( /^[^#]+/ );' \ |
|---|
| 64 | -e 's,(tls_trust_file\s+).*,\1$(CA_CERTIFICATES),;' \ |
|---|
| 65 | > $(DESTDIR)/etc/opt/csw/msmtprc |
|---|
| 66 | ginstall $(WORKSRC)/doc/msmtprc-user.example \ |
|---|
| 67 | $(DESTDIR)$(DOCDIR)/msmtprc-user.example |
|---|
| 68 | perl -pi -e 's,/usr/local/etc,$(sysconfdir),;' \ |
|---|
| 69 | -e 's,/usr/local/bin,$(bindir),;' \ |
|---|
| 70 | $(DESTDIR)$(infodir)/msmtp.info \ |
|---|
| 71 | $(DESTDIR)$(DOCDIR)/Mutt+msmtp.txt |
|---|
| 72 | @$(MAKECOOKIE) |
|---|