From 2f6fbe9987811285849a77ea74273b07a5caf4f7 Mon Sep 17 00:00:00 2001 From: Lloyd Parkes Date: Tue, 9 Jun 2020 07:06:38 +1200 Subject: [PATCH] Add support for NetBSD (#8033) * Add support for NetBSD by telling certbot-nginx where the nginx configuration directory is. * Update the CHANGELOG. * Pass the right type of sequence to "in". Thanks lint. * Adjust the CHANGELOG.md entry following feedback from ohemorange. Co-authored-by: Lloyd Parkes --- certbot-nginx/certbot_nginx/_internal/constants.py | 3 +++ certbot/CHANGELOG.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/certbot-nginx/certbot_nginx/_internal/constants.py b/certbot-nginx/certbot_nginx/_internal/constants.py index fbf6ed424..c10eb5098 100644 --- a/certbot-nginx/certbot_nginx/_internal/constants.py +++ b/certbot-nginx/certbot_nginx/_internal/constants.py @@ -3,9 +3,12 @@ import platform FREEBSD_DARWIN_SERVER_ROOT = "/usr/local/etc/nginx" LINUX_SERVER_ROOT = "/etc/nginx" +PKGSRC_SERVER_ROOT = "/usr/pkg/etc/nginx" if platform.system() in ('FreeBSD', 'Darwin'): server_root_tmp = FREEBSD_DARWIN_SERVER_ROOT +elif platform.system() in ('NetBSD',): + server_root_tmp = PKGSRC_SERVER_ROOT else: server_root_tmp = LINUX_SERVER_ROOT diff --git a/certbot/CHANGELOG.md b/certbot/CHANGELOG.md index b7a71ff9f..cb5544d2f 100644 --- a/certbot/CHANGELOG.md +++ b/certbot/CHANGELOG.md @@ -6,7 +6,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/). ### Added -* +* Add minimal code to run Nginx plugin on NetBSD. ### Changed