1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/mail/postfix-policyd-spf-python/Makefile
Mathieu Arnold 4376dbbb58 Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
2018-06-20 17:05:41 +00:00

53 lines
1.6 KiB
Makefile

# Created by: Giel van Schijndel <me@mortis.eu>
# $FreeBSD$
PORTNAME= postfix-policyd-spf-python
PORTVERSION= 2.0.2
CATEGORIES= mail python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pypolicyd-spf-${PORTVERSION}
MAINTAINER= yasu@utahime.org
COMMENT= Pure Python Postfix policy daemon for SPF checking
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyspf>0:mail/py-pyspf@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}authres>0:mail/py-authres@${PY_FLAVOR}
USES= python:3.3+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
PORTDOCS= CHANGES \
README \
README.per_user_whitelisting \
policyd-spf.conf.commented
PKGMESSAGE= ${WRKSRC}/pkg-message
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
post-patch:
@${MV} ${WRKSRC}/policyd-spf.conf ${WRKSRC}/policyd-spf.conf.sample
@${REINPLACE_CMD} -e "s|/etc/python-policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \
${WRKSRC}/policyd-spf
@${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \
-e "s|/usr/bin/policyd-spf|${PREFIX}/bin/policyd-spf|" \
-e "s|/etc/postfix/|${LOCALBASE}/etc/postfix/|" ${WRKSRC}/policyd-spf.1
@${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \
${WRKSRC}/policyd-spf.conf.5
@${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \
-e "s|/etc/pypolicyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \
${WRKSRC}/policyd-spf.peruser.5
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>