# New ports collection makefile for: raysfilter
# Date created: 19.Dec 2001
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD: ports/mail/raysfilter/Makefile,v 1.14 2007/01/13 04:16:23 dinoex Exp $
#
PORTNAME= raysfilter
PORTVERSION= 1.14
CATEGORIES= mail
MASTER_SITES= http://www.sendmail-filter.lsbu.ac.uk/
DISTNAME= rays-filter-${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A configurable filter for Sendmail Milter
CTARGETS+= rays-filter
CFLAGS+= -Wall ${PTHREAD_CFLAGS:S=""==}
LIBS+= ${PTHREAD_LIBS}
ETCFILES= header-list.conf mail-filter.conf string-list.conf
BINFILES= mf-reset mf-start mf-stop mf-archive mf-analyze mf-memory
DOCSFILES= rays-filter.html install.html configure.html operate.html \
utilities.html GNU-public-licence.txt copyright.txt README
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
.if exists(${LOCALBASE}/include/libmilter/mfdef.h) \
|| defined(WITH_SENDMAIL_BASE)
LIBS+= -lmilter
.else
LIBS+= -lmilter -lsmutil
.endif
.if defined(SENDMAIL_WITH_SFIO)
LIBS+= -lsfio
.endif
.for i in ${CTARGETS}
${i}:
cd ${WRKSRC} && \
${CC} ${CFLAGS} ${LDFLAGS} -o ${i} ${i}.c ${LIBS} ${FLAGS}
.endfor
do-build: ${CTARGETS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rays-filter \
${PREFIX}/libexec/rays-filter
${INSTALL_SCRIPT} ${WRKSRC}/mail-filter \
${PREFIX}/etc/rc.d/raysfilter.sh.sample
.for i in ${BINFILES}
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin/
.endfor
${MKDIR} ${PREFIX}/etc/mail-filter
.for i in ${ETCFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/etc/mail-filter/${i}-dist
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCSFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor
.endif
.include <bsd.port.post.mk>
syntax highlighted by Code2HTML, v. 0.9.1