# $NetBSD: Makefile,v 1.3 2017/01/12 16:02:44 fhajny Exp $ PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= security COMMENT= Client for the Let's Encrypt CA MAINTAINER= filip@joyent.com LICENSE= apache-2.0 EGG_NAME= ${DISTNAME} # Only supports Python 2.6 and 2.7 so far # https://github.com/certbot/certbot#system-requirements PYTHON_VERSIONS_ACCEPTED= 27 .include "Makefile.common" DEPENDS+= ${PYPKGPREFIX}-acme-${PKGVERSION_NOREV}{nb*,}:../../security/py-acme DEPENDS+= ${PYPKGPREFIX}-configargparse>=0.9.3:../../devel/py-configargparse DEPENDS+= ${PYPKGPREFIX}-configobj-[0-9]*:../../devel/py-configobj DEPENDS+= ${PYPKGPREFIX}-cryptography>=0.7:../../security/py-cryptography DEPENDS+= ${PYPKGPREFIX}-dialog>=3.2.2rc1:../../devel/py-dialog2 DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock DEPENDS+= ${PYPKGPREFIX}-OpenSSL-[0-9]*:../../security/py-OpenSSL DEPENDS+= ${PYPKGPREFIX}-parsedatetime>=2.0:../../time/py-parsedatetime DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz DEPENDS+= ${PYPKGPREFIX}-rfc3339-[0-9]*:../../time/py-rfc3339 DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six DEPENDS+= ${PYPKGPREFIX}-ZopeComponent-[0-9]*:../../devel/py-ZopeComponent DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[0-9]*:../../devel/py-ZopeInterface # Needed for the test target # https://github.com/certbot/certbot/issues/2956 BUILD_DEPENDS+= ${PYPKGPREFIX}-readline-[0-9]*:../../devel/py-readline BUILD_DEFS+= VARBASE PKG_SYSCONFSUBDIR= letsencrypt SUBST_CLASSES+= path SUBST_STAGE.path= pre-build SUBST_MESSAGE.path= Fixing default paths SUBST_FILES.path+= certbot/constants.py certbot/display/ops.py SUBST_FILES.path+= certbot/plugins/*.py certbot/tests/*.py SUBST_SED.path+= -e 's,/etc/letsencrypt,${PKG_SYSCONFDIR},g' SUBST_SED.path+= -e 's,/var/lib/letsencrypt,${VARBASE}/letsencrypt,g' SUBST_SED.path+= -e 's,/var/log/letsencrypt,${VARBASE}/letsencrypt/log,g' MAKE_DIRS+= ${VARBASE}/letsencrypt/log INSTALLATION_DIRS+= share/examples/certbot post-install: ${INSTALL_DATA} ${WRKSRC}/examples/cli.ini \ ${DESTDIR}${PREFIX}/share/examples/certbot .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk"