/[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.8 - (hide annotations) (download)
Tue Jun 19 16:15:27 2018 UTC (6 years, 5 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-2
Changes since 1.7: +6 -3 lines
* Tue Jun 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2.sme
- remove debug print lines

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

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