/[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.4 by unnilennium, Fri Aug 18 15:36:06 2017 UTC
# Line 1  Line 1 
1  %define name smeserver-letsencrypt  %define name smeserver-letsencrypt
2  %define version 0.4  %define version 0.4
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-0.4-bz10253.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
# 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    * Fri Aug 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-4.sme
27    - change ACCEPT_TERMS template position to appear after shebang in config file [SME: 10410]
28    
29    * Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-3.sme
30    - remove workaround for curl dns resolution [SME: 10300]
31    - should be corrected at dnscache level (djbdns-1.05-10)
32    
33    * Fri Apr 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.4-2.sme
34    - help accept licence  [SME: 10253]
35    - workaround for curl issues
36    - spec tidying
37    
38  * 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
39   - first attempt at using stock letsencrypt script   - first attempt at using stock letsencrypt script
40    
# Line 145  https://letsencrypt.org/ Line 159  https://letsencrypt.org/
159    
160  %prep  %prep
161  %setup  %setup
162    %patch0 -p1
163    
164  %build  %build
165  perl createlinks  perl createlinks
# Line 169  rm -rf %{name}-%{version} Line 184  rm -rf %{name}-%{version}
184  %preun  %preun
185    
186  %post  %post
187  if [[ ! -e /etc/letsencrypt.sh ]];  # if previously installed letsencrypt.sh, but first migration to dehydrated
188  then mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;  if [[ -e /etc/letsencrypt.sh ]] && [[ ! -e /etc/dehydrated ]];
189    then
190            # assume in production
191    #       CA="https://acme-v01.api.letsencrypt.org/directory" ;
192    #       CAHASH="$(echo "${CA}" | urlbase64)"
193    #       mkdir /etc/dehydrated;
194    #       mkdir -p /etc/dehydrated/accounts
195    #       cp -a /etc/letsencrypt.sh/private_key.json /etc/dehydrated/accounts/${CAHASH}/registration_info.json
196    #       cp -a /etc/letsencrypt.sh/private_key.pem /etc/dehydrated/accounts/${CAHASH}/account_key.pem
197    #       cp -a /etc/letsencrypt.sh/certs /etc/dehydrated/
198            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
199    fi
200    
201    # if letsencrypt still there but already migrated to dehydrated
202    if [[ -e /etc/letsencrypt.sh ]] && [[  -e /etc/dehydrated/certs ]];
203    then
204            mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
205  fi  fi
206    
207    # if first installation of dehydrated
208  if [[ ! -e /etc/dehydrated ]];  if [[ ! -e /etc/dehydrated ]];
209  then mkdir /etc/dehydrated;  then mkdir /etc/dehydrated;
210  fi  fi
# Line 197  chmod -R 0775  /home/e-smith/files/ibays Line 229  chmod -R 0775  /home/e-smith/files/ibays
229  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
230    
231    
 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 "###################################################################"  
232    
233  %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