/[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.16 by jcrisp, Fri Jan 17 12:35:05 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 10
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  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
21  BuildArchitectures: noarch  BuildArchitectures: noarch
22  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
23  Requires: e-smith-release >= 8.0  Requires: e-smith-release >= 9.0
24  Requires: dehydrated >= 0.3.1  Requires: dehydrated >= 0.6
25  AutoReqProv: no  AutoReqProv: no
26    
27  %description  %description
# Line 21  Lets Encrypt is a free, automated, and o Line 29  Lets Encrypt is a free, automated, and o
29  https://letsencrypt.org/  https://letsencrypt.org/
30    
31  %changelog  %changelog
32    * Fri Jan 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-10.sme
33    - Fix incorrect HOOK entry in config [SME: 10861]
34    
35    * Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-9.sme
36    - Fix incorrect CA line in config [SME: 10688]
37    
38    * Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-8.sme
39    - Reverse my previous error [SME: 10681]
40    
41    * Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-7.sme
42    - fix spec file numbering
43    
44    * Mon Dec 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-6.sme
45    - Fix typo error in cron.daily [SME: 10681]
46    
47    * Sun Dec 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme
48    - Fix changed V1 staging URL [SME: 10595]
49    - Thanks Terry Fage
50    
51    * Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme
52    - log to file rather than /dev/null [SME: 10412]
53    
54    * Tue Oct 13 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-3.sme
55    - remove Licence key from config template [SME:10636]
56    
57    * Tue Jun 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2.sme
58    - remove debug print lines
59    
60    * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1.sme
61    - Update to v2 API [SME:10595]
62    - Add key letsencrypt hostOverride to ignore 'Self' host check
63    - This requires v0.6 of dehydrated
64    
65    * Wed Jun 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
66    - Fix missing event actions [SME: 10315]
67    
68    * Thu May 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
69    - Fix typo in Accept Terms
70    - add domain-delete to createlinks [SME: 10315]
71    - Update requires release to SME v9
72    - Update requires dehydrated to v0.5
73    
74    * Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme
75    - change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410]
76    
77    * Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme
78    - remove workaround for curl dns resolution [SME: 10300]
79    - should be corrected at dnscache level (djbdns-1.05-10)
80    
81    * Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme
82    - help accept licence  [SME: 10253]
83    - workaround for curl issues
84    - spec tidying
85    
86  * 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
87   - first attempt at using stock letsencrypt script   - first attempt at using stock letsencrypt script
88    
# Line 145  https://letsencrypt.org/ Line 207  https://letsencrypt.org/
207    
208  %prep  %prep
209  %setup  %setup
210    %patch0 -p1
211    %patch1 -p1
212    %patch2 -p1
213    %patch3 -p1
214    %patch4 -p1
215    %patch5 -p1
216    %patch6 -p1
217    %patch7 -p1
218    
219  %build  %build
220  perl createlinks  perl createlinks
# Line 169  rm -rf %{name}-%{version} Line 239  rm -rf %{name}-%{version}
239  %preun  %preun
240    
241  %post  %post
242  if [[ ! -e /etc/letsencrypt.sh ]];  # if previously installed letsencrypt.sh, but first migration to dehydrated
243  then mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;  if [[ -e /etc/letsencrypt.sh ]] && [[ ! -e /etc/dehydrated ]];
244    then
245            # assume in production
246    #       CA="https://acme-v01.api.letsencrypt.org/directory" ;
247    #       CAHASH="$(echo "${CA}" | urlbase64)"
248    #       mkdir /etc/dehydrated;
249    #       mkdir -p /etc/dehydrated/accounts
250    #       cp -a /etc/letsencrypt.sh/private_key.json /etc/dehydrated/accounts/${CAHASH}/registration_info.json
251    #       cp -a /etc/letsencrypt.sh/private_key.pem /etc/dehydrated/accounts/${CAHASH}/account_key.pem
252    #       cp -a /etc/letsencrypt.sh/certs /etc/dehydrated/
253            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
254    fi
255    
256    # if letsencrypt still there but already migrated to dehydrated
257    if [[ -e /etc/letsencrypt.sh ]] && [[  -e /etc/dehydrated/certs ]];
258    then
259            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
260  fi  fi
261    
262    # if first installation of dehydrated
263  if [[ ! -e /etc/dehydrated ]];  if [[ ! -e /etc/dehydrated ]];
264  then mkdir /etc/dehydrated;  then mkdir /etc/dehydrated;
265  fi  fi
# Line 197  chmod -R 0775  /home/e-smith/files/ibays Line 284  chmod -R 0775  /home/e-smith/files/ibays
284  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
285    
286    
 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 "###################################################################"  
287    
288  %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