o Add UCSPI_SSL OPTIONS which "Add ucspi-ssl SMTP SSL transport

layer support" based on the recent update of sysutils/ucspi-ssl
  to 0.70
o Add a FreeBSD ports based ${PREFIX}/bin/maildirsmtps which sends
  email on a maildir through smtps. Based on maildirsmtp shipped
  with the distribution.

Approved by:	maintainer (timeout 26 Jul 2005)
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2005-10-15 03:16:15 +00:00
parent e697993ffc
commit d7d52d5dc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145433
2 changed files with 40 additions and 1 deletions

View file

@ -27,7 +27,8 @@ NO_PACKAGE= Unsure of DJB license
ALL_TARGET= it
OPTIONS= AUTH "Add CRAM-MD5, PLAIN and LOGIN authentication" OFF
OPTIONS= AUTH "Add CRAM-MD5, PLAIN and LOGIN authentication" OFF \
UCSPI_SSL "Add ucspi-ssl SMTP SSL transport layer support" OFF
PROGRAMS= serialqmtp serialsmtp maildirserial setlock
SCRIPTS= maildirqmtp maildirsmtp
@ -43,6 +44,23 @@ PATCHFILES= serialmail-auth.patch
PATCH_DIST_STRIP= -p1
.endif
.if defined(WITH_UCSPI_SSL)
RUN_DEPENDS+= sslclient:${PORTSDIR}/sysutils/ucspi-ssl
PLIST_FILES+= bin/maildirsmtps
MLINKS+= maildirsmtp.1 maildirsmtps.1
.endif
post-patch:
.if defined(WITH_UCSPI_SSL)
@${SED} -E \
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
-e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%SH%%|${SH}|' \
${FILESDIR}/maildirsmtps \
> ${WRKDIR}/maildirsmtps
.endif
post-configure:
@${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home
@${ECHO_CMD} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
@ -58,5 +76,8 @@ do-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.if defined(WITH_UCSPI_SSL)
@${INSTALL_SCRIPT} ${WRKDIR}/maildirsmtps ${PREFIX}/bin
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,18 @@
#!%%SH%%
# WARNING: This file was auto-generated. Do not edit!
if [ -z "$6" ]; then
exec \
%%PREFIX%%/bin/maildirserial -b -t 1209600 -- "$1" "$2" \
%%LOCALBASE%%/bin/sslclient -RHl0 -- "$3" 465 \
%%PREFIX%%/bin/serialsmtp "$2" "$4"
else
exec \
%%PREFIX%%/bin/maildirserial -b -t 1209600 -- "$1" "$2" \
%%LOCALBASE%%/bin/sslclient -RHl0 -- "$3" 465 \
%%PREFIX%%/bin/serialsmtp "$2" "$4" "$5" "$6"
fi