2001-02-26 05:17:57 +00:00
|
|
|
# New ports collection makefile for: ssmtp
|
|
|
|
# Date created: 9 Jan 2001
|
|
|
|
# Whom: Tomasz Paszkowski <ns88@k.pl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ssmtp
|
2003-04-14 01:29:12 +00:00
|
|
|
PORTVERSION= 2.60.3
|
2001-02-26 05:17:57 +00:00
|
|
|
CATEGORIES= mail
|
2003-04-14 08:41:04 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN}
|
|
|
|
MASTER_SITE_SUBDIR= pool/main/s/${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
2001-02-26 05:17:57 +00:00
|
|
|
|
2003-04-14 01:29:12 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Extremely simple MTA to get mail off the system to a mail hub
|
2002-05-18 15:38:11 +00:00
|
|
|
|
2003-04-14 08:41:04 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.[0-9]+$//}
|
2003-04-14 01:29:12 +00:00
|
|
|
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2003-04-14 08:41:04 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-04-14 01:29:12 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --enable-ssl --enable-inet6
|
2003-04-14 08:41:04 +00:00
|
|
|
MAILERCONF= /etc/mail/mailer.conf
|
|
|
|
TRUE= /usr/bin/true
|
2001-02-26 05:17:57 +00:00
|
|
|
|
|
|
|
MAN8= ssmtp.8
|
|
|
|
|
2003-04-14 01:29:12 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e "s,/etc/ssl/certs/ssmtp.pem,${PREFIX}/etc/ssmtp/ssmtp.pem,g" \
|
|
|
|
${WRKSRC}/ssmtp.c ${WRKSRC}/ssmtp.conf
|
|
|
|
@${REINPLACE_CMD} -e "s, /etc, ${PREFIX}/etc,g" ${WRKSRC}/ssmtp.8
|
|
|
|
|
|
|
|
replace:
|
2003-04-14 08:41:04 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,^[^#],#&,g' ${MAILERCONF}
|
|
|
|
@${ECHO_CMD} "sendmail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
|
|
|
|
@${ECHO_CMD} "send-mail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
|
|
|
|
@${ECHO_CMD} "mailq ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
|
|
|
|
@${ECHO_CMD} "newaliases ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
|
|
|
|
@${ECHO_CMD} "hoststat ${TRUE}" >> ${MAILERCONF}
|
|
|
|
@${ECHO_CMD} "purgestat ${TRUE}" >> ${MAILERCONF}
|
2001-02-26 05:17:57 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} --------------------------------------------------
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "To replace sendmail with ssmtp type make replace"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} --------------------------------------------------
|
2003-04-14 08:41:04 +00:00
|
|
|
@${SED} 's#%%PREFIX%%#${PREFIX}#' < ${PKGMESSAGE}
|
2001-02-26 05:17:57 +00:00
|
|
|
|
2003-04-14 01:29:12 +00:00
|
|
|
.include <bsd.port.mk>
|