50 lines
968 B
Makefile
50 lines
968 B
Makefile
# $OpenBSD: Makefile,v 1.59 2014/09/21 16:47:45 sthen Exp $
|
|
|
|
COMMENT= sendmail milter to scan messages for viruses and spam
|
|
|
|
DISTNAME= smtp-vilter-1.3.6
|
|
EPOCH= 0
|
|
REVISION= 1
|
|
|
|
CATEGORIES= mail
|
|
|
|
HOMEPAGE= http://www.etc.msys.ch/software/smtp-vilter/
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c m pthread milter
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
LIB_DEPENDS= mail/sendmail,-libmilter
|
|
|
|
NO_TEST= Yes
|
|
|
|
FLAVORS= ldap
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mldap}
|
|
MAKE_FLAGS+= -DENABLE_LDAP
|
|
LIB_DEPENDS+= databases/openldap
|
|
WANTLIB += ldap_r lber
|
|
.endif
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
FAKE_FLAGS= BINDIR=${PREFIX}/sbin \
|
|
LIBDIR=${PREFIX}/lib/smtp-vilter \
|
|
MANDIR=${PREFIX}/man/man \
|
|
SPATH=${PREFIX}/share/examples/smtp-vilter
|
|
|
|
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>
|