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