]> git.pld-linux.org Git - packages/dehydrated.git/commitdiff
patching for pld usage
authorElan Ruusamäe <glen@delfi.ee>
Sat, 14 May 2016 12:53:13 +0000 (15:53 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 14 May 2016 12:53:13 +0000 (15:53 +0300)
letsencrypt.sh.spec
pld.patch [new file with mode: 0644]

index eba4f4a079069a14981361a3c1dbe11333ca694f..d13d564e2ac263ebf52e5c548a182b4856fadc18 100644 (file)
@@ -1,7 +1,7 @@
 Summary:       letsencrypt/acme client implemented as a shell-script
 Name:          letsencrypt.sh
 Version:       0.1.0
-Release:       0.3
+Release:       0.4
 License:       MIT
 Group:         Applications/Networking
 Source0:       https://github.com/lukas2511/letsencrypt.sh/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -9,6 +9,7 @@ Source0:        https://github.com/lukas2511/letsencrypt.sh/archive/v%{version}/%{name}
 Source1:       apache.conf
 Source2:       lighttpd.conf
 Source3:       config.sh
+Patch0:                pld.patch
 URL:           https://github.com/lukas2511/letsencrypt.sh
 BuildRequires: rpmbuild(macros) >= 1.713
 Requires:      curl
@@ -41,6 +42,7 @@ Current features:
 
 %prep
 %setup -q
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/pld.patch b/pld.patch
new file mode 100644 (file)
index 0000000..3419780
--- /dev/null
+++ b/pld.patch
@@ -0,0 +1,17 @@
+--- letsencrypt.sh-0.1.0/letsencrypt.sh        2016-03-25 21:35:01.000000000 +0200
++++ letsencrypt.sh-0.1.0/letsencrypt.sh        2016-05-14 15:51:55.000000000 +0300
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env bash
++#!/bin/bash
+ # letsencrypt.sh by lukas2511
+ # Source: https://github.com/lukas2511/letsencrypt.sh
+@@ -42,7 +42,7 @@
+ load_config() {
+   # Check for config in various locations
+   if [[ -z "${CONFIG:-}" ]]; then
+-    for check_config in "/etc/letsencrypt.sh" "/usr/local/etc/letsencrypt.sh" "${PWD}" "${SCRIPTDIR}"; do
++    for check_config in "/etc/letsencrypt.sh" "/etc/webapps/letsencrypt.sh" "/usr/local/etc/letsencrypt.sh" "${PWD}" "${SCRIPTDIR}"; do
+       if [[ -e "${check_config}/config.sh" ]]; then
+         BASEDIR="${check_config}"
+         CONFIG="${check_config}/config.sh"
This page took 0.676131 seconds and 4 git commands to generate.