From: Marcin Krol Date: Sun, 27 May 2018 19:25:33 +0000 (+0000) Subject: - updated to 0.6.2 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=9bf026a0896f188bfd309b0fcdaca394efac974d;p=packages%2Fdehydrated.git - updated to 0.6.2 --- diff --git a/dehydrated.spec b/dehydrated.spec index d95dc1c..8e82c58 100644 --- a/dehydrated.spec +++ b/dehydrated.spec @@ -1,11 +1,11 @@ Summary: letsencrypt/acme client implemented as a shell-script Name: dehydrated -Version: 0.4.0 +Version: 0.6.2 Release: 1 License: MIT Group: Applications/Networking Source0: https://github.com/lukas2511/dehydrated/archive/v%{version}/%{name}-%{version}.tar.gz -# Source0-md5: 8114ba0144a158d5ad1bdf02e6f43195 +# Source0-md5: d4db13d5965054b0a231bf95285c6cf0 Source1: httpd.conf Source2: lighttpd.conf Source3: nginx.conf @@ -108,7 +108,7 @@ rm -rf $RPM_BUILD_ROOT %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{name}/lighttpd.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{name}/nginx.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/config -%attr(755,root,root) /etc/%{name}/conf.d +%dir %attr(755,root,root) /etc/%{name}/conf.d %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/conf.d/*.sh %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/domains.txt %dir %attr(755,root,root) /etc/%{name}/hooks diff --git a/tld.patch b/tld.patch index def90fe..57beb42 100644 --- a/tld.patch +++ b/tld.patch @@ -1,22 +1,22 @@ -diff -ur dehydrated-0.4.0.orig/dehydrated dehydrated-0.4.0/dehydrated ---- dehydrated-0.4.0.orig/dehydrated 2017-02-05 15:33:17.000000000 +0100 -+++ dehydrated-0.4.0/dehydrated 2017-10-24 16:58:33.761256185 +0200 +diff -ur dehydrated-0.6.2.orig/dehydrated dehydrated-0.6.2/dehydrated +--- dehydrated-0.6.2.orig/dehydrated 2018-04-25 21:22:40.000000000 +0000 ++++ dehydrated-0.6.2/dehydrated 2018-05-27 19:22:45.065763589 +0000 @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash # dehydrated by lukas2511 - # Source: https://github.com/lukas2511/dehydrated -@@ -20,7 +20,7 @@ + # Source: https://dehydrated.io +@@ -28,7 +28,7 @@ done SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -BASEDIR="${SCRIPTDIR}" +BASEDIR="/var/lib/dehydrated" + ORIGARGS="$@" # Create (identifiable) temporary files - _mktemp() { -@@ -115,7 +115,7 @@ +@@ -133,7 +133,7 @@ DOMAINS_TXT= HOOK= HOOK_CHAIN="no" @@ -25,21 +25,21 @@ diff -ur dehydrated-0.4.0.orig/dehydrated dehydrated-0.4.0/dehydrated KEYSIZE="4096" WELLKNOWN= PRIVATE_KEY_RENEW="yes" -@@ -182,8 +182,8 @@ - fi +@@ -255,8 +255,8 @@ [[ -z "${CERTDIR}" ]] && CERTDIR="${BASEDIR}/certs" + [[ -z "${CHAINCACHE}" ]] && CHAINCACHE="${BASEDIR}/chains" - [[ -z "${DOMAINS_TXT}" ]] && DOMAINS_TXT="${BASEDIR}/domains.txt" - [[ -z "${WELLKNOWN}" ]] && WELLKNOWN="/var/www/dehydrated" + [[ -z "${DOMAINS_TXT}" ]] && DOMAINS_TXT="/etc/dehydrated/domains.txt" + [[ -z "${WELLKNOWN}" ]] && WELLKNOWN="${BASEDIR}/acme-challenges" [[ -z "${LOCKFILE}" ]] && LOCKFILE="${BASEDIR}/lock" + [[ -z "${OPENSSL_CNF}" ]] && OPENSSL_CNF="$("${OPENSSL}" version -d | cut -d\" -f2)/openssl.cnf" [[ -n "${PARAM_LOCKFILE_SUFFIX:-}" ]] && LOCKFILE="${LOCKFILE}-${PARAM_LOCKFILE_SUFFIX}" - [[ -n "${PARAM_NO_LOCK:-}" ]] && LOCKFILE="" -diff -ur dehydrated-0.4.0.orig/docs/examples/config dehydrated-0.4.0/docs/examples/config ---- dehydrated-0.4.0.orig/docs/examples/config 2017-02-05 15:33:17.000000000 +0100 -+++ dehydrated-0.4.0/docs/examples/config 2017-10-24 16:58:47.821256753 +0200 -@@ -33,11 +33,11 @@ +diff -ur dehydrated-0.6.2.orig/docs/examples/config dehydrated-0.6.2/docs/examples/config +--- dehydrated-0.6.2.orig/docs/examples/config 2018-04-25 21:22:40.000000000 +0000 ++++ dehydrated-0.6.2/docs/examples/config 2018-05-27 19:12:46.943770323 +0000 +@@ -40,11 +40,11 @@ # default: #CONFIG_D= @@ -54,7 +54,7 @@ diff -ur dehydrated-0.4.0.orig/docs/examples/config dehydrated-0.4.0/docs/exampl # Output directory for generated certificates #CERTDIR="${BASEDIR}/certs" -@@ -46,7 +46,7 @@ +@@ -53,7 +53,7 @@ #ACCOUNTDIR="${BASEDIR}/accounts" # Output directory for challenge-tokens to be served by webserver or deployed in HOOK (default: /var/www/dehydrated) @@ -63,7 +63,7 @@ diff -ur dehydrated-0.4.0.orig/docs/examples/config dehydrated-0.4.0/docs/exampl # Default keysize for private keys (default: 4096) #KEYSIZE="4096" -@@ -64,13 +64,13 @@ +@@ -77,13 +77,13 @@ # # BASEDIR and WELLKNOWN variables are exported and can be used in an external program # default: