/[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.16 - (hide annotations) (download)
Fri Jan 17 12:35:05 2020 UTC (4 years, 4 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-10
Changes since 1.15: +6 -1 lines
* Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-10.sme
- Fix incorrect HOOK entry in config [SME: 10861]

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

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