1 Summary: letsencrypt/acme client implemented as a shell-script
6 Group: Applications/Networking
7 Source0: https://github.com/lukas2511/letsencrypt.sh/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: eadd134cc5365753c03929dd70db341d
10 Source2: lighttpd.conf
13 URL: https://github.com/lukas2511/letsencrypt.sh
14 BuildRequires: rpmbuild(macros) >= 1.713
21 Requires: webserver(access)
22 Requires: webserver(alias)
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _webapps /etc/webapps
27 %define _webapp %{name}
28 %define _sysconfdir %{_webapps}/%{_webapp}
29 %define _appdir %{_datadir}/%{_webapp}
32 This is a client for signing certificates with an ACME-server
33 (currently only provided by letsencrypt) implemented as a relatively
37 - Signing of a list of domains
39 - Renewal if a certificate is about to expire or SAN (subdomains)
41 - Certificate revocation
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/acme-challenges}
51 install -p letsencrypt.sh $RPM_BUILD_ROOT%{_sbindir}
53 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
54 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
55 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
56 cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
59 rm -rf $RPM_BUILD_ROOT
61 %triggerin -- apache1 < 1.3.37-3, apache1-base
62 %webapp_register apache %{_webapp}
64 %triggerun -- apache1 < 1.3.37-3, apache1-base
65 %webapp_unregister apache %{_webapp}
67 %triggerin -- apache < 2.2.0, apache-base
68 %webapp_register httpd %{_webapp}
70 %triggerun -- apache < 2.2.0, apache-base
71 %webapp_unregister httpd %{_webapp}
73 %triggerin -- lighttpd
74 %webapp_register lighttpd %{_webapp}
76 %triggerun -- lighttpd
77 %webapp_unregister lighttpd %{_webapp}
80 %defattr(644,root,root,755)
81 %doc README.md CHANGELOG LICENSE
82 %dir %attr(750,root,http) %{_sysconfdir}
83 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
84 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
85 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
86 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.sh
87 # challenges written here from letsencrypt.sh, need to be readable by webserver
88 %dir %attr(751,root,root) %{_sysconfdir}/acme-challenges
90 %attr(755,root,root) %{_sbindir}/letsencrypt.sh