/[smecontribs]/rpms/smeserver-letsencrypt/contribs9/smeserver-letsencrypt.spec
ViewVC logotype

Annotation of /rpms/smeserver-letsencrypt/contribs9/smeserver-letsencrypt.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Feb 6 20:50:28 2017 UTC (7 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-letsencrypt-0_4-1
Initial import

1 unnilennium 1.1 %define name smeserver-letsencrypt
2     %define version 0.4
3     %define release 1
4     Summary: Plugin to enable letsencrypt certificates
5     Name: %{name}
6     Version: %{version}
7     Release: %{release}
8     License: GNU GPL version 2
9     URL: https://letsencrypt.org/
10     Group: SMEserver/addon
11     Source: %{name}-%{version}.tar.gz
12     BuildRoot: /var/tmp/%{name}-%{version}
13     BuildArchitectures: noarch
14     BuildRequires: e-smith-devtools
15     Requires: e-smith-release >= 8.0
16     Requires: dehydrated >= 0.3.1
17     AutoReqProv: no
18    
19     %description
20     Lets Encrypt is a free, automated, and open certificate authority
21     https://letsencrypt.org/
22    
23     %changelog
24     * Sat Feb 04 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1
25     - first attempt at using stock letsencrypt script
26    
27     * Wed Sep 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1
28     - Due to madness at letsencrypt the script had to be renamed for copyright reasons
29     - move /etc/letsencrypt.sh to /etc/dehydrated
30     - change references to letsencrypt.sh to dehydrated
31     - Fix typos in readme
32    
33     * Wed Aug 3 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-10
34     - Some tweaks from JPP for the domains.txt file
35    
36     * Wed Aug 3 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-9
37     - Fix version differences with between v8 and v9
38    
39     * Thu Jul 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-8
40     - Remove spaces in POSTIN [[]]
41    
42     * Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-7
43     - fix another typo in bash scripts
44     - fix typo in Docs
45    
46     * Fri Jun 10 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-6
47     - Fix typo in domains.txt
48     - Set configure default type none
49    
50     * Tue May 31 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-5
51     - update incorrect bash scripts in spec file
52    
53     * Tue May 31 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4
54     - update letsencrypt requires
55    
56     * Mon May 30 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-3
57     - add support for letsencrypt.sh v0.2
58     - config.sh renamed to config
59     - fix trailing / on urls in 40ACME
60    
61     * Mon Apr 04 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-2
62     - letsencrypt.sh now calls deploy-cert with an argument for the chain file
63     - thanks to Dan Brown
64    
65     * Tue Mar 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1
66     - Remove letsencrypt.sh script and put in separate RPM
67    
68     * Tue Mar 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-21
69     - modify hook script templates as per Dan Browd contribution
70    
71     * Thu Mar 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-20
72     - updated letsencrypt.sh
73     - https://github.com/lukas2511/letsencrypt.sh/commit/429c5250ede7ff4af3b6f37b39925cfa5afee278
74     - Add "" to wellknown path in config.sh
75    
76     * Fri Feb 05 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-19
77     - updated letsencrypt.sh
78     - https://github.com/lukas2511/letsencrypt.sh/commit/21c18dd3b8c2572b894d9ec2e5c3fc2589f56f32
79    
80     * Tue Jan 26 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-18
81     - updated letsencrypt.sh
82     - https://github.com/lukas2511/letsencrypt.sh/commit/79ff846e267c30d85988f79f58b81bc7bd91790c
83    
84     * Sat Jan 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-17
85     - Fix typos in hook-script
86     - Add latest letsencrypt.sh script
87    
88     * Wed Jan 20 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16
89     - Minor fixes including typo in cron.daily
90    
91     * Tue Jan 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15
92     - Missed a "
93     - remove ' from Let's encrypt and add URL
94    
95     * Tue Jan 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-14
96     - Updated readme and install notes
97     - Allow either domains or hosts
98    
99     * Mon Jan 18 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-13
100     - Add missing templates.metadata file
101     - modify spec file wording
102    
103     * Mon Jan 18 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-12
104     - Set hookscript to always run unless letsencrypt is disabled
105     - Add cron.daily script to console-save action and set perms
106    
107     * Sun Jan 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-11
108     - Fix hook-script.sh perms using templates.metadata
109    
110     * Sun Jan 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-10
111     - Add latest revision of letsencrypt.sh
112     - add hookscript.sh templates and various fixes
113    
114     * Sat Jan 16 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-9
115     - Add latest revision of letsencrypt.sh
116    
117     * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-8
118     - set +x on hook-script and correct file name in config
119    
120     * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7
121     - Add missing curly brace
122     - Move Status check line up so we can generate empty file if disabled
123    
124     * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6
125     - Add hookScript key
126    
127     * Fri Jan 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5
128     - Modify spec file to add paths and set permisssions
129    
130     * Thu Jan 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4
131     - Modify file paths and cron script
132    
133     * Thu Jan 14 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-3
134     - updated bash script in spec file
135     - updated file locations in README.MD
136    
137     * Wed Jan 13 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2
138     - Moved config.sh file location
139     - added cron.daily template - only works if letsencrypt is enabled
140     - added check to create /etc/letsencrypt.sh directory if it does not exist
141     - added latest letsencrypt.sh script
142    
143     * Thu Jan 07 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1
144     - initial release
145    
146     %prep
147     %setup
148    
149     %build
150     perl createlinks
151    
152     %install
153     rm -rf $RPM_BUILD_ROOT
154     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
155     rm -f %{name}-%{version}-filelist
156     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
157     echo "%doc COPYING" >> %{name}-%{version}-filelist
158    
159    
160     %clean
161     cd ..
162     rm -rf %{name}-%{version}
163    
164     %files -f %{name}-%{version}-filelist
165     %defattr(-,root,root)
166    
167     %pre
168    
169     %preun
170    
171     %post
172     if [[ ! -e /etc/letsencrypt.sh ]];
173     then mv -f /etc/letsencrypt.sh /etc/letsencrypt.sh.old;
174     fi
175    
176     if [[ ! -e /etc/dehydrated ]];
177     then mkdir /etc/dehydrated;
178     fi
179    
180     if [[ -f /usr/local/bin/config.sh ]];
181     then mv -f /usr/local/bin/config.sh /usr/local/bin/config.sh.orig;
182     fi
183    
184     if [[ -f /usr/local/bin/config ]];
185     then mv -f /usr/local/bin/config /usr/local/bin/config.old;
186     fi
187    
188     if [[ -f /usr/local/bin/domain.txt ]];
189     then mv -f /usr/local/bin/domains.txt /usr/local/bin/domains.txt.orig;
190     fi
191    
192     if [[ ! -e /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge ]];
193     then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge;
194     fi
195    
196     chmod -R 0775 /home/e-smith/files/ibays/Primary/html/.well-known
197     chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known
198    
199    
200     echo "###################################################################"
201     echo ""
202     echo "************************************************************"
203     echo " NOTE ! letsencrypt.sh has had to be renamed to 'dehydrated'"
204     echo "************************************************************"
205     echo ""
206     echo "# After install please set your db keys"
207     echo "# Make sure you set the letsencrypt status key to test"
208     echo "# Enable some domains or hosts"
209     echo "# Then run the following"
210     echo "# signal-event console-save"
211     echo "# dehydrated -c"
212     echo "# Once you are satisfied set the letsencrypt status key to enabled"
213     echo "# mv /etc/dehydrated/private_key.pem /etc/dehydrated/private_key.test"
214     echo "# Run the dehydrated file again to generate your keys"
215     echo "# signal-event console-save"
216     echo "# dehydrated -c -x"
217     echo "# Thereafter only use"
218     echo "# dehydrated -c"
219     echo "# If you make any key changes run console-save first"
220     echo "###################################################################"
221    
222     %postun

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed