summaryrefslogtreecommitdiff
path: root/mail/ssmtp/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2003-06-19 20:39:09 +0000
committerjlam <jlam>2003-06-19 20:39:09 +0000
commit64f6824bc8475d97d922a037b3f4cbb300ff82ae (patch)
tree2a6a7b050bc17185255402a6f119002ed8c0adab /mail/ssmtp/Makefile
parent9cfaaf0b2b5ad33af72a4e3d063bac226b68005a (diff)
downloadpkgsrc-64f6824bc8475d97d922a037b3f4cbb300ff82ae.tar.gz
Initial import of mail/ssmtp, an extremely simple MTA that forwards mail
to a mail hub. Originally from pkgsrc-wip; created by Toru TAKAMIZU <pkg at pop dot 707 dot to>. A secure, effective and simple way of getting mail off a system to your mail hub. It contains no suid-binaries or other dangerous things - no mail spool to poke around in, and no daemons running in the background. Mail is simply forwarded to the configured mailhost. Extremely easy configuration. WARNING: the above is all it does; it does not receive mail, expand aliases or manage a queue. That belongs on a mail hub with a system administrator. This program is especially recommended for mutt users who send emails via ISP's smtp server.
Diffstat (limited to 'mail/ssmtp/Makefile')
-rw-r--r--mail/ssmtp/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile
new file mode 100644
index 00000000000..3d805cb14ba
--- /dev/null
+++ b/mail/ssmtp/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+# FreeBSD Id: ports/mail/ssmtp/Makefile,v 1.10 2003/04/14 08:41:04 leeym Exp
+#
+# TLS functionality needs testing. Please let me know the result,
+# and preferably info about your system.
+#
+# pkg@pop.707.to
+# Toru TAKAMIZU
+
+DISTNAME= ssmtp_2.60.3
+PKGNAME= ssmtp-2.60.3
+WRKSRC= ${WRKDIR}/${PKGBASE}-${PKGVERSION:C/([0-9]+.[0-9]+)(.[0-9]+)$/\1/}
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/s/ssmtp/}
+
+MAINTAINER= pkg@pop.707.to
+HOMEPAGE= http://packages.debian.org/testing/mail/ssmtp.html
+COMMENT= Extremely simple MTA to forward mail to a mail hub
+
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS+= --enable-ssl --enable-inet6
+
+PKG_SYSCONFSUBDIR= ${PKGBASE}
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+CONF_FILES= ${EGDIR}/ssmtp.conf ${PKG_SYSCONFDIR}/ssmtp.conf
+CONF_FILES+= ${EGDIR}/revaliases ${PKG_SYSCONFDIR}/revaliases
+
+post-extract:
+ ${RM} -rf ${WRKSRC}/RCS
+
+post-patch:
+ for f in ${WRKSRC}/ssmtp.c ${WRKSRC}/ssmtp.conf ; do \
+ ${MV} -f $$f $$f.orig ; \
+ ${SED} "s,/etc/ssl/certs/,${PKG_SYSCONFDIR}/,g" \
+ $${f}.orig > $${f} ; \
+ ${RM} -f $$f.orig ; \
+ done
+ for f in ${WRKSRC}/ssmtp.8 ; do \
+ ${MV} -f $$f $$f.orig ; \
+ ${SED} "s,/etc/ssmtp/,${PKG_SYSCONFDIR}/,g" \
+ $$f.orig > $$f ; \
+ ${RM} -f $$f.orig ; \
+ done
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/revaliases ${EGDIR}
+
+.include "../../security/openssl/buildlink2.mk"
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"