Files
ports/mail/slimta/Makefile
T
Charlie Li 06a08e69f3 python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2025-03-07 23:05:21 -05:00

39 lines
1.0 KiB
Makefile

PORTNAME= slimta
PORTVERSION= 0.9.1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= PYPI
MAINTAINER= nc@FreeBSD.org
COMMENT= Configurable MTA based on the python-slimta libraries
WWW= https://www.slimta.org/
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}passlib>0:security/py-passlib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}python-slimta>0:mail/py-python-slimta@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils
USE_RC_SUBR= ${PORTNAME}
REINPLACE_ARGS= -i ''
NO_ARCH= yes
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
PLIST_FILES= "@sample etc/slimta/logging.yaml.sample" \
"@sample etc/slimta/slimta.yaml.sample"
post-patch:
.for file in setup main state
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/${PORTNAME}/app/${file}.py
.endfor
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
.for file in logging ${PORTNAME}
@${CP} ${WRKSRC}/${PORTNAME}/app/etc/${file}.yaml.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
.endfor
.include <bsd.port.mk>