1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/mail/ssmtp/Makefile
Jimmy Olgeni 55dc0f983a Remove all space characters from Makefile assignments.
No functional changes included.

CR:		D193 (except math/sedumi)
Approved by:	portmgr (bapt)
2014-06-08 19:51:27 +00:00

78 lines
2.5 KiB
Makefile

# Created by: Tomasz Paszkowski <ns88@k.pl>
# $FreeBSD$
PORTNAME= ssmtp
PORTVERSION= 2.64
PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
DISTFILES= ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
MAINTAINER= aragon@phat.za.net
COMMENT= Extremely simple MTA to get mail off the system to a mail hub
USE_BZIP2= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
USES= gmake
GROUPS= ssmtp
BINMODE= 2555
SHAREMODE= 640
SUB_FILES+= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
MAKE_ENV+= TARGET_ARCH=
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
MAILERCONF= /etc/mail/mailer.conf
OPTIONS_DEFINE= LOGFILE IPV6 USERPREFS XORIGIP CRAMMD5 OPENSSL
OPTIONS_DEFAULT=XORIGIP CRAMMD5 OPENSSL
LOGFILE_DESC= Log file
USERPREFS_DESC= User-defined revaliases
XORIGIP_DESC= X-Originating-IP header for REMOTE_ADDR envvar
CRAMMD5_DESC= CRAM-MD5 authentication support
LOGFILE_CONFIGURE_ON= --enable-logfile
XORIGIP_EXTRA_PATCHES= ${FILESDIR}/remote-addr.patch
IPV6_CONFIGURE_ON= --enable-inet6
CRAMMD5_CONFIGURE_ON= --enable-md5auth
OPENSSL_CONFIGURE_ON= --enable-ssl
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MUSERPREFS}
CFLAGS+= -DUSERPREFS
pre-everything::
@${ECHO_CMD} "If you don't want to let your users set their own revalias address"
@${ECHO_CMD} "(in ~/.ssmtprc), please define WITHOUT_USERPREFS."
.endif
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:
@${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 /usr/bin/true" >> ${MAILERCONF}
@${ECHO_CMD} "purgestat /usr/bin/true" >> ${MAILERCONF}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ssmtp ${STAGEDIR}${PREFIX}/sbin/ssmtp
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/ssmtp
@${CHMOD} 750 ${STAGEDIR}${PREFIX}/etc/ssmtp
${INSTALL_DATA} ${WRKSRC}/revaliases \
${STAGEDIR}${PREFIX}/etc/ssmtp/revaliases.sample
${INSTALL_DATA} ${WRKSRC}/ssmtp.conf \
${STAGEDIR}${PREFIX}/etc/ssmtp/ssmtp.conf.sample
${INSTALL_MAN} ${WRKSRC}/ssmtp.8 ${STAGEDIR}${MANPREFIX}/man/man8/ssmtp.8
${INSTALL_MAN} ${WRKSRC}/ssmtp.conf.5 \
${STAGEDIR}${MANPREFIX}/man/man5/ssmtp.conf.5
.include <bsd.port.mk>