/[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.10 - (hide annotations) (download)
Wed Dec 12 16:33:13 2018 UTC (5 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_5-4
Changes since 1.9: +6 -2 lines
* Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme
- log to file rather than /dev/null [SME: 10412]

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

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