/[smecontribs]/rpms/smeserver-letsencrypt/contribs9/smeserver-letsencrypt.spec
ViewVC logotype

Contents of /rpms/smeserver-letsencrypt/contribs9/smeserver-letsencrypt.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (show annotations) (download)
Sun Dec 23 17:49:28 2018 UTC (5 years, 5 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-5
Changes since 1.10: +7 -1 lines
* Sun Dec 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme
- Fix changed V1 staging URL [SME: 10595]
- Thanks Terry Fage

1 %define name smeserver-letsencrypt
2 %define version 0.5
3 %define release 5
4 Summary: Plugin to enable letsencrypt certificates
5 Name: %{name}
6 Version: %{version}
7 Release: %{release}
8 License: GNU GPL version 2
9 URL: https://letsencrypt.org/
10 Group: SMEserver/addon
11 Source: %{name}-%{version}.tar.gz
12 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 BuildRoot: /var/tmp/%{name}-%{version}
17 BuildArchitectures: noarch
18 BuildRequires: e-smith-devtools
19 Requires: e-smith-release >= 9.0
20 Requires: dehydrated >= 0.6
21 AutoReqProv: no
22
23 %description
24 Lets Encrypt is a free, automated, and open certificate authority
25 https://letsencrypt.org/
26
27 %changelog
28 * Sun Dec 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme
29 - Fix changed V1 staging URL [SME: 10595]
30 - Thanks Terry Fage
31
32 * Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme
33 - log to file rather than /dev/null [SME: 10412]
34
35 * Tue Oct 13 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-3.sme
36 - remove Licence key from config template [SME:10636]
37
38 * Tue Jun 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2.sme
39 - remove debug print lines
40
41 * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1.sme
42 - Update to v2 API [SME:10595]
43 - Add key letsencrypt hostOverride to ignore 'Self' host check
44 - This requires v0.6 of dehydrated
45
46 * Wed Jun 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
47 - Fix missing event actions [SME: 10315]
48
49 * Thu May 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
50 - Fix typo in Accept Terms
51 - add domain-delete to createlinks [SME: 10315]
52 - Update requires release to SME v9
53 - Update requires dehydrated to v0.5
54
55 * Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme
56 - change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410]
57
58 * Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme
59 - remove workaround for curl dns resolution [SME: 10300]
60 - should be corrected at dnscache level (djbdns-1.05-10)
61
62 * Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme
63 - help accept licence [SME: 10253]
64 - workaround for curl issues
65 - spec tidying
66
67 * Sat Feb 04 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1
68 - first attempt at using stock letsencrypt script
69
70 * Wed Sep 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1
71 - Due to madness at letsencrypt the script had to be renamed for copyright reasons
72 - move /etc/letsencrypt.sh to /etc/dehydrated
73 - change references to letsencrypt.sh to dehydrated
74 - Fix typos in readme
75
76 * Wed Aug 3 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-10
77 - Some tweaks from JPP for the domains.txt file
78
79 * Wed Aug 3 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-9
80 - Fix version differences with between v8 and v9
81
82 * Thu Jul 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-8
83 - Remove spaces in POSTIN [[]]
84
85 * Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-7
86 - fix another typo in bash scripts
87 - fix typo in Docs
88
89 * Fri Jun 10 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-6
90 - Fix typo in domains.txt
91 - Set configure default type none
92
93 * Tue May 31 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-5
94 - update incorrect bash scripts in spec file
95
96 * Tue May 31 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4
97 - update letsencrypt requires
98
99 * Mon May 30 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-3
100 - add support for letsencrypt.sh v0.2
101 - config.sh renamed to config
102 - fix trailing / on urls in 40ACME
103
104 * Mon Apr 04 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-2
105 - letsencrypt.sh now calls deploy-cert with an argument for the chain file
106 - thanks to Dan Brown
107
108 * Tue Mar 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1
109 - Remove letsencrypt.sh script and put in separate RPM
110
111 * Tue Mar 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-21
112 - modify hook script templates as per Dan Browd contribution
113
114 * Thu Mar 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-20
115 - updated letsencrypt.sh
116 - https://github.com/lukas2511/letsencrypt.sh/commit/429c5250ede7ff4af3b6f37b39925cfa5afee278
117 - Add "" to wellknown path in config.sh
118
119 * Fri Feb 05 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-19
120 - updated letsencrypt.sh
121 - https://github.com/lukas2511/letsencrypt.sh/commit/21c18dd3b8c2572b894d9ec2e5c3fc2589f56f32
122
123 * Tue Jan 26 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-18
124 - updated letsencrypt.sh
125 - https://github.com/lukas2511/letsencrypt.sh/commit/79ff846e267c30d85988f79f58b81bc7bd91790c
126
127 * Sat Jan 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-17
128 - Fix typos in hook-script
129 - Add latest letsencrypt.sh script
130
131 * Wed Jan 20 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16
132 - Minor fixes including typo in cron.daily
133
134 * Tue Jan 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15
135 - Missed a "
136 - remove ' from Let's encrypt and add URL
137
138 * Tue Jan 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-14
139 - Updated readme and install notes
140 - Allow either domains or hosts
141
142 * Mon Jan 18 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-13
143 - Add missing templates.metadata file
144 - modify spec file wording
145
146 * Mon Jan 18 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-12
147 - Set hookscript to always run unless letsencrypt is disabled
148 - Add cron.daily script to console-save action and set perms
149
150 * Sun Jan 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-11
151 - Fix hook-script.sh perms using templates.metadata
152
153 * Sun Jan 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-10
154 - Add latest revision of letsencrypt.sh
155 - add hookscript.sh templates and various fixes
156
157 * Sat Jan 16 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-9
158 - Add latest revision of letsencrypt.sh
159
160 * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-8
161 - set +x on hook-script and correct file name in config
162
163 * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7
164 - Add missing curly brace
165 - Move Status check line up so we can generate empty file if disabled
166
167 * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6
168 - Add hookScript key
169
170 * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5
171 - Modify spec file to add paths and set permisssions
172
173 * Thu Jan 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4
174 - Modify file paths and cron script
175
176 * Thu Jan 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-3
177 - updated bash script in spec file
178 - updated file locations in README.MD
179
180 * Wed Jan 13 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2
181 - Moved config.sh file location
182 - added cron.daily template - only works if letsencrypt is enabled
183 - added check to create /etc/letsencrypt.sh directory if it does not exist
184 - added latest letsencrypt.sh script
185
186 * Thu Jan 07 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1
187 - initial release
188
189 %prep
190 %setup
191 %patch0 -p1
192 %patch1 -p1
193 %patch2 -p1
194 %patch3 -p1
195
196 %build
197 perl createlinks
198
199 %install
200 rm -rf $RPM_BUILD_ROOT
201 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
202 rm -f %{name}-%{version}-filelist
203 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
204 echo "%doc COPYING" >> %{name}-%{version}-filelist
205
206
207 %clean
208 cd ..
209 rm -rf %{name}-%{version}
210
211 %files -f %{name}-%{version}-filelist
212 %defattr(-,root,root)
213
214 %pre
215
216 %preun
217
218 %post
219 # if previously installed letsencrypt.sh, but first migration to dehydrated
220 if [[ -e /etc/letsencrypt.sh ]] && [[ ! -e /etc/dehydrated ]];
221 then
222 # assume in production
223 # CA="https://acme-v01.api.letsencrypt.org/directory" ;
224 # CAHASH="$(echo "${CA}" | urlbase64)"
225 # mkdir /etc/dehydrated;
226 # mkdir -p /etc/dehydrated/accounts
227 # cp -a /etc/letsencrypt.sh/private_key.json /etc/dehydrated/accounts/${CAHASH}/registration_info.json
228 # cp -a /etc/letsencrypt.sh/private_key.pem /etc/dehydrated/accounts/${CAHASH}/account_key.pem
229 # cp -a /etc/letsencrypt.sh/certs /etc/dehydrated/
230 mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
231 fi
232
233 # if letsencrypt still there but already migrated to dehydrated
234 if [[ -e /etc/letsencrypt.sh ]] && [[ -e /etc/dehydrated/certs ]];
235 then
236 mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
237 fi
238
239 # if first installation of dehydrated
240 if [[ ! -e /etc/dehydrated ]];
241 then mkdir /etc/dehydrated;
242 fi
243
244 if [[ -f /usr/local/bin/config.sh ]];
245 then mv -f /usr/local/bin/config.sh /usr/local/bin/config.sh.orig;
246 fi
247
248 if [[ -f /usr/local/bin/config ]];
249 then mv -f /usr/local/bin/config /usr/local/bin/config.old;
250 fi
251
252 if [[ -f /usr/local/bin/domain.txt ]];
253 then mv -f /usr/local/bin/domains.txt /usr/local/bin/domains.txt.orig;
254 fi
255
256 if [[ ! -e /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge ]];
257 then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge;
258 fi
259
260 chmod -R 0775 /home/e-smith/files/ibays/Primary/html/.well-known
261 chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known
262
263
264
265 %postun

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed