A dehydrated (ACME client) integration on SME Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
3.4 KiB

8 years ago
%define version 0.2.3
9 years ago
%define release 1
9 years ago
%define name smeserver-letsencrypt-client
8 years ago
Summary: Let's Encrypt client for SME Server based on dehydrated
9 years ago
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GPL
Group: Applications/System
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArchitectures: noarch
BuildRequires: e-smith-devtools
9 years ago
Requires: e-smith-base
Requires: dehydrated
9 years ago
%description
Automatically get certificates from letsencrypt
Using https://github.com/lukas2511/dehydrated
9 years ago
%changelog
8 years ago
* Wed Mar 15 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.2.3-1.sme
- Set default Uri to prod
8 years ago
* Wed Nov 23 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.2.2-1.sme
- Correctly update cert for the imaps service on SME8
8 years ago
* Mon Oct 24 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.2.1-1.sme
- Rename cron template metadata
8 years ago
* Thu Sep 15 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.2.0-1.sme
- Adapt for the rename of letsencrypt.sh to dehydrated
9 years ago
* Mon Jun 27 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.10-1.sme
- Fix deploy hook for sme8
9 years ago
* Fri Jun 24 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.9-1.sme
9 years ago
- Fix cron job syntax
9 years ago
9 years ago
* Mon Jun 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.8-1.sme
- Add a new ProxyPassACMEChallengesDisableOnRenew prop to allow disabling
ACME proxypass during renewal
- Always enable /.well-known alias on vhosts
9 years ago
* Tue May 31 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.7-1.sme
- Rename config.sh to config
- set DOMAINS_TXT path in config
* Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.6-2.sme
- Define %clean before %files
9 years ago
* Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.6-1.sme
- Use chain.pem instead of fullchain.pem
9 years ago
* Sun Jan 31 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.5-1.sme
- Fix old certs revocation
- Make renewal configuratble
9 years ago
* Fri Jan 29 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.4-1.sme
- Better AltName selection and dedup
* Fri Jan 29 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.3-1.sme
- Rename le-update event to letsencrypt-update
* Fri Jan 29 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.2-1.sme
- Add an Uri prop to choose between production and staging CA
* Mon Jan 25 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1.sme
- Change the way hooks are called to make it more flexible
9 years ago
* Fri Jan 22 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1.sme
- Initial release
%prep
%setup -q -n %{name}-%{version}
%build
%{__mkdir_p} root/home/e-smith/db/dehydrated
9 years ago
perl createlinks
%install
/bin/rm -rf $RPM_BUILD_ROOT
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
--dir /home/e-smith/db/dehydrated 'attr(0750,root,root)' \
--file /etc/dehydrated/hooks_deploy_cert.d/10smeserver.sh 'attr(0755,root,root)' \
--file /etc/dehydrated/hooks_clean_challenge.d/10smeserver.sh 'attr(0755,root,root)' \
9 years ago
> %{name}-%{version}-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
9 years ago
%pre
%post
# Migrate from letsencrypt.sh to dehydrated
if [ -d /home/e-smith/db/letsencrypt.sh/ ]; then
mv /home/e-smith/db/letsencrypt.sh/* /home/e-smith/db/dehydrated/
fi