/[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.5 - (hide annotations) (download)
Thu May 31 21:19:32 2018 UTC (5 years, 11 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_4-5
Changes since 1.4: +11 -3 lines
* Thu May 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
- Fix typo in Accept Terms
- add domain-delete to createlinks [SME: 10315]
- Update requires release to SME v9
- Update requires dehydrated to v0.5

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

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