1 |
Name: dehydrated |
Name: dehydrated |
2 |
Version: 0.3.0.20160914.gitcaeed7d |
%define version 0.6.2 |
3 |
Release: 4%{?dist} |
%define release 14 |
4 |
|
Version: %{version} |
5 |
|
Release: %{release}%{?dist} |
6 |
Summary: ACME client in bash |
Summary: ACME client in bash |
7 |
|
|
8 |
Group: Application/System |
Group: Application/System |
9 |
License: MIT |
License: MIT |
10 |
URL: https://github.com/lukas2511/dehydrated |
URL: https://github.com/lukas2511/dehydrated |
11 |
Source0: dehydrated-master.zip |
Source0: dehydrated-%{version}.tar.gz |
12 |
Source1: dehydrated_hooks |
Source1: integration.tgz |
13 |
SOurce2: dehydrated_revoke |
|
14 |
Source3: httpd.sh.sample |
Patch1: dehydrated-fix-missing-id.patch |
15 |
|
|
16 |
BuildArch: noarch |
BuildArch: noarch |
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
38 |
relatively simple bash-script. |
relatively simple bash-script. |
39 |
|
|
40 |
%prep |
%prep |
41 |
%setup -q -n dehydrated-master |
#unpack source 1 |
42 |
|
%setup -n dehydrated-%{version} |
43 |
|
# unpack integration package aka source 1; do not delete previous -D, and disable default unpacking -T |
44 |
|
# this wil unpack the integration file in the previous unpacked dehydrated folder |
45 |
|
%setup -T -D -a 1 |
46 |
|
|
47 |
|
%patch1 -p1 |
48 |
|
|
49 |
%build |
%build |
50 |
sed -i -e "s|#BASEDIR=.*|BASEDIR=%{_localstatedir}/lib/%{name}/certificates|" \ |
sed -i -e "s|#BASEDIR=.*|BASEDIR=%{_localstatedir}/lib/%{name}/certificates|" \ |
57 |
install -d $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}/challenges |
install -d $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}/challenges |
58 |
install -d $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}/certificates |
install -d $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}/certificates |
59 |
install -D dehydrated $RPM_BUILD_ROOT/%{_bindir}/%{name} |
install -D dehydrated $RPM_BUILD_ROOT/%{_bindir}/%{name} |
60 |
install %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}/dehydrated_hooks |
install integration/dehydrated_hooks $RPM_BUILD_ROOT/%{_bindir}/dehydrated_hooks |
61 |
install %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}/dehydrated_revoke |
install integration/dehydrated_revoke $RPM_BUILD_ROOT/%{_bindir}/dehydrated_revoke |
62 |
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/hooks_deploy_cert.d |
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/hooks_deploy_cert.d |
63 |
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/hooks_clean_challenge.d |
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/hooks_clean_challenge.d |
64 |
install -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/hooks_deploy_cert.d/10httpd.sh.sample |
install -D -m 0644 integration/httpd.sh.sample $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/hooks_deploy_cert.d/10httpd.sh.sample |
65 |
install -D -m 0644 docs/examples/config $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/config |
install -D -m 0644 docs/examples/config $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/config |
66 |
install -D -m 0644 docs/examples/domains.txt $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/domains.txt |
install -D -m 0644 docs/examples/domains.txt $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/domains.txt |
67 |
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/ |
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/ |
68 |
cat <<"_EOF" > $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/%{name} |
cat <<"_EOF" > $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/%{name} |
69 |
|
|
70 |
#!/bin/sh |
#!/bin/sh |
71 |
# Uncomment to enable auto-renewal |
# Uncomment to enable auto-renewal |
72 |
# %{_bindir}/%{name} -c 2>&1 | awk '{ print strftime(), $0; fflush(); }' >> %{_localstatedir}/log/%{name}.log |
# %{_bindir}/%{name} -c 2>&1 | awk '{ print strftime(), $0; fflush(); }' >> %{_localstatedir}/log/%{name}.log |
149 |
|
|
150 |
%files |
%files |
151 |
%doc LICENSE README.md docs/examples/hook.sh |
%doc LICENSE README.md docs/examples/hook.sh |
152 |
%config(noreplace) %{_sysconfdir}/%{name}/* |
%dir %attr(0755,root,root) %{_sysconfdir}/%{name}/hooks_clean_challenge.d/ |
153 |
|
%attr(0644, root,root) %{_sysconfdir}/%{name}/hooks_deploy_cert.d/* |
154 |
|
%config(noreplace) %{_sysconfdir}/%{name}/domains.txt |
155 |
|
%config(noreplace) %{_sysconfdir}/%{name}/config |
156 |
%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/cron.daily/%{name} |
%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/cron.daily/%{name} |
157 |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf |
158 |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
|
%attr(0644, root,root) %{_sysconfdir}/%{name}/hooks_deploy_cert.d/* |
|
|
%dir %attr(0755,root,root) %{_sysconfdir}/%{name}/hooks_clean_challenge.d/ |
|
159 |
%attr(0755,root,root) %{_bindir}/%{name} |
%attr(0755,root,root) %{_bindir}/%{name} |
160 |
%attr(0755,root,root) %{_bindir}/dehydrated_hooks |
%attr(0755,root,root) %{_bindir}/dehydrated_hooks |
161 |
%attr(0755,root,root) %{_bindir}/dehydrated_revoke |
%attr(0755,root,root) %{_bindir}/dehydrated_revoke |
163 |
%dir %attr(0750,root,root) %{_localstatedir}/lib/%{name}/certificates |
%dir %attr(0750,root,root) %{_localstatedir}/lib/%{name}/certificates |
164 |
|
|
165 |
%changelog |
%changelog |
166 |
|
* Fri Nov 22 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.6.2-14.sme |
167 |
|
- fix Malformed account ID error [SME: 10828] |
168 |
|
|
169 |
|
* Thu May 03 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.6.2-13.sme |
170 |
|
- upgrade to upstream version [SME: 10577] |
171 |
|
|
172 |
|
* Wed Apr 11 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.6.1-12.sme |
173 |
|
- upgrade to upstream version [SME: 10565] |
174 |
|
|
175 |
|
* Fri Feb 16 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.5.0-3.sme |
176 |
|
- fix Dehydrated caused rate limits to be reached [SME: 10521] patch0 |
177 |
|
|
178 |
|
* Fri Feb 16 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.5.0-1.sme |
179 |
|
- upgrade to upstream version [SME: 10521] |
180 |
|
- update architecture of sources and release/version number |
181 |
|
according to Charlie Brady recomendations see [SME 9901] |
182 |
|
|
183 |
|
* Mon Feb 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> - 0.4.0.20170205.git1163864.sme |
184 |
|
- update dehydrated to 0.4 [SME: 10080] |
185 |
|
- see https://github.com/lukas2511/dehydrated/releases/tag/v0.4.0 |
186 |
|
|
187 |
* Fri Jan 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> - 0.3.0.20160914.gitcaeed7d-4.sme |
* Fri Jan 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> - 0.3.0.20160914.gitcaeed7d-4.sme |
188 |
- Initial import in SME Server Buildsys |
- Initial import in SME Server Buildsys |
189 |
|
|
240 |
|
|
241 |
* Mon Jan 25 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.0.1.git3432f60-1 |
* Mon Jan 25 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.0.1.git3432f60-1 |
242 |
- First package |
- First package |
243 |
|
|
244 |
|
%patch |