2018-02-22 11:27:00 +01:00
|
|
|
# $NetBSD: Makefile,v 1.3 2018/02/22 10:27:00 adam Exp $
|
2016-10-27 14:30:23 +02:00
|
|
|
|
2018-02-22 11:27:00 +01:00
|
|
|
DISTNAME= pypolicyd-spf-2.0.2
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
|
2016-10-27 14:30:23 +02:00
|
|
|
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
|
|
|
|
|
2017-02-25 18:43:39 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-authres-[0-9]*:../../mail/py-authres
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-spf>=2.0.9:../../mail/py-spf
|
2016-10-27 14:30:23 +02:00
|
|
|
|
2017-02-25 18:43:39 +01:00
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
2016-10-27 14:30:23 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-02-22 11:27:00 +01:00
|
|
|
PLIST_SUBST+= DOCDIR=${DOCDIR:Q} PKGBASE=${PKGBASE}
|
2016-10-27 14:30:23 +02:00
|
|
|
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"
|