/[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.8 by jcrisp, Tue Jun 19 16:15:27 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 2
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    
14  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
15  BuildArchitectures: noarch  BuildArchitectures: noarch
16  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
17  Requires: e-smith-release >= 8.0  Requires: e-smith-release >= 9.0
18  Requires: dehydrated >= 0.3.1  Requires: dehydrated >= 0.6
19  AutoReqProv: no  AutoReqProv: no
20    
21  %description  %description
# Line 21  Lets Encrypt is a free, automated, and o Line 23  Lets Encrypt is a free, automated, and o
23  https://letsencrypt.org/  https://letsencrypt.org/
24    
25  %changelog  %changelog
26    * Tue Jun 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2.sme
27    - remove debug print lines
28    
29    * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1.sme
30    - Update to v2 API [SME:10595]
31    - Add key letsencrypt hostOverride to ignore 'Self' host check
32    - This requires v0.6 of dehydrated
33    
34    * Wed Jun 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
35    - Fix missing event actions [SME: 10315]
36    
37    * Thu May 31 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
38    - Fix typo in Accept Terms
39    - add domain-delete to createlinks [SME: 10315]
40    - Update requires release to SME v9
41    - Update requires dehydrated to v0.5
42    
43    * Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme
44    - change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410]
45    
46    * Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme
47    - remove workaround for curl dns resolution [SME: 10300]
48    - should be corrected at dnscache level (djbdns-1.05-10)
49    
50    * Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme
51    - help accept licence  [SME: 10253]
52    - workaround for curl issues
53    - spec tidying
54    
55  * 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
56   - first attempt at using stock letsencrypt script   - first attempt at using stock letsencrypt script
57    
# Line 145  https://letsencrypt.org/ Line 176  https://letsencrypt.org/
176    
177  %prep  %prep
178  %setup  %setup
179    %patch0 -p1
180    
181  %build  %build
182  perl createlinks  perl createlinks
# Line 169  rm -rf %{name}-%{version} Line 201  rm -rf %{name}-%{version}
201  %preun  %preun
202    
203  %post  %post
204  if [[ ! -e /etc/letsencrypt.sh ]];  # if previously installed letsencrypt.sh, but first migration to dehydrated
205  then mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;  if [[ -e /etc/letsencrypt.sh ]] && [[ ! -e /etc/dehydrated ]];
206    then
207            # assume in production
208    #       CA="https://acme-v01.api.letsencrypt.org/directory" ;
209    #       CAHASH="$(echo "${CA}" | urlbase64)"
210    #       mkdir /etc/dehydrated;
211    #       mkdir -p /etc/dehydrated/accounts
212    #       cp -a /etc/letsencrypt.sh/private_key.json /etc/dehydrated/accounts/${CAHASH}/registration_info.json
213    #       cp -a /etc/letsencrypt.sh/private_key.pem /etc/dehydrated/accounts/${CAHASH}/account_key.pem
214    #       cp -a /etc/letsencrypt.sh/certs /etc/dehydrated/
215            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
216    fi
217    
218    # if letsencrypt still there but already migrated to dehydrated
219    if [[ -e /etc/letsencrypt.sh ]] && [[  -e /etc/dehydrated/certs ]];
220    then
221            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
222  fi  fi
223    
224    # if first installation of dehydrated
225  if [[ ! -e /etc/dehydrated ]];  if [[ ! -e /etc/dehydrated ]];
226  then mkdir /etc/dehydrated;  then mkdir /etc/dehydrated;
227  fi  fi
# Line 197  chmod -R 0775  /home/e-smith/files/ibays Line 246  chmod -R 0775  /home/e-smith/files/ibays
246  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
247    
248    
 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 "###################################################################"  
249    
250  %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