1 |
%define name smeserver-letsencrypt |
%define name smeserver-letsencrypt |
2 |
%define version 0.5 |
%define version 0.5 |
3 |
%define release 4 |
%define release 12 |
4 |
Summary: Plugin to enable letsencrypt certificates |
Summary: Plugin to enable letsencrypt certificates |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
12 |
Patch0: smeserver-letsencrypt-remove-debug-lines.patch |
Patch0: smeserver-letsencrypt-remove-debug-lines.patch |
13 |
Patch1: smeserver-letsencrypt-remove-licence.patch |
Patch1: smeserver-letsencrypt-remove-licence.patch |
14 |
Patch2: smeserver-letsencrypt-log-to-file.patch |
Patch2: smeserver-letsencrypt-log-to-file.patch |
15 |
|
Patch3: smeserver-letsencrypt-API1-URL-change.patch |
16 |
|
Patch4: smeserver-letsencrypt-fix-logging.patch |
17 |
|
Patch5: smeserver-letsencrypt-fix-logging-reverse.patch |
18 |
|
Patch6: smeserver-letsencrypt-fix-acme-v01-url.patch |
19 |
|
Patch7: smeserver-letsencrypt-fix-hook-entry.patch |
20 |
|
Patch8: smeserver-letsencrypt-change-cron-entry.patch |
21 |
|
|
22 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
23 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
25 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.0 |
26 |
Requires: dehydrated >= 0.6 |
Requires: dehydrated >= 0.6.5 |
27 |
AutoReqProv: no |
AutoReqProv: no |
28 |
|
|
29 |
%description |
%description |
31 |
https://letsencrypt.org/ |
https://letsencrypt.org/ |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Mon Mar 09 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-13.sme |
35 |
|
- remove dangling cron.daily dir missed in 0.5-12 [SME: 10862] |
36 |
|
|
37 |
|
* Sat Jan 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-12.sme |
38 |
|
- forgot to remove template-begin and cron.daily dir [SME: 10862] |
39 |
|
|
40 |
|
* Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-11.sme |
41 |
|
- force required version to 0.6.5 for EPEL version |
42 |
|
- Add new cron template for EPEL version of dehydrated [SME: 10862] |
43 |
|
|
44 |
|
* Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-10.sme |
45 |
|
- Fix incorrect HOOK entry in config [SME: 10861] |
46 |
|
|
47 |
|
* Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-9.sme |
48 |
|
- Fix incorrect CA line in config [SME: 10688] |
49 |
|
|
50 |
|
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-8.sme |
51 |
|
- Reverse my previous error [SME: 10681] |
52 |
|
|
53 |
|
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-7.sme |
54 |
|
- fix spec file numbering |
55 |
|
|
56 |
|
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-6.sme |
57 |
|
- Fix typo error in cron.daily [SME: 10681] |
58 |
|
|
59 |
|
* Sun Dec 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme |
60 |
|
- Fix changed V1 staging URL [SME: 10595] |
61 |
|
- Thanks Terry Fage |
62 |
|
|
63 |
* Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme |
* Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme |
64 |
- log to file rather than /dev/null [SME: 10412] |
- log to file rather than /dev/null [SME: 10412] |
65 |
|
|
222 |
%patch0 -p1 |
%patch0 -p1 |
223 |
%patch1 -p1 |
%patch1 -p1 |
224 |
%patch2 -p1 |
%patch2 -p1 |
225 |
|
%patch3 -p1 |
226 |
|
%patch4 -p1 |
227 |
|
%patch5 -p1 |
228 |
|
%patch6 -p1 |
229 |
|
%patch7 -p1 |
230 |
|
%patch8 -p1 |
231 |
|
|
232 |
%build |
%build |
233 |
perl createlinks |
perl createlinks |
289 |
then mv -f /usr/local/bin/domains.txt /usr/local/bin/domains.txt.orig; |
then mv -f /usr/local/bin/domains.txt /usr/local/bin/domains.txt.orig; |
290 |
fi |
fi |
291 |
|
|
292 |
|
if [[ -d /etc/cron.daily/letsencrypt ]]; |
293 |
|
then rm -rf /etc/cron.daily/letsencrypt; |
294 |
|
fi |
295 |
|
|
296 |
|
if [[ -d /etc/e-smith/templates/etc/cron.daily/letsencrypt ]]; |
297 |
|
then rm -rf /root/etc/e-smith/templates/etc/cron.daily/letsencrypt |
298 |
|
fi |
299 |
|
|
300 |
if [[ ! -e /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge ]]; |
if [[ ! -e /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge ]]; |
301 |
then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge; |
then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge; |
302 |
fi |
fi |