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

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

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


Revision 1.3 - (show annotations) (download)
Wed Jul 12 17:25:34 2017 UTC (6 years, 10 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_4-3
Changes since 1.2: +5 -1 lines
* Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme
- remove workaround for curl dns resolution [SME: 10300]
- should be corrected at dnscache level (djbdns-1.05-10)

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

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