Tweak mail/opendmarc version 1.3.1
[dports.git] / mail / opendmarc / Makefile
1 # Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
2 # $FreeBSD$
3
4 PORTNAME=       opendmarc
5 PORTVERSION=    1.3.1
6 CATEGORIES=     mail security
7 MASTER_SITES=   SF/${PORTNAME} \
8                 SF/${PORTNAME}/Previous%20Releases
9
10 MAINTAINER=     freebsd@gushi.org
11 COMMENT=        DMARC library and milter implementation
12
13 LICENSE=                BSD3CLAUSE SENDMAIL
14 LICENSE_COMB=           multi
15
16 LICENSE_FILE_SENDMAIL=  ${WRKSRC}/LICENSE.Sendmail
17 LICENSE_GROUPS_SENDMAIL=        FSF OSI
18 LICENSE_NAME_SENDMAIL=  Sendmail Open Source License
19 LICENSE_PERMS_SENDMAIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
20
21 .if !exists( /usr/include/libmilter/mfapi.h )
22 BUILD_DEPENDS+= ${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
23 CFLAGS+=        -I${LOCALBASE}/include
24 .endif
25
26 USES=           libtool shebangfix
27 SHEBANG_FILES=  reports/opendmarc-expire.in \
28                 reports/opendmarc-import.in \
29                 reports/opendmarc-params.in \
30                 reports/opendmarc-reports.in
31
32 USE_RC_SUBR=    opendmarc
33 USE_LDCONFIG=   yes
34
35 GNU_CONFIGURE=          yes
36
37 PORTDOCS=       *
38
39 OPTIONS_DEFINE= SPF
40 OPTIONS_DEFAULT=        SPF
41 SPF_DESC=       Include direct SPF checking support
42
43 SPF_BUILD_DEPENDS+=     libspf2>=1.2.5:${PORTSDIR}/mail/libspf2
44
45 .include <bsd.port.options.mk>
46
47 .if ${PORT_OPTIONS:MSPF}
48 CONFIGURE_ARGS+=        --with-spf --with-spf2-include=${LOCALBASE}/include/spf2 --with-spf2-lib=${LOCALBASE}/lib
49 .endif
50
51 post-install:
52         @${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail
53         ${INSTALL_DATA} \
54                 ${WRKSRC}/opendmarc/opendmarc.conf.sample ${STAGEDIR}${PREFIX}/etc/mail
55         @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopendmarc.so.2
56
57 .include <bsd.port.mk>