/[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.6 - (hide annotations) (download)
Wed Jun 6 08:29:16 2018 UTC (6 years, 5 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_4-6
Changes since 1.5: +6 -1 lines
* Wed Jun 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
- Fix missing event actions [SME: 10315]

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

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