1 |
%define name smeserver-letsencrypt |
%define name smeserver-letsencrypt |
2 |
%define version 0.4 |
%define version 0.5 |
3 |
%define release 2 |
%define release 14 |
4 |
Summary: Plugin to enable letsencrypt certificates |
Summary: Plugin to enable letsencrypt certificates |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
9 |
URL: https://letsencrypt.org/ |
URL: https://letsencrypt.org/ |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-letsencrypt-0.4-bz10253.patch |
Patch0: smeserver-letsencrypt-remove-debug-lines.patch |
13 |
|
Patch1: smeserver-letsencrypt-remove-licence.patch |
14 |
|
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 >= 8.0 |
Requires: e-smith-release >= 9.0 |
26 |
Requires: dehydrated >= 0.3.1 |
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 |
|
* Wed Mar 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.5-14.sme |
35 |
|
- take 2: remove dangling cron.daily dir missed in 0.5-12 [SME: 10862] |
36 |
|
|
37 |
|
* Mon Mar 09 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-13.sme |
38 |
|
- remove dangling cron.daily dir missed in 0.5-12 [SME: 10862] |
39 |
|
|
40 |
|
* Sat Jan 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-12.sme |
41 |
|
- forgot to remove template-begin and cron.daily dir [SME: 10862] |
42 |
|
|
43 |
|
* Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-11.sme |
44 |
|
- force required version to 0.6.5 for EPEL version |
45 |
|
- Add new cron template for EPEL version of dehydrated [SME: 10862] |
46 |
|
|
47 |
|
* Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-10.sme |
48 |
|
- Fix incorrect HOOK entry in config [SME: 10861] |
49 |
|
|
50 |
|
* Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-9.sme |
51 |
|
- Fix incorrect CA line in config [SME: 10688] |
52 |
|
|
53 |
|
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-8.sme |
54 |
|
- Reverse my previous error [SME: 10681] |
55 |
|
|
56 |
|
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-7.sme |
57 |
|
- fix spec file numbering |
58 |
|
|
59 |
|
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-6.sme |
60 |
|
- Fix typo error in cron.daily [SME: 10681] |
61 |
|
|
62 |
|
* Sun Dec 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme |
63 |
|
- Fix changed V1 staging URL [SME: 10595] |
64 |
|
- Thanks Terry Fage |
65 |
|
|
66 |
|
* Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme |
67 |
|
- log to file rather than /dev/null [SME: 10412] |
68 |
|
|
69 |
|
* Tue Oct 13 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-3.sme |
70 |
|
- remove Licence key from config template [SME:10636] |
71 |
|
|
72 |
|
* Tue Jun 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2.sme |
73 |
|
- remove debug print lines |
74 |
|
|
75 |
|
* Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1.sme |
76 |
|
- Update to v2 API [SME:10595] |
77 |
|
- Add key letsencrypt hostOverride to ignore 'Self' host check |
78 |
|
- This requires v0.6 of dehydrated |
79 |
|
|
80 |
|
* Wed Jun 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme |
81 |
|
- Fix missing event actions [SME: 10315] |
82 |
|
|
83 |
|
* Thu May 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme |
84 |
|
- Fix typo in Accept Terms |
85 |
|
- add domain-delete to createlinks [SME: 10315] |
86 |
|
- Update requires release to SME v9 |
87 |
|
- Update requires dehydrated to v0.5 |
88 |
|
|
89 |
|
* Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme |
90 |
|
- change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410] |
91 |
|
|
92 |
|
* Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme |
93 |
|
- remove workaround for curl dns resolution [SME: 10300] |
94 |
|
- should be corrected at dnscache level (djbdns-1.05-10) |
95 |
|
|
96 |
* Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme |
* Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme |
97 |
- help accept licence [SME: 10253] |
- help accept licence [SME: 10253] |
98 |
- workaround for curl issues |
- workaround for curl issues |
223 |
%prep |
%prep |
224 |
%setup |
%setup |
225 |
%patch0 -p1 |
%patch0 -p1 |
226 |
|
%patch1 -p1 |
227 |
|
%patch2 -p1 |
228 |
|
%patch3 -p1 |
229 |
|
%patch4 -p1 |
230 |
|
%patch5 -p1 |
231 |
|
%patch6 -p1 |
232 |
|
%patch7 -p1 |
233 |
|
%patch8 -p1 |
234 |
|
|
235 |
|
# remove old template |
236 |
|
rm -rf root/etc/e-smith/templates/etc/cron.daily |
237 |
|
|
238 |
%build |
%build |
239 |
perl createlinks |
perl createlinks |
295 |
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; |
296 |
fi |
fi |
297 |
|
|
298 |
|
if [[ -d /etc/cron.daily/letsencrypt ]]; |
299 |
|
then rm -rf /etc/cron.daily/letsencrypt; |
300 |
|
fi |
301 |
|
|
302 |
|
if [[ -d /etc/e-smith/templates/etc/cron.daily/letsencrypt ]]; |
303 |
|
then rm -rf /root/etc/e-smith/templates/etc/cron.daily/letsencrypt |
304 |
|
fi |
305 |
|
|
306 |
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 ]]; |
307 |
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; |
308 |
fi |
fi |
310 |
chmod -R 0775 /home/e-smith/files/ibays/Primary/html/.well-known |
chmod -R 0775 /home/e-smith/files/ibays/Primary/html/.well-known |
311 |
chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known |
chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known |
312 |
|
|
313 |
|
# remove old template file |
314 |
|
if [[ -e /etc/cron.daily/letsencryp ]]; |
315 |
|
then rm -rf /etc/cron.daily/letsencrypt |
316 |
|
fi |
317 |
%postun |
%postun |