diff --git a/certbot-dns-cloudflare/snap/snapcraft.yaml b/certbot-dns-cloudflare/snap/snapcraft.yaml new file mode 100644 index 000000000..e6110e1fb --- /dev/null +++ b/certbot-dns-cloudflare/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-cloudflare +summary: Cloudflare DNS Authenticator plugin for Certbot +description: Cloudflare DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-cloudflare + +parts: + certbot-dns-cloudflare: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-cloudxns/snap/snapcraft.yaml b/certbot-dns-cloudxns/snap/snapcraft.yaml new file mode 100644 index 000000000..2deb1b001 --- /dev/null +++ b/certbot-dns-cloudxns/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-cloudxns +summary: CloudXNS DNS Authenticator plugin for Certbot +description: CloudXNS DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-cloudxns + +parts: + certbot-dns-cloudxns: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-digitalocean/snap/snapcraft.yaml b/certbot-dns-digitalocean/snap/snapcraft.yaml new file mode 100644 index 000000000..81e9df3d4 --- /dev/null +++ b/certbot-dns-digitalocean/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-digitalocean +summary: DigitalOcean DNS Authenticator plugin for Certbot +description: DigitalOcean DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-digitalocean + +parts: + certbot-dns-digitalocean: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-dnsimple/snap/snapcraft.yaml b/certbot-dns-dnsimple/snap/snapcraft.yaml index 64be45436..7dbcf3e88 100644 --- a/certbot-dns-dnsimple/snap/snapcraft.yaml +++ b/certbot-dns-dnsimple/snap/snapcraft.yaml @@ -1,6 +1,6 @@ name: certbot-dns-dnsimple summary: DNSimple DNS Authenticator plugin for Certbot -description: TBC +description: DNSimple DNS Authenticator plugin for Certbot confinement: strict grade: devel base: core18 diff --git a/certbot-dns-dnsmadeeasy/snap/snapcraft.yaml b/certbot-dns-dnsmadeeasy/snap/snapcraft.yaml new file mode 100644 index 000000000..f9dcbcadd --- /dev/null +++ b/certbot-dns-dnsmadeeasy/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-dnsmadeeasy +summary: DNS Made Easy DNS Authenticator plugin for Certbot +description: DNS Made Easy DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-dnsmadeeasy + +parts: + certbot-dns-dnsmadeeasy: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-gehirn/snap/snapcraft.yaml b/certbot-dns-gehirn/snap/snapcraft.yaml new file mode 100644 index 000000000..e84f19944 --- /dev/null +++ b/certbot-dns-gehirn/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-gehirn +summary: Gehirn Infrastructure Service DNS Authenticator plugin for Certbot +description: Gehirn Infrastructure Service DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-gehirn + +parts: + certbot-dns-gehirn: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-google/snap/snapcraft.yaml b/certbot-dns-google/snap/snapcraft.yaml new file mode 100644 index 000000000..5c2cdeef1 --- /dev/null +++ b/certbot-dns-google/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-google +summary: Google Cloud DNS Authenticator plugin for Certbot +description: Google Cloud DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-google + +parts: + certbot-dns-google: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-linode/snap/snapcraft.yaml b/certbot-dns-linode/snap/snapcraft.yaml new file mode 100644 index 000000000..ae2695df3 --- /dev/null +++ b/certbot-dns-linode/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-linode +summary: Linode DNS Authenticator plugin for Certbot +description: Linode DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-linode + +parts: + certbot-dns-linode: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-luadns/snap/snapcraft.yaml b/certbot-dns-luadns/snap/snapcraft.yaml new file mode 100644 index 000000000..02dad0472 --- /dev/null +++ b/certbot-dns-luadns/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-luadns +summary: LuaDNS Authenticator plugin for Certbot +description: LuaDNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-luadns + +parts: + certbot-dns-luadns: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-nsone/snap/snapcraft.yaml b/certbot-dns-nsone/snap/snapcraft.yaml new file mode 100644 index 000000000..d183ed41b --- /dev/null +++ b/certbot-dns-nsone/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-nsone +summary: NS1 DNS Authenticator plugin for Certbot +description: NS1 DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-nsone + +parts: + certbot-dns-nsone: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-ovh/snap/snapcraft.yaml b/certbot-dns-ovh/snap/snapcraft.yaml new file mode 100644 index 000000000..8e51e44a5 --- /dev/null +++ b/certbot-dns-ovh/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-ovh +summary: OVH DNS Authenticator plugin for Certbot +description: OVH DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-ovh + +parts: + certbot-dns-ovh: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-rfc2136/snap/snapcraft.yaml b/certbot-dns-rfc2136/snap/snapcraft.yaml new file mode 100644 index 000000000..f89bd56d6 --- /dev/null +++ b/certbot-dns-rfc2136/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-rfc2136 +summary: RFC 2136 DNS Authenticator plugin for Certbot +description: RFC 2136 DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-rfc2136 + +parts: + certbot-dns-rfc2136: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-route53/snap/snapcraft.yaml b/certbot-dns-route53/snap/snapcraft.yaml new file mode 100644 index 000000000..fa3ff4c32 --- /dev/null +++ b/certbot-dns-route53/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-route53 +summary: Route53 DNS Authenticator plugin for Certbot +description: Route53 DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-route53 + +parts: + certbot-dns-route53: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/certbot-dns-sakuracloud/snap/snapcraft.yaml b/certbot-dns-sakuracloud/snap/snapcraft.yaml new file mode 100644 index 000000000..66659f9e4 --- /dev/null +++ b/certbot-dns-sakuracloud/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: certbot-dns-sakuracloud +summary: Sakura Cloud DNS Authenticator plugin for Certbot +description: Sakura Cloud DNS Authenticator plugin for Certbot +confinement: strict +grade: devel +base: core18 +adopt-info: certbot-dns-sakuracloud + +parts: + certbot-dns-sakuracloud: + plugin: python + source: . + constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.6/site-packages diff --git a/tools/generate_dnsplugins_snapcraft.sh b/tools/generate_dnsplugins_snapcraft.sh new file mode 100755 index 000000000..b99b0aadc --- /dev/null +++ b/tools/generate_dnsplugins_snapcraft.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# Generate the snapcraft.yaml file for all DNS plugins +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +CERTBOT_DIR="$(dirname "${DIR}")" + +for PLUGIN_PATH in "${CERTBOT_DIR}"/certbot-dns-*; do + PLUGIN=$(basename "${PLUGIN_PATH}") + DESCRIPTION=$(grep description "${PLUGIN_PATH}/setup.py" | sed -E 's|\s+description="(.*)",|\1|g') + mkdir -p "${PLUGIN_PATH}/snap" + cat < "${PLUGIN_PATH}/snap/snapcraft.yaml" +name: ${PLUGIN} +summary: ${DESCRIPTION} +description: ${DESCRIPTION} +confinement: strict +grade: devel +base: core18 +adopt-info: ${PLUGIN} + +parts: + ${PLUGIN}: + plugin: python + source: . + constraints: [\$SNAPCRAFT_PART_SRC/snap-constraints.txt] + python-version: python3 + override-pull: | + snapcraftctl pull + snapcraftctl set-version \`grep ^version \$SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"\` + build-environment: + - EXCLUDE_CERTBOT_DEPS: "True" + +slots: + certbot: + interface: content + content: certbot-1 + read: + - \$SNAP/lib/python3.6/site-packages +EOF +done