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