1PORTNAME= certbot-apache 2PORTVERSION= ${ACME_VERSION} 3CATEGORIES= security python 4MASTER_SITES= PYPI \ 5 https://github.com/certbot/certbot/releases/download/v${PORTVERSION}/ 6PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} 7DISTNAME= certbot_apache-${PORTVERSION} 8 9MAINTAINER= ports@MidnightBSD.org 10COMMENT= Apache plugin for Certbot 11WWW= https://certbot.eff.org/ \ 12 https://github.com/certbot/certbot \ 13 https://github.com/certbot/certbot/tree/master/certbot-apache 14 15LICENSE= Apache-2.0 16LICENSE_FILE= ${WRKSRC}/LICENSE.txt 17 18RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}acme>=${ACME_VERSION},1:security/py-acme@${PY_FLAVOR} \ 19 ${PYTHON_PKGNAMEPREFIX}certbot>=${ACME_VERSION},1:security/py-certbot@${PY_FLAVOR} \ 20 ${PYTHON_PKGNAMEPREFIX}python-augeas>=0:textproc/py-python-augeas@${PY_FLAVOR} \ 21 ${PYTHON_PKGNAMEPREFIX}setuptools>=41.6.0:devel/py-setuptools@${PY_FLAVOR} 22 23USES= python 24USE_PYTHON= autoplist concurrent distutils 25 26NO_ARCH= yes 27NO_TEST= yes 28 29.include <bsd.port.pre.mk> 30 31post-patch: 32 @${REINPLACE_CMD} -e 's|apache2ctl|apachectl|' ${WRKSRC}/certbot_apache/_internal/configurator.py 33 @${REINPLACE_CMD} -e 's|/etc/apache2|${LOCALBASE}/etc/apache24|' ${WRKSRC}/certbot_apache/_internal/configurator.py 34 35.include "${.CURDIR}/../py-acme/version.mk" 36.include <bsd.port.post.mk> 37