diff options
author | steve <steve@FreeBSD.org> | 2001-02-26 13:17:57 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2001-02-26 13:17:57 +0800 |
commit | 717956ac163a00169c56151ab031c2f1d50a8021 (patch) | |
tree | a29b77f41e5ba31eb423efb8b8931dc2d1bbd10f /mail/ssmtp/Makefile | |
parent | d8966d2bd51c6a71b8643d2262a6ad5396823f66 (diff) | |
download | freebsd-ports-gnome-717956ac163a00169c56151ab031c2f1d50a8021.tar.gz freebsd-ports-gnome-717956ac163a00169c56151ab031c2f1d50a8021.tar.zst freebsd-ports-gnome-717956ac163a00169c56151ab031c2f1d50a8021.zip |
Adding ssmtp version 2.38.
A sendmail alternative for small routers (only for outgoing mail).
PR: 24263
Submitted by: Tomasz Paszkowski <ns88@k.pl>
Diffstat (limited to 'mail/ssmtp/Makefile')
-rw-r--r-- | mail/ssmtp/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile new file mode 100644 index 000000000000..a268701e85e0 --- /dev/null +++ b/mail/ssmtp/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: ssmtp +# Date created: 9 Jan 2001 +# Whom: Tomasz Paszkowski <ns88@k.pl> +# +# $FreeBSD$ +# + +PORTNAME= ssmtp +PORTVERSION= 2.38 +CATEGORIES= mail +MASTER_SITES= ftp://ftp.debian.org/debian/dists/woody/main/source/mail/ \ + ftp://ftp.icm.edu.pl/pub/Linux/debian/dists/woody/main/source/mail/ +DISTNAME= ssmtp_2.38-9 + +MAINTAINER= ns88@k.pl + +WRKSRC= ${WRKDIR}/ssmtp-2.38 +USE_GMAKE= true +MAN8= ssmtp.8 + +pre-install: + ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 0755 \ + ${PREFIX}/etc/ssmtp + +post-install: + @PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} + @${ECHO_MSG} -------------------------------------------------- + @${ECHO_MSG} + @${ECHO_MSG} "To replace sendmail with ssmtp type make replace" + @${ECHO_MSG} + @${ECHO_MSG} -------------------------------------------------- + +.include <bsd.port.pre.mk> + +replace: +.if ${OSVERSION} >= 400014 + @${ECHO} backuping old /etc/mail/mailer.conf + @${MV} -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old-ssmtp + @${ECHO} Replacing mailwarpper config + @${ECHO} "sendmail ${PREFIX}/sbin/ssmtp\n" > /etc/mail/mailer.conf + @${ECHO} "send-mail ${PREFIX}/sbin/ssmtp\n" >> /etc/mail/mailer.conf + @${ECHO} "mailq /bin/echo\n" >> /etc/mail/mailer.conf + @${ECHO} "newaliases /bin/echo\n" >> /etc/mail/mailer.conf +.else + @${ECHO} bacckuping old /usr/sbin/sendmail + @${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF + @${CHMOD} 000 /usr/sbin/sendmail.OFF + @${LN} -s ${PREFIX}/sbin/ssmtp /usr/sbin/sendmail + @${ECHO} Done ! +.endif + +.include <bsd.port.post.mk> |