| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.22 2019/12/15 09:48:37 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.23 2020/03/22 22:32:29 rillig Exp $ |
2 | | | 2 | |
3 | .include "../../security/py-certbot/Makefile.common" | | 3 | .include "../../security/py-certbot/Makefile.common" |
4 | | | 4 | |
5 | DISTNAME= certbot-${CERTBOT_VERSION} | | 5 | DISTNAME= certbot-${CERTBOT_VERSION} |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=c/certbot/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=c/certbot/} |
7 | | | 7 | |
8 | COMMENT= Client for the Let's Encrypt CA | | 8 | COMMENT= Client for the Let's Encrypt CA |
9 | | | 9 | |
10 | DEPENDS+= ${PYPKGPREFIX}-acme>=0.40.0:../../security/py-acme | | 10 | DEPENDS+= ${PYPKGPREFIX}-acme>=0.40.0:../../security/py-acme |
11 | DEPENDS+= ${PYPKGPREFIX}-configargparse>=0.9.3:../../devel/py-configargparse | | 11 | DEPENDS+= ${PYPKGPREFIX}-configargparse>=0.9.3:../../devel/py-configargparse |
12 | DEPENDS+= ${PYPKGPREFIX}-configobj-[0-9]*:../../devel/py-configobj | | 12 | DEPENDS+= ${PYPKGPREFIX}-configobj-[0-9]*:../../devel/py-configobj |
13 | DEPENDS+= ${PYPKGPREFIX}-cryptography>=1.2.3:../../security/py-cryptography | | 13 | DEPENDS+= ${PYPKGPREFIX}-cryptography>=1.2.3:../../security/py-cryptography |
14 | DEPENDS+= ${PYPKGPREFIX}-distro>=1.0.1:../../devel/py-distro | | 14 | DEPENDS+= ${PYPKGPREFIX}-distro>=1.0.1:../../devel/py-distro |
| @@ -24,31 +24,28 @@ DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[ | | | @@ -24,31 +24,28 @@ DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[ |
24 | # https://github.com/certbot/certbot/issues/2956 | | 24 | # https://github.com/certbot/certbot/issues/2956 |
25 | TEST_DEPENDS+= ${PYPKGPREFIX}-readline-[0-9]*:../../devel/py-readline | | 25 | TEST_DEPENDS+= ${PYPKGPREFIX}-readline-[0-9]*:../../devel/py-readline |
26 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | | 26 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test |
27 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov | | 27 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov |
28 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist | | 28 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist |
29 | | | 29 | |
30 | BUILD_DEFS+= VARBASE | | 30 | BUILD_DEFS+= VARBASE |
31 | | | 31 | |
32 | PKG_SYSCONFSUBDIR= letsencrypt | | 32 | PKG_SYSCONFSUBDIR= letsencrypt |
33 | | | 33 | |
34 | SUBST_CLASSES+= path | | 34 | SUBST_CLASSES+= path |
35 | SUBST_STAGE.path= pre-build | | 35 | SUBST_STAGE.path= pre-build |
36 | SUBST_MESSAGE.path= Fixing default paths | | 36 | SUBST_MESSAGE.path= Fixing default paths |
37 | SUBST_FILES.path+= certbot/cert_manager.py | | 37 | SUBST_FILES.path= certbot/compat/misc.py |
38 | SUBST_FILES.path+= certbot/cli.py | | 38 | SUBST_SED.path= -e 's,/etc/letsencrypt,${PKG_SYSCONFDIR},g' |
39 | SUBST_FILES.path+= certbot/compat/misc.py | | | |
40 | SUBST_FILES.path+= certbot/tests/cli_test.py | | | |
41 | SUBST_SED.path+= -e 's,/etc/letsencrypt,${PKG_SYSCONFDIR},g' | | | |
42 | SUBST_SED.path+= -e 's,/var/lib/letsencrypt,${VARBASE}/letsencrypt,g' | | 39 | SUBST_SED.path+= -e 's,/var/lib/letsencrypt,${VARBASE}/letsencrypt,g' |
43 | SUBST_SED.path+= -e 's,/var/log/letsencrypt,${VARBASE}/letsencrypt/log,g' | | 40 | SUBST_SED.path+= -e 's,/var/log/letsencrypt,${VARBASE}/letsencrypt/log,g' |
44 | | | 41 | |
45 | MAKE_DIRS+= ${VARBASE}/letsencrypt/log | | 42 | MAKE_DIRS+= ${VARBASE}/letsencrypt/log |
46 | | | 43 | |
47 | INSTALLATION_DIRS+= share/examples/certbot-${PYVERSSUFFIX} | | 44 | INSTALLATION_DIRS+= share/examples/certbot-${PYVERSSUFFIX} |
48 | | | 45 | |
49 | post-install: | | 46 | post-install: |
50 | cd ${DESTDIR}${PREFIX}/bin && \ | | 47 | cd ${DESTDIR}${PREFIX}/bin && \ |
51 | ${MV} certbot certbot-${PYVERSSUFFIX} || ${TRUE} | | 48 | ${MV} certbot certbot-${PYVERSSUFFIX} || ${TRUE} |
52 | ${INSTALL_DATA} ${WRKSRC}/examples/cli.ini \ | | 49 | ${INSTALL_DATA} ${WRKSRC}/examples/cli.ini \ |
53 | ${DESTDIR}${PREFIX}/share/examples/certbot-${PYVERSSUFFIX} | | 50 | ${DESTDIR}${PREFIX}/share/examples/certbot-${PYVERSSUFFIX} |
54 | | | 51 | |