/[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.2 - (show annotations) (download)
Fri Apr 28 16:12:07 2017 UTC (7 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_4-2
Changes since 1.1: +28 -24 lines
* Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme
- help accept licence  [SME: 10253]
- workaround for curl issues
- spec tidying

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

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