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