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

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

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


Revision 1.18 - (hide annotations) (download)
Mon Feb 17 15:35:44 2020 UTC (4 years, 9 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-12
Changes since 1.17: +7 -4 lines
* Sat Jan 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-12.sme
- forgot to remove template-begin and cron.daily dir [SME: 10862]

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

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