diff options
Diffstat (limited to 'mail/qmail-autoresponder/Makefile')
-rw-r--r-- | mail/qmail-autoresponder/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/mail/qmail-autoresponder/Makefile b/mail/qmail-autoresponder/Makefile new file mode 100644 index 000000000000..a318a886b58f --- /dev/null +++ b/mail/qmail-autoresponder/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: qmail-autoresponder +# Date created: 25 Mar 2003 +# Whom: Sergei Kolobov <sergei@kolobov.com> +# +# $FreeBSD$ +# +# Compile-time options: +# WITH_MYSQL=yes enable support for MySQL +# + +PORTNAME= qmail-autoresponder +PORTVERSION= 0.96.1 +CATEGORIES= mail +MASTER_SITES= http://untroubled.org/qmail-autoresponder/ + +MAINTAINER= sergei@kolobov.com +COMMENT= Rate-limited autoresponder for qmail + +BUILD_DEPENDS= ${BGLIBS_ROOT}/include/iobuf/iobuf.h:${PORTSDIR}/devel/bglibs + +BGLIBS_ROOT?= ${LOCALBASE} + +PROGS= qmail-autoresponder +MAN1= qmail-autoresponder.1 +DOCS= NEWS README TODO procedure.txt + +.if defined(WITH_MYSQL) +PROGS+= qmail-autoresponder-mysql +DOCS+= schema.mysql +PLIST_SUB+= MYSQL="" +.else +PLIST_SUB+= MYSQL="@comment " +.endif + +ALL_TARGET= ${PROGS} + +pre-build: + ${ECHO_CMD} "${BGLIBS_ROOT}/include" > ${WRKSRC}/conf-bgincs + ${ECHO_CMD} "${BGLIBS_ROOT}/lib" > ${WRKSRC}/conf-bglibs + ${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin + ${ECHO_CMD} "${MANPREFIX}/man" > ${WRKSRC}/conf-man + ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc + +do-install: + cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGS} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1 +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.endif + +.include <bsd.port.mk> |