diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-10-22 11:10:17 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-10-22 11:10:17 +0000 |
commit | e4e4c748055c3e9ca2a3eb1b917e6feba67ec433 (patch) | |
tree | e1b610b1cf03b6ea2f790440bd7cccaabd6ae143 /mail/ssmtp/Makefile | |
parent | a5873490d47d2eef08ab1b2110675ba4523908bd (diff) | |
download | ports-e4e4c748055c3e9ca2a3eb1b917e6feba67ec433.tar.gz ports-e4e4c748055c3e9ca2a3eb1b917e6feba67ec433.zip |
Clean up patches
- Clean up REINPLACE_CMDs, use patches if possible
- Set OPENSSL_LIBS instead of OPENSSL_LDFLAGS in order to remove one
patch for the configure script
- Patch ssmtp.8 to refer to the proper path for sendmail
- Remove a patch adding strndup for FreeBSD 7.
Notes
Notes:
svn path=/head/; revision=552960
Diffstat (limited to 'mail/ssmtp/Makefile')
-rw-r--r-- | mail/ssmtp/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile index 843c9a2742c1..77e40bafc0b6 100644 --- a/mail/ssmtp/Makefile +++ b/mail/ssmtp/Makefile @@ -3,7 +3,7 @@ PORTNAME= ssmtp PORTVERSION= 2.64 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= mail MASTER_SITES= DEBIAN_POOL DISTFILES= ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX} @@ -37,16 +37,18 @@ LOGFILE_CONFIGURE_ENABLE= logfile OPENSSL_USES= ssl OPENSSL_CONFIGURE_ENABLE= ssl OPENSSL_CFLAGS= -I${OPENSSLINC} -OPENSSL_LDFLAGS= -L${OPENSSLLIB} +OPENSSL_LIBS= -L${OPENSSLLIB} -lcrypto USERPREFS_CFLAGS= -DUSERPREFS XORIGIP_EXTRA_PATCHES= ${FILESDIR}/remote-addr.patch _MAILERCONF= /etc/mail/mailer.conf 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 + @${REINPLACE_CMD} "s|%%ETCDIR%%|${ETCDIR}|" \ + ${WRKSRC}/ssmtp.8 \ + ${WRKSRC}/ssmtp.c \ + ${WRKSRC}/ssmtp.conf \ + ${WRKSRC}/ssmtp.conf.5 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ssmtp ${STAGEDIR}${PREFIX}/sbin/ssmtp |