Update mail/opendmarc to 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
8 MASTER_SITE_SUBDIR=     ${PORTNAME} \
9                         ${PORTNAME}/Previous%20Releases
10
11 MAINTAINER=     freebsd@gushi.org
12 COMMENT=        DMARC library and milter implementation
13
14 LICENSE=                BSD3CLAUSE SENDMAIL
15 LICENSE_COMB=           multi
16
17 LICENSE_FILE_SENDMAIL=  ${WRKSRC}/LICENSE.Sendmail
18 LICENSE_GROUPS_SENDMAIL=        FSF OSI
19 LICENSE_NAME_SENDMAIL=  Sendmail Open Source License
20 LICENSE_PERMS_SENDMAIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
21
22 USES=           libtool shebangfix
23 SHEBANG_FILES=  reports/opendmarc-expire.in \
24                 reports/opendmarc-import.in \
25                 reports/opendmarc-params.in \
26                 reports/opendmarc-reports.in
27
28 USE_RC_SUBR=    opendmarc
29 USE_LDCONFIG=   yes
30
31 GNU_CONFIGURE=          yes
32
33 PORTDOCS=       *
34
35 OPTIONS_DEFINE= SPF
36 OPTIONS_DEFAULT=        SPF
37 SPF_DESC=       Include direct SPF checking support
38
39 SPF_BUILD_DEPENDS+=     libspf2>=1.2.5:${PORTSDIR}/mail/libspf2
40
41 .include <bsd.port.options.mk>
42
43 .if ${PORT_OPTIONS:MSPF}
44 CONFIGURE_ARGS+=        --with-spf --with-spf2-include=${LOCALBASE}/include/spf2 --with-spf2-lib=${LOCALBASE}/lib
45 .endif
46
47 post-install:
48         @${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail
49         ${INSTALL_DATA} \
50                 ${WRKSRC}/opendmarc/opendmarc.conf.sample ${STAGEDIR}${PREFIX}/etc/mail
51         @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopendmarc.so.2
52
53 .include <bsd.port.mk>