diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-10-15 03:16:15 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-10-15 03:16:15 +0000 |
commit | d7d52d5dc09a144ccd7e0e14ff1417a0f597adb5 (patch) | |
tree | c99743f1b281be8eeac64361abd39c23ddb2348b /mail/serialmail | |
parent | e697993ffcffc73e2a365bc2683c1f142eac5393 (diff) | |
download | ports-d7d52d5dc09a144ccd7e0e14ff1417a0f597adb5.tar.gz ports-d7d52d5dc09a144ccd7e0e14ff1417a0f597adb5.zip |
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)
Notes
Notes:
svn path=/head/; revision=145433
Diffstat (limited to 'mail/serialmail')
-rw-r--r-- | mail/serialmail/Makefile | 23 | ||||
-rw-r--r-- | mail/serialmail/files/maildirsmtps | 18 |
2 files changed, 40 insertions, 1 deletions
diff --git a/mail/serialmail/Makefile b/mail/serialmail/Makefile index ad364873eb47..7bd3442e0a28 100644 --- a/mail/serialmail/Makefile +++ b/mail/serialmail/Makefile @@ -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> diff --git a/mail/serialmail/files/maildirsmtps b/mail/serialmail/files/maildirsmtps new file mode 100644 index 000000000000..8c6787e7eae3 --- /dev/null +++ b/mail/serialmail/files/maildirsmtps @@ -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 |