[pve-devel] [Patch V2 acme 06/12] Add submodule acme.sh for DNS plugins

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Apr 1 15:26:48 CEST 2020


On March 31, 2020 12:08 pm, Wolfgang Link wrote:
> Copy the DNS plugins form acme.sh
> 
> The project acme.sh can be found here.
> https://github.com/Neilpang/acme.sh
> 
> Signed-off-by: Wolfgang Link <w.link at proxmox.com>
> ---
>  .gitmodules  |   3 ++
>  Makefile     |  10 ++++-
>  acme.sh      |   1 +
>  src/Makefile | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 131 insertions(+), 2 deletions(-)
>  create mode 100644 .gitmodules
>  create mode 160000 acme.sh
>  create mode 100644 src/Makefile
> 
> diff --git a/.gitmodules b/.gitmodules
> new file mode 100644
> index 0000000..9e2f450
> --- /dev/null
> +++ b/.gitmodules
> @@ -0,0 +1,3 @@
> +[submodule "acme.sh"]
> +	path = acme.sh
> +	url = https://github.com/acmesh-official/acme.sh.git
> diff --git a/Makefile b/Makefile
> index 0a78b63..9d2655a 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -8,12 +8,18 @@ GITVERSION:=$(shell git rev-parse HEAD)
>  DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
>  DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
>  
> +DNSAPI="acme.sh/dnsapi"
> +
>  all: $(DEB)
>  
> -$(BUILDDIR): src debian
> -	rm -rf $(BUILDDIR)
> +.PHONY: submodule
> +submodule:
> +	test -d $(DNSAPI) || git submodule update --init --recursive
>  
> +$(BUILDDIR): src debian submodule
> +	rm -rf $(BUILDDIR)
>  	rsync -a src/ debian $(BUILDDIR)
> +	rsync -a $(DNSAPI) $(BUILDDIR)
>  	# remove if repository exists
>  	# echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
>  
> diff --git a/acme.sh b/acme.sh
> new file mode 160000
> index 0000000..d437d6f
> --- /dev/null
> +++ b/acme.sh
> @@ -0,0 +1 @@
> +Subproject commit d437d6fde95dc7368d4fa76c05648a8dd4cbe69e
> diff --git a/src/Makefile b/src/Makefile
> new file mode 100644
> index 0000000..a5e8fb9
> --- /dev/null
> +++ b/src/Makefile
> @@ -0,0 +1,119 @@
> +PREFIX=/usr
> +ACMEDIR=${PREFIX}/share/proxmox-ve/

if we want to keep this non-PVE-specific, I suggest 
  s/proxmox-ve/proxmox-acme

