[packages/letsencrypt.sh] patching for pld usage

glen glen at pld-linux.org
Sat May 14 14:53:24 CEST 2016


commit f5fc672198fa93ec5b21f2c9fb0d87808f40789a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat May 14 15:53:13 2016 +0300

    patching for pld usage

 letsencrypt.sh.spec |  4 +++-
 pld.patch           | 17 +++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/letsencrypt.sh.spec b/letsencrypt.sh.spec
index eba4f4a..d13d564 100644
--- a/letsencrypt.sh.spec
+++ b/letsencrypt.sh.spec
@@ -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
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"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/letsencrypt.sh.git/commitdiff/f5fc672198fa93ec5b21f2c9fb0d87808f40789a



More information about the pld-cvs-commit mailing list