svn commit: r539778 - in head/security: . py-certbot-dns-cpanel py-certbot-dns-cpanel/files
Danilo G. Baio
dbaio at FreeBSD.org
Sun Jun 21 18:43:13 UTC 2020
Author: dbaio
Date: Sun Jun 21 18:43:11 2020
New Revision: 539778
URL: https://svnweb.freebsd.org/changeset/ports/539778
Log:
Add security/py-certbot-dns-cpanel: CPanel DNS Authenticator plugin for Certbot
Plugin to allow acme dns-01 authentication of a name managed in cPanel. Useful
for automating and creating a Let's Encrypt certificate (wildcard or not) for a
service with a name managed by cPanel, but installed on a server not managed in
cPanel.
WWW: https://pypi.org/project/certbot-dns-cpanel/
PR: 244096
Submitted by: Venim <h.freshports at skarnell.se>
Added:
head/security/py-certbot-dns-cpanel/
head/security/py-certbot-dns-cpanel/Makefile (contents, props changed)
head/security/py-certbot-dns-cpanel/distinfo (contents, props changed)
head/security/py-certbot-dns-cpanel/files/
head/security/py-certbot-dns-cpanel/files/credentials.ini.sample (contents, props changed)
head/security/py-certbot-dns-cpanel/files/pkg-message.in (contents, props changed)
head/security/py-certbot-dns-cpanel/pkg-descr (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Sun Jun 21 17:35:05 2020 (r539777)
+++ head/security/Makefile Sun Jun 21 18:43:11 2020 (r539778)
@@ -849,6 +849,7 @@
SUBDIR += py-certbot-apache
SUBDIR += py-certbot-dns-cloudflare
SUBDIR += py-certbot-dns-cloudxns
+ SUBDIR += py-certbot-dns-cpanel
SUBDIR += py-certbot-dns-digitalocean
SUBDIR += py-certbot-dns-dnsimple
SUBDIR += py-certbot-dns-dnsmadeeasy
Added: head/security/py-certbot-dns-cpanel/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/py-certbot-dns-cpanel/Makefile Sun Jun 21 18:43:11 2020 (r539778)
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME= certbot-dns-cpanel
+DISTVERSION= 0.2.2
+CATEGORIES= security python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= h.freshports at skarnell.se
+COMMENT= CPanel DNS Authenticator plugin for Certbot
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certbot>0:security/py-certbot@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}zope.interface>0:devel/py-zope.interface@${PY_FLAVOR} \
+ ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+SUB_FILES= pkg-message
+
+PLIST_FILES= "${PREFIX}/etc/certbot-dns-cpanel/credentials.ini.sample"
+
+NO_ARCH= yes
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/certbot-dns-cpanel
+ ${INSTALL_DATA} ${FILESDIR}/credentials.ini.sample \
+ ${STAGEDIR}${PREFIX}/etc/certbot-dns-cpanel
+
+.include <bsd.port.mk>
Added: head/security/py-certbot-dns-cpanel/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/py-certbot-dns-cpanel/distinfo Sun Jun 21 18:43:11 2020 (r539778)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1592684154
+SHA256 (certbot-dns-cpanel-0.2.2.tar.gz) = 12b4f9863e572a3e02affb9a3f0a6ca663d8b88664237c785fea0662eee21471
+SIZE (certbot-dns-cpanel-0.2.2.tar.gz) = 4478
Added: head/security/py-certbot-dns-cpanel/files/credentials.ini.sample
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/py-certbot-dns-cpanel/files/credentials.ini.sample Sun Jun 21 18:43:11 2020 (r539778)
@@ -0,0 +1,13 @@
+# From https://raw.githubusercontent.com/badjware/certbot-dns-cpanel/master/credentials.ini.exemple
+
+# The url cPanel url
+# include the scheme and the port number (usually 2083 for https)
+certbot_dns_cpanel:cpanel_url = https://cpanel.exemple.com:2083
+
+# The cPanel username
+certbot_dns_cpanel:cpanel_username = user
+
+# The cPanel password
+certbot_dns_cpanel:cpanel_password = hunter2
+
+# vi:syntax=ini
Added: head/security/py-certbot-dns-cpanel/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/py-certbot-dns-cpanel/files/pkg-message.in Sun Jun 21 18:43:11 2020 (r539778)
@@ -0,0 +1,24 @@
+[
+{ type: install
+ message: <<EOM
+How to run certbot using the cPanel plugin:
+
+$ certbot certonly \
+ --authenticator certbot-dns-cpanel:cpanel \
+ --certbot-dns-cpanel:cpanel-credentials %%PREFIX%%/etc/certbot-dns-cpanel/credentials.ini \
+ -d 'exemple.com' \
+ -d '*.exemple.com'
+
+You can also specify a installer plugin with the --installer option.
+
+$ certbot run \
+ --authenticator certbot-dns-cpanel:cpanel \
+ --installer apache \
+ --certbot-dns-cpanel:cpanel-credentials %%PREFIX%%/etc/certbot-dns-cpanel/credentials.ini \
+ -d 'exemple.com' \
+ -d '*.exemple.com'
+
+More details on https://github.com/badjware/certbot-dns-cpanel.
+EOM
+}
+]
Added: head/security/py-certbot-dns-cpanel/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/py-certbot-dns-cpanel/pkg-descr Sun Jun 21 18:43:11 2020 (r539778)
@@ -0,0 +1,6 @@
+Plugin to allow acme dns-01 authentication of a name managed in cPanel. Useful
+for automating and creating a Let's Encrypt certificate (wildcard or not) for a
+service with a name managed by cPanel, but installed on a server not managed in
+cPanel.
+
+WWW: https://pypi.org/project/certbot-dns-cpanel/
More information about the svn-ports-all
mailing list