> +
> +ACME_SOURCES = \
> +	dnsapi/dns_nsone.sh \
> +	dnsapi/dns_cf.sh \
> +	dnsapi/dns_linode.sh \
> +	dnsapi/dns_dnsimple.sh \
> +	dnsapi/dns_lexicon.sh \
> +	dnsapi/dns_da.sh \
> +	dnsapi/dns_desec.sh \
> +	dnsapi/dns_he.sh \
> +	dnsapi/dns_doapi.sh \
> +	dnsapi/dns_pdns.sh \
> +	dnsapi/dns_yandex.sh \
> +	dnsapi/dns_nic.sh \
> +	dnsapi/dns_conoha.sh \
> +	dnsapi/dns_schlundtech.sh \
> +	dnsapi/dns_do.sh \
> +	dnsapi/dns_autodns.sh \
> +	dnsapi/dns_tele3.sh \
> +	dnsapi/dns_gd.sh \
> +	dnsapi/dns_exoscale.sh \
> +	dnsapi/dns_kas.sh \
> +	dnsapi/dns_easydns.sh \
> +	dnsapi/dns_pleskxml.sh \
> +	dnsapi/dns_variomedia.sh \
> +	dnsapi/dns_duckdns.sh \
> +	dnsapi/dns_kinghost.sh \
> +	dnsapi/dns_myapi.sh \
> +	dnsapi/dns_nw.sh \
> +	dnsapi/dns_misaka.sh \
> +	dnsapi/dns_one.sh \
> +	dnsapi/dns_mydevil.sh \
> +	dnsapi/dns_acmedns.sh \
> +	dnsapi/dns_gandi_livedns.sh \
> +	dnsapi/dns_dgon.sh \
> +	dnsapi/dns_nsd.sh \
> +	dnsapi/dns_selectel.sh \
> +	dnsapi/dns_linode_v4.sh \
> +	dnsapi/dns_hostingde.sh \
> +	dnsapi/dns_freedns.sh \
> +	dnsapi/dns_opnsense.sh \
> +	dnsapi/dns_servercow.sh \
> +	dnsapi/dns_hexonet.sh \
> +	dnsapi/dns_aws.sh \
> +	dnsapi/dns_dyn.sh \
> +	dnsapi/dns_leaseweb.sh \
> +	dnsapi/dns_online.sh \
> +	dnsapi/dns_gcloud.sh \
> +	dnsapi/dns_active24.sh \
> +	dnsapi/dns_jd.sh \
> +	dnsapi/dns_internetbs.sh \
> +	dnsapi/dns_vscale.sh \
> +	dnsapi/dns_durabledns.sh \
> +	dnsapi/dns_dynv6.sh \
> +	dnsapi/dns_openprovider.sh \
> +	dnsapi/dns_nsupdate.sh \
> +	dnsapi/dns_inwx.sh \
> +	dnsapi/dns_namecom.sh \
> +	dnsapi/dns_infoblox.sh \
> +	dnsapi/dns_ultra.sh \
> +	dnsapi/dns_unoeuro.sh \
> +	dnsapi/dns_cloudns.sh \
> +	dnsapi/dns_ovh.sh \
> +	dnsapi/dns_cn.sh \
> +	dnsapi/dns_azure.sh \
> +	dnsapi/dns_namecheap.sh \
> +	dnsapi/dns_vultr.sh \
> +	dnsapi/dns_acmeproxy.sh \
> +	dnsapi/dns_ddnss.sh \
> +	dnsapi/dns_maradns.sh \
> +	dnsapi/dns_cx.sh \
> +	dnsapi/dns_dreamhost.sh \
> +	dnsapi/dns_ispconfig.sh \
> +	dnsapi/dns_nederhost.sh \
> +	dnsapi/dns_loopia.sh \
> +	dnsapi/dns_ad.sh \
> +	dnsapi/dns_cyon.sh \
> +	dnsapi/dns_ali.sh \
> +	dnsapi/dns_netcup.sh \
> +	dnsapi/dns_knot.sh \
> +	dnsapi/dns_zone.sh \
> +	dnsapi/dns_me.sh \
> +	dnsapi/dns_namesilo.sh \
> +	dnsapi/dns_pointhq.sh \
> +	dnsapi/dns_gdnsdk.sh \
> +	dnsapi/dns_zilore.sh \
> +	dnsapi/dns_domen.sh \op.sh \
> +	dnsapi/dns_miab.sh \
> +	dnsapi/dns_lua.sh \
> +	dnsapi/dns_rcode0.sh \
> +	dnsapi/dns_constellix.sh \
> +	dnsapi/dns_dpi.sh \
> +	dnsapi/dns_dynu.sh \
> +	dnsapi/dns_dp.sh \
> +	dnsapi/dns_euserv.sh \
> +	dnsapi/dns_zonomi.sh \
> +	dnsapi/dns_rackspace.sh \
> +	dnsapi/dns_regru.sh \
> +	dnsapi/dns_clouddns.sh \
> +	dnsapi/dns_neodigit.sh \
> +	dnsapi/dns_mydnsjp.sh \
> +
> +all:
> +
> +.PHONY: install
> +install:
> +	install -d -m 0755 ${DESTDIR}${ACMEDIR}/proxmox-acme
> +	install -d -m 0755 ${DESTDIR}${ACMEDIR}/proxmox-acme/dnsapi
> +	install -D -m 0744 proxmox-acme ${DESTDIR}${ACMEDIR}/proxmox-acme/proxmox-acme
> +	for i in ${ACME_SOURCES}; do install -D -m 0644 $$i ${DESTDIR}${ACMEDIR}/proxmox-acme/$$i; done

and removing proxmox-acme/ here

> +
> +.PHONY: clean
> +clean:
> +	rm -rf *~
> +
> +.PHONY: distclean
> +distclean: clean
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 




More information about the pve-devel mailing list