/[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.13 - (hide annotations) (download)
Mon Dec 31 00:38:36 2018 UTC (5 years, 11 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-7
Changes since 1.12: +5 -2 lines
* Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-7.sme
- fix spec file numbering

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

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