Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/py-certbot-nginx Look for nginx.conf in PKG_S...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/31b1d270418a
branches:  trunk
changeset: 434736:31b1d270418a
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Sun Jun 21 08:00:03 2020 +0000

description:
Look for nginx.conf in PKG_SYSCONFDIR.nginx

diffstat:

 security/py-certbot-nginx/Makefile                                             |  11 +++++-
 security/py-certbot-nginx/distinfo                                             |   3 +-
 security/py-certbot-nginx/patches/patch-certbot__nginx___internal_constants.py |  17 ++++++++++
 3 files changed, 29 insertions(+), 2 deletions(-)

diffs (61 lines):

diff -r 1a65408dd483 -r 31b1d270418a security/py-certbot-nginx/Makefile
--- a/security/py-certbot-nginx/Makefile        Sun Jun 21 07:44:08 2020 +0000
+++ b/security/py-certbot-nginx/Makefile        Sun Jun 21 08:00:03 2020 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.11 2020/05/07 10:53:46 adam Exp $
+# $NetBSD: Makefile,v 1.12 2020/06/21 08:00:03 plunky Exp $
 
 .include "../../security/py-certbot/Makefile.common"
 
 DISTNAME=      certbot-nginx-${CERTBOT_VERSION}
+PKGREVISION=   1
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/certbot-nginx/}
 
 COMMENT=       Nginx plugin for Certbot
@@ -15,5 +16,13 @@
 DEPENDS+=      ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-ZopeInterface-[0-9]*:../../devel/py-ZopeInterface
 
+PKG_SYSCONFVAR=                nginx
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_MESSAGE.paths=   Fixing absolute paths.
+SUBST_FILES.paths=     certbot_nginx/_internal/constants.py
+SUBST_VARS.paths=      PKG_SYSCONFDIR
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1a65408dd483 -r 31b1d270418a security/py-certbot-nginx/distinfo
--- a/security/py-certbot-nginx/distinfo        Sun Jun 21 07:44:08 2020 +0000
+++ b/security/py-certbot-nginx/distinfo        Sun Jun 21 08:00:03 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.17 2020/06/09 12:47:37 mef Exp $
+$NetBSD: distinfo,v 1.18 2020/06/21 08:00:03 plunky Exp $
 
 SHA1 (certbot-nginx-1.5.0.tar.gz) = 6e92ce5ab68a6650810e36e85291f1bc6554ab90
 RMD160 (certbot-nginx-1.5.0.tar.gz) = c2f7f325f897a38e2e83ea58290c9178603bc6da
 SHA512 (certbot-nginx-1.5.0.tar.gz) = 034cd3b9be3bd6e4e15ec4e01335814013049d48932a55f99045ebee757ccfbc19d1513abdc6f0a9ec4d1ed985d5113368f9720d8a1e4fc0ff2548a346170a9e
 Size (certbot-nginx-1.5.0.tar.gz) = 73824 bytes
+SHA1 (patch-certbot__nginx___internal_constants.py) = b6e61f8785ffa2f6e0de0052105e2996bd93075c
diff -r 1a65408dd483 -r 31b1d270418a security/py-certbot-nginx/patches/patch-certbot__nginx___internal_constants.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-certbot-nginx/patches/patch-certbot__nginx___internal_constants.py    Sun Jun 21 08:00:03 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-certbot__nginx___internal_constants.py,v 1.1 2020/06/21 08:00:03 plunky Exp $
+
+Look for nginx.conf in PKG_SYSCONFDIR
+
+--- certbot_nginx/_internal/constants.py.orig  2020-02-04 21:46:57.000000000 +0000
++++ certbot_nginx/_internal/constants.py
+@@ -1,8 +1,8 @@
+ """nginx plugin constants."""
+ import platform
+ 
+-FREEBSD_DARWIN_SERVER_ROOT = "/usr/local/etc/nginx"
+-LINUX_SERVER_ROOT = "/etc/nginx"
++FREEBSD_DARWIN_SERVER_ROOT = "@PKG_SYSCONFDIR@/nginx"
++LINUX_SERVER_ROOT = "@PKG_SYSCONFDIR@/nginx"
+ 
+ if platform.system() in ('FreeBSD', 'Darwin'):
+     server_root_tmp = FREEBSD_DARWIN_SERVER_ROOT



Home | Main Index | Thread Index | Old Index