pkgsrc/mail/py-policyd-spf/Makefile
adam 9c6729729b py-policyd-spf: updated to 2.0.2
2.0.2 (2017-12-14)
* Fix treatment of No_Mail configuration parameter so that specifying
  No_Mail = False (the default) does not cause incorrect results
* Conditionally import authres is Header_Type is AR and raise an error if it
  is missing (sorry pep-8) to avoid cases where users change the config
  and suddenly it doesn't work for an example, see:
  https://bugzilla.redhat.com/show_bug.cgi?id=1208876
* Update and correct Mail_From_pass_restriction description in
  policyd-spf.conf(5 ()
* Update HELO checking default option in policyd-spf.conf(5)
* Note that SPF_Not_Pass is not consistent with RFC 7208 in the HELO
  checking section of policyd-spf.conf(5) - already documented for Mail From
2018-02-22 10:27:00 +00:00

42 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2018/02/22 10:27:00 adam Exp $
DISTNAME= pypolicyd-spf-2.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
CATEGORIES= mail python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pypolicyd-spf/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pypi.python.org/pypi/pypolicyd-spf
COMMENT= Python based policy daemon for Postfix SPF checking
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-authres-[0-9]*:../../mail/py-authres
DEPENDS+= ${PYPKGPREFIX}-spf>=2.0.9:../../mail/py-spf
PYTHON_VERSIONS_INCOMPATIBLE= 27
DOCDIR= share/doc/${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
PKG_SYSCONFSUBDIR= python-policyd-spf
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= policyd-spf policyd-spf.1 policyd-spf.conf.5
SUBST_FILES.paths+= policyd-spf.peruser.5 setup.py
SUBST_VARS.paths= PKGMANDIR PKG_SYSCONFDIR
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
CONF_FILES= ${EGDIR}/policyd-spf.conf ${PKG_SYSCONFDIR}/policyd-spf.conf
PLIST_SUBST+= DOCDIR=${DOCDIR:Q} PKGBASE=${PKGBASE}
PRINT_PLIST_AWK+= { gsub(/${DOCDIR:S|/|\\/|g}/, "$${DOCDIR}"); }
PRINT_PLIST_AWK+= { gsub(/${PKGBASE}/, "$${PKGBASE}"); }
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.per_user_whitelisting ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/policyd-spf.conf.commented ${DESTDIR}${EGDIR}/policyd-spf.conf
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"