|
|
@ -15,11 +15,11 @@ BuildArchitectures: noarch |
|
|
|
BuildRequires: e-smith-devtools |
|
|
|
BuildRequires: e-smith-devtools |
|
|
|
|
|
|
|
|
|
|
|
Requires: e-smith-base |
|
|
|
Requires: e-smith-base |
|
|
|
Requires: letsencrypt.sh |
|
|
|
Requires: dehydrated |
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
%description |
|
|
|
Automatically get certificates from letsencrypt |
|
|
|
Automatically get certificates from letsencrypt |
|
|
|
Using https://github.com/lukas2511/letsencrypt.sh |
|
|
|
Using https://github.com/lukas2511/dehydrated |
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%changelog |
|
|
|
* Mon Jun 27 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.10-1.sme |
|
|
|
* Mon Jun 27 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.10-1.sme |
|
|
@ -66,7 +66,7 @@ Using https://github.com/lukas2511/letsencrypt.sh |
|
|
|
%setup -q -n %{name}-%{version} |
|
|
|
%setup -q -n %{name}-%{version} |
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
%build |
|
|
|
%{__mkdir_p} root/home/e-smith/db/letsencrypt.sh |
|
|
|
%{__mkdir_p} root/home/e-smith/db/dehydrated |
|
|
|
perl createlinks |
|
|
|
perl createlinks |
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
@ -74,9 +74,9 @@ perl createlinks |
|
|
|
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
|
|
|
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
|
|
|
/bin/rm -f %{name}-%{version}-filelist |
|
|
|
/bin/rm -f %{name}-%{version}-filelist |
|
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
|
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
|
|
|
--dir /home/e-smith/db/letsencrypt.sh 'attr(0750,root,root)' \ |
|
|
|
--dir /home/e-smith/db/dehydrated 'attr(0750,root,root)' \ |
|
|
|
--file /etc/letsencrypt.sh/hooks_deploy_cert.d/10smeserver.sh 'attr(0755,root,root)' \ |
|
|
|
--file /etc/dehydrated/hooks_deploy_cert.d/10smeserver.sh 'attr(0755,root,root)' \ |
|
|
|
--file /etc/letsencrypt.sh/hooks_clean_challenge.d/10smeserver.sh 'attr(0755,root,root)' \ |
|
|
|
--file /etc/dehydrated/hooks_clean_challenge.d/10smeserver.sh 'attr(0755,root,root)' \ |
|
|
|
> %{name}-%{version}-filelist |
|
|
|
> %{name}-%{version}-filelist |
|
|
|
|
|
|
|
|
|
|
|
%clean |
|
|
|
%clean |
|
|
@ -88,4 +88,8 @@ rm -rf $RPM_BUILD_ROOT |
|
|
|
%pre |
|
|
|
%pre |
|
|
|
|
|
|
|
|
|
|
|
%post |
|
|
|
%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/ |
|
|
|
|
|
|
|
rmdir /home/e-smith/db/letsencrypt.sh/ |
|
|
|
|
|
|
|
fi |
|
|
|