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