# Created by: Sergei Kolobov # $FreeBSD$ PORTNAME= qmail-autoresponder PORTVERSION= 0.98 CATEGORIES= mail MASTER_SITES= http://untroubled.org/${PORTNAME}/archive/ MAINTAINER= araujo@FreeBSD.org COMMENT= Rate-limited autoresponder for qmail LIB_DEPENDS= libbg.so:devel/bglibs USES= mysql CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/bglibs LDFLAGS+= -L${LOCALBASE}/lib/mysql -L${LOCALBASE}/lib/bglibs PROGS= qmail-autoresponder qmail-autoresponder-mysql DOCS= NEWS README TODO procedure.txt schema.mysql ALL_TARGET= ${PROGS} OPTIONS_DEFINE= DOCS do-configure: ${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin ${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man" > ${WRKSRC}/conf-man ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc ${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld do-install: cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGS} ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/qmail-autoresponder.1 ${STAGEDIR}${MANPREFIX}/man/man1 @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .include