# Created by: Tom Hukins # $FreeBSD$ PORTNAME= serialmail PORTVERSION= 0.75 PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= http://cr.yp.to/software/ \ ftp://ftp.gbnet.net/pub/qmail/ \ ftp://ftp.de.uu.net/pub/unix/mail/qmail/ \ ftp://ftp.iway.fr/pub/unix/mail/qmail/ MAINTAINER= bdrewery@FreeBSD.org COMMENT= Tools for passing mail across serial links RUN_DEPENDS= tcpserver:${PORTSDIR}/sysutils/ucspi-tcp UCSPI_SSL_RUN_DEPENDS= sslclient:${PORTSDIR}/sysutils/ucspi-ssl USES= qmail:run NO_STAGE= yes OPTIONS_SUB= yes RESTRICTED= Unsure of DJB license ALL_TARGET= it OPTIONS_DEFINE= AUTH DOCS UCSPI_SSL AUTH_DESC= Add CRAM-MD5, PLAIN and LOGIN authentication UCSPI_SSL_DESC= ucspi-ssl SMTP SSL transport layer support PROGRAMS= serialqmtp serialsmtp maildirserial setlock SCRIPTS= maildirqmtp maildirsmtp MAN1= maildirqmtp.1 maildirserial.1 maildirsmtp.1 serialqmtp.1 \ serialsmtp.1 setlock.1 PORTDOCS= AUTOTURN BLURB CHANGES FROMISP README TODO TOISP THANKS .include .if ${PORT_OPTIONS:MAUTH} PATCH_SITES= http://www.ingorohloff.de/soft/ PATCHFILES= serialmail-auth.patch PATCH_DIST_STRIP= -p1 .endif .if ${PORT_OPTIONS:MUCSPI_SSL} MLINKS+= maildirsmtp.1 maildirsmtps.1 .endif post-patch: .if ${PORT_OPTIONS:MUCSPI_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 @${ECHO_CMD} ${CC} -s > ${WRKSRC}/conf-ld @${ECHO_CMD} ${QMAIL_PREFIX} > ${WRKSRC}/conf-qmail do-install: cd ${WRKSRC} && \ ${INSTALL_PROGRAM} ${PROGRAMS} ${PREFIX}/bin && \ ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin && \ ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1 .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif .if ${PORT_OPTIONS:MUCSPI_SSL} @${INSTALL_SCRIPT} ${WRKDIR}/maildirsmtps ${PREFIX}/bin .endif .include