1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/mail/py-apolicy/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

36 lines
920 B
Makefile

# Created by: Chifeng QU <chifeng@gmail.com>
# $FreeBSD$
PORTNAME= apolicy
PORTVERSION= 0.73
PORTREVISION= 3
CATEGORIES= mail python
MASTER_SITES= http://download.gna.org/apolicy/%SUBDIR%/ \
http://www.chifeng.name/dist/apolicy/%SUBDIR%/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= ACL system for Postfix, as a policy daemon
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipy>=0:net-mgmt/py-ipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyspf>=0:mail/py-pyspf@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR}
USES= python:2.7
USE_PYTHON= autoplist distutils
NO_ARCH= yes
NO_BUILD= yes
USE_RC_SUBR= apolicyd
SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
PYTHON_CMD=${PYTHON_CMD}
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/setup.py
.include <bsd.port.mk>