/[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.4 - (hide annotations) (download)
Fri Aug 18 15:36:06 2017 UTC (7 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_4-4
Changes since 1.3: +4 -1 lines
* Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme
- change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410]

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

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