/[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.12 - (show annotations) (download)
Mon Dec 31 00:37:00 2018 UTC (5 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-6
Changes since 1.11: +6 -1 lines
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme
- Fix typo error in cron.daily [SME: 10681]

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

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