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

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

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

Revision 1.1 by unnilennium, Mon Feb 6 20:50:28 2017 UTC Revision 1.17 by jcrisp, Fri Jan 17 15:20:48 2020 UTC
# Line 1  Line 1 
1  %define name smeserver-letsencrypt  %define name smeserver-letsencrypt
2  %define version 0.4  %define version 0.5
3  %define release 1  %define release 11
4  Summary: Plugin to enable letsencrypt certificates  Summary: Plugin to enable letsencrypt certificates
5  Name: %{name}  Name: %{name}
6  Version: %{version}  Version: %{version}
# Line 9  License: GNU GPL version 2 Line 9  License: GNU GPL version 2
9  URL: https://letsencrypt.org/  URL: https://letsencrypt.org/
10  Group: SMEserver/addon  Group: SMEserver/addon
11  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
12    Patch0: smeserver-letsencrypt-remove-debug-lines.patch
13    Patch1: smeserver-letsencrypt-remove-licence.patch
14    Patch2: smeserver-letsencrypt-log-to-file.patch
15    Patch3: smeserver-letsencrypt-API1-URL-change.patch
16    Patch4: smeserver-letsencrypt-fix-logging.patch
17    Patch5: smeserver-letsencrypt-fix-logging-reverse.patch
18    Patch6: smeserver-letsencrypt-fix-acme-v01-url.patch
19    Patch7: smeserver-letsencrypt-fix-hook-entry.patch
20    Patch8: smeserver-letsencrypt-change-cron-entry.patch
21    
22  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
23  BuildArchitectures: noarch  BuildArchitectures: noarch
24  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
25  Requires: e-smith-release >= 8.0  Requires: e-smith-release >= 9.0
26  Requires: dehydrated >= 0.3.1  Requires: dehydrated >= 0.6.5
27  AutoReqProv: no  AutoReqProv: no
28    
29  %description  %description
# Line 21  Lets Encrypt is a free, automated, and o Line 31  Lets Encrypt is a free, automated, and o
31  https://letsencrypt.org/  https://letsencrypt.org/
32    
33  %changelog  %changelog
34    * Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-11.sme
35    - force required versioni to 0.6.5 for EPEL version
36    - Add new cron template for EPEL version of dehydrated [SME: 10862]
37    
38    * Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-10.sme
39    - Fix incorrect HOOK entry in config [SME: 10861]
40    
41    * Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-9.sme
42    - Fix incorrect CA line in config [SME: 10688]
43    
44    * Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-8.sme
45    - Reverse my previous error [SME: 10681]
46    
47    * Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-7.sme
48    - fix spec file numbering
49    
50    * Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-6.sme
51    - Fix typo error in cron.daily [SME: 10681]
52    
53    * Sun Dec 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme
54    - Fix changed V1 staging URL [SME: 10595]
55    - Thanks Terry Fage
56    
57    * Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme
58    - log to file rather than /dev/null [SME: 10412]
59    
60    * Tue Oct 13 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-3.sme
61    - remove Licence key from config template [SME:10636]
62    
63    * Tue Jun 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2.sme
64    - remove debug print lines
65    
66    * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1.sme
67    - Update to v2 API [SME:10595]
68    - Add key letsencrypt hostOverride to ignore 'Self' host check
69    - This requires v0.6 of dehydrated
70    
71    * Wed Jun 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
72    - Fix missing event actions [SME: 10315]
73    
74    * Thu May 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
75    - Fix typo in Accept Terms
76    - add domain-delete to createlinks [SME: 10315]
77    - Update requires release to SME v9
78    - Update requires dehydrated to v0.5
79    
80    * Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme
81    - change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410]
82    
83    * Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme
84    - remove workaround for curl dns resolution [SME: 10300]
85    - should be corrected at dnscache level (djbdns-1.05-10)
86    
87    * Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme
88    - help accept licence  [SME: 10253]
89    - workaround for curl issues
90    - spec tidying
91    
92  * Sat Feb 04 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1  * Sat Feb 04 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1
93   - first attempt at using stock letsencrypt script   - first attempt at using stock letsencrypt script
94    
# Line 145  https://letsencrypt.org/ Line 213  https://letsencrypt.org/
213    
214  %prep  %prep
215  %setup  %setup
216    %patch0 -p1
217    %patch1 -p1
218    %patch2 -p1
219    %patch3 -p1
220    %patch4 -p1
221    %patch5 -p1
222    %patch6 -p1
223    %patch7 -p1
224    %patch8 -p1
225    
226  %build  %build
227  perl createlinks  perl createlinks
# Line 169  rm -rf %{name}-%{version} Line 246  rm -rf %{name}-%{version}
246  %preun  %preun
247    
248  %post  %post
249  if [[ ! -e /etc/letsencrypt.sh ]];  # if previously installed letsencrypt.sh, but first migration to dehydrated
250  then mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;  if [[ -e /etc/letsencrypt.sh ]] && [[ ! -e /etc/dehydrated ]];
251    then
252            # assume in production
253    #       CA="https://acme-v01.api.letsencrypt.org/directory" ;
254    #       CAHASH="$(echo "${CA}" | urlbase64)"
255    #       mkdir /etc/dehydrated;
256    #       mkdir -p /etc/dehydrated/accounts
257    #       cp -a /etc/letsencrypt.sh/private_key.json /etc/dehydrated/accounts/${CAHASH}/registration_info.json
258    #       cp -a /etc/letsencrypt.sh/private_key.pem /etc/dehydrated/accounts/${CAHASH}/account_key.pem
259    #       cp -a /etc/letsencrypt.sh/certs /etc/dehydrated/
260            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
261    fi
262    
263    # if letsencrypt still there but already migrated to dehydrated
264    if [[ -e /etc/letsencrypt.sh ]] && [[  -e /etc/dehydrated/certs ]];
265    then
266            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
267  fi  fi
268    
269    # if first installation of dehydrated
270  if [[ ! -e /etc/dehydrated ]];  if [[ ! -e /etc/dehydrated ]];
271  then mkdir /etc/dehydrated;  then mkdir /etc/dehydrated;
272  fi  fi
# Line 193  if [[ ! -e /home/e-smith/files/ibays/Pri Line 287  if [[ ! -e /home/e-smith/files/ibays/Pri
287  then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge;  then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge;
288  fi  fi
289    
290    if [[ -f /etc/cron.daily/letsencrypt ]];
291    then rm -f /etc/cron.daily/letsencrypt;
292    fi
293    
294  chmod -R 0775  /home/e-smith/files/ibays/Primary/html/.well-known  chmod -R 0775  /home/e-smith/files/ibays/Primary/html/.well-known
295  chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known  chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known
296    
297    
 echo "###################################################################"  
 echo ""  
 echo "************************************************************"  
 echo " NOTE ! letsencrypt.sh has had to be renamed to 'dehydrated'"  
 echo "************************************************************"  
 echo ""  
 echo "# After install please set your db keys"  
 echo "# Make sure you set the letsencrypt status key to test"  
 echo "# Enable some domains or hosts"  
 echo "# Then run the following"  
 echo "# signal-event console-save"  
 echo "# dehydrated -c"  
 echo "# Once you are satisfied set the letsencrypt status key to enabled"  
 echo "# mv /etc/dehydrated/private_key.pem /etc/dehydrated/private_key.test"  
 echo "# Run the dehydrated file again to generate your keys"  
 echo "# signal-event console-save"  
 echo "# dehydrated -c -x"  
 echo "# Thereafter only use"  
 echo "# dehydrated -c"  
 echo "# If you make any key changes run console-save first"  
 echo "###################################################################"  
298    
299  %postun  %postun


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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