freebsd-ports/mail/qsheff/Makefile
Marcus Alves Grando c22aa7140d Update to 1.0.r4 [1]
Respect CFLAGS

PR:		88055 [1]
Submitted by:	Gabor Kovesdan <gabor.kovesdan@t-hosting.hu> [1]
2005-10-26 21:31:58 +00:00

60 lines
1.6 KiB
Makefile

# New ports collection makefile for: qsheff
# Date created: 14 Jul 2005
# Whom: Ozkan KIRIK <ozkan@enderunix.org>
#
# $FreeBSD$
#
PORTNAME= qsheff
PORTVERSION= 1.0.r4
CATEGORIES= mail
MASTER_SITES= http://www.enderunix.org/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-r/}
MAINTAINER= ports@FreeBSD.org
COMMENT= A qmail-queue replacement to filter mail traffic
BUILD_DEPENDS= ${QMAIL_DIR}/bin/qmail-queue:${PORTSDIR}/mail/qmail \
${LOCALBASE}/bin/ripmime:${PORTSDIR}/mail/ripmime
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_REINPLACE= YES
GNU_CONFIGURE= YES
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PORTDOCS= spamass-qsheff.en.html README COPYING AUTHORS ChangeLog \
INSTALL UPGRADE THANKS TODO
OPTIONS= CLAMAV "Integrate with Clam AntiVirus" on
.if exists(${LOCALBASE}/qmail/bin/qmail-queue)
QMAIL_DIR?= ${LOCALBASE}/qmail
.else
QMAIL_DIR?= /var/qmail
.endif
CONFIGURE_ARGS+= --with-qmaildir=${QMAIL_DIR}
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_CLAMAV)
RUN_DEPENDS+= ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
.endif
post-patch:
@${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS +=|" ${WRKSRC}/Makefile.in
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|\(install-data-am: \)install-qsheffdocDATA|\1|g' \
-e 's| contribute$$||g' \
${WRKSRC}/Makefile.in
.endif
post-build:
.if defined(WITHOUT_CLAMAV)
@${REINPLACE_CMD} -e 's|enable_virus_prog = 1|enable_virus_prog = 0|g' \
${WRKSRC}/etc/qsheff.conf-default
.endif
.include <bsd.port.post.mk>