/[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.11 by jcrisp, Sun Dec 23 17:49:28 2018 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 5
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  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
17  BuildArchitectures: noarch  BuildArchitectures: noarch
18  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
19  Requires: e-smith-release >= 8.0  Requires: e-smith-release >= 9.0
20  Requires: dehydrated >= 0.3.1  Requires: dehydrated >= 0.6
21  AutoReqProv: no  AutoReqProv: no
22    
23  %description  %description
# Line 21  Lets Encrypt is a free, automated, and o Line 25  Lets Encrypt is a free, automated, and o
25  https://letsencrypt.org/  https://letsencrypt.org/
26    
27  %changelog  %changelog
28    * Sun Dec 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5.sme
29    - Fix changed V1 staging URL [SME: 10595]
30    - Thanks Terry Fage
31    
32    * Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4.sme
33    - log to file rather than /dev/null [SME: 10412]
34    
35    * Tue Oct 13 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-3.sme
36    - remove Licence key from config template [SME:10636]
37    
38    * Tue Jun 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2.sme
39    - remove debug print lines
40    
41    * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1.sme
42    - Update to v2 API [SME:10595]
43    - Add key letsencrypt hostOverride to ignore 'Self' host check
44    - This requires v0.6 of dehydrated
45    
46    * Wed Jun 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
47    - Fix missing event actions [SME: 10315]
48    
49    * Thu May 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
50    - Fix typo in Accept Terms
51    - add domain-delete to createlinks [SME: 10315]
52    - Update requires release to SME v9
53    - Update requires dehydrated to v0.5
54    
55    * Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme
56    - change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410]
57    
58    * Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme
59    - remove workaround for curl dns resolution [SME: 10300]
60    - should be corrected at dnscache level (djbdns-1.05-10)
61    
62    * Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme
63    - help accept licence  [SME: 10253]
64    - workaround for curl issues
65    - spec tidying
66    
67  * 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
68   - first attempt at using stock letsencrypt script   - first attempt at using stock letsencrypt script
69    
# Line 145  https://letsencrypt.org/ Line 188  https://letsencrypt.org/
188    
189  %prep  %prep
190  %setup  %setup
191    %patch0 -p1
192    %patch1 -p1
193    %patch2 -p1
194    %patch3 -p1
195    
196  %build  %build
197  perl createlinks  perl createlinks
# Line 169  rm -rf %{name}-%{version} Line 216  rm -rf %{name}-%{version}
216  %preun  %preun
217    
218  %post  %post
219  if [[ ! -e /etc/letsencrypt.sh ]];  # if previously installed letsencrypt.sh, but first migration to dehydrated
220  then mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;  if [[ -e /etc/letsencrypt.sh ]] && [[ ! -e /etc/dehydrated ]];
221    then
222            # assume in production
223    #       CA="https://acme-v01.api.letsencrypt.org/directory" ;
224    #       CAHASH="$(echo "${CA}" | urlbase64)"
225    #       mkdir /etc/dehydrated;
226    #       mkdir -p /etc/dehydrated/accounts
227    #       cp -a /etc/letsencrypt.sh/private_key.json /etc/dehydrated/accounts/${CAHASH}/registration_info.json
228    #       cp -a /etc/letsencrypt.sh/private_key.pem /etc/dehydrated/accounts/${CAHASH}/account_key.pem
229    #       cp -a /etc/letsencrypt.sh/certs /etc/dehydrated/
230            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
231    fi
232    
233    # if letsencrypt still there but already migrated to dehydrated
234    if [[ -e /etc/letsencrypt.sh ]] && [[  -e /etc/dehydrated/certs ]];
235    then
236            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
237  fi  fi
238    
239    # if first installation of dehydrated
240  if [[ ! -e /etc/dehydrated ]];  if [[ ! -e /etc/dehydrated ]];
241  then mkdir /etc/dehydrated;  then mkdir /etc/dehydrated;
242  fi  fi
# Line 197  chmod -R 0775  /home/e-smith/files/ibays Line 261  chmod -R 0775  /home/e-smith/files/ibays
261  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
262    
263    
 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 "###################################################################"  
264    
265  %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