/[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.14 - (show annotations) (download)
Mon Dec 31 00:48:08 2018 UTC (5 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-8
Changes since 1.13: +6 -1 lines
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-8.sme
- Reverse my previous error [SME:10681]

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

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