# $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"