openbsd-ports/mail/smtp-vilter/Makefile
ajacoutot 4ec44530ca Simplify after recent rc.subr change.
The framework is now stable and we will start documenting it (at last).
2010-12-27 14:50:22 +00:00

45 lines
856 B
Makefile

# $OpenBSD: Makefile,v 1.45 2010/12/27 14:50:23 ajacoutot Exp $
COMMENT= sendmail milter to scan messages for viruses and spam
DISTNAME= smtp-vilter-1.3.6
REVISION= 10
CATEGORIES= mail
HOMEPAGE= http://www.etc.msys.ch/software/smtp-vilter/
SHARED_ONLY= Yes
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c m pthread milter
MASTER_SITES= ${HOMEPAGE}
EXTRACT_SUFX= .tgz
NO_REGRESS= Yes
FLAVORS= ldap
FLAVOR?=
.if ${FLAVOR:L:Mldap}
MAKE_FLAGS+= -DENABLE_LDAP
LIB_DEPENDS+= databases/openldap
BUILD_DEPENDS+= misc/libutf8
WANTLIB += ldap_r lber
.endif
pre-configure:
${SUBST_CMD} ${WRKSRC}/etc/smtp-vilter/smtp-vilter.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
cp -r ${WRKSRC}/etc/smtp-vilter ${PREFIX}/share/examples/
.include <bsd.port.mk>