SHA256
1
0
forked from pool/dehydrated

- Removed lighttpd 1.x integration package. If you still would like

to use lighttpd with dehydrated, follow the instructions in the
  README.maintainers file.

OBS-URL: https://build.opensuse.org/package/show/security:dehydrated/dehydrated?expand=0&rev=57
This commit is contained in:
Daniel Molkentin 2020-05-06 15:00:46 +00:00 committed by Git OBS Bridge
parent 15c290c4eb
commit 9810800404
5 changed files with 21 additions and 40 deletions

View File

@ -61,13 +61,20 @@ lighttpd
(not part of SLE, use openSUSE backports) (not part of SLE, use openSUSE backports)
Lighttpd users can simply install dehydrated-lighttpd and reload lighttpd to Lighttpd users can use the following snippet:
set up the acme-challenge auto-responder
server.modules += ("mod_alias")
alias.url += (
"/.well-known/acme-challenge/" => "/var/lib/acme-challenge/",
)
NOTE: Never set up the SSL vhosts until you have initially acquired the first NOTE: Never set up the SSL vhosts until you have initially acquired the first
host. Specifying an SSL vhost without certificates constitutes an error for web host. Specifying an SSL vhost without certificates constitutes an error for web
servers. servers.
NOTE: The dehydrated-lighttpd package has been removed. Please use the
snippet above.
Machines without a webserver Machines without a webserver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,4 +0,0 @@
server.modules += ("mod_alias")
alias.url += (
"/.well-known/acme-challenge/" => "@CHALLENGEDIR@/",
)

1
dehydrated-rpmlintrc Normal file
View File

@ -0,0 +1 @@
addFilter("dehydrated.* obsolete-not-provided")

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 6 12:34:56 UTC 2020 - Daniel Molkentin <daniel.molkentin@suse.com>
- Removed lighttpd 1.x integration package. If you still would like
to use lighttpd with dehydrated, follow the instructions in the
README.maintainers file.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 20 00:37:26 UTC 2020 - Daniel Molkentin <daniel.molkentin@suse.com> Mon Apr 20 00:37:26 UTC 2020 - Daniel Molkentin <daniel.molkentin@suse.com>

View File

@ -29,18 +29,12 @@
%bcond_with systemd %bcond_with systemd
%endif %endif
%if 0%{?sle_version} >= 150000 || 0%{?is_opensuse} || %{defined fedora} %if 0%{?sle_version} >= 150000 || %{defined fedora}
%bcond_without nginx %bcond_without nginx
%else %else
%bcond_with nginx %bcond_with nginx
%endif %endif
%if 0%{?is_opensuse} || %{defined fedora}
%bcond_without lighttpd
%else
%bcond_with lighttpd
%endif
%{!?_tmpfilesdir: %global _tmpfilesdir %{_prefix}/lib/tmpfiles.d } %{!?_tmpfilesdir: %global _tmpfilesdir %{_prefix}/lib/tmpfiles.d }
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines # See also http://en.opensuse.org/openSUSE:Specfile_guidelines
@ -59,7 +53,6 @@ URL: https://github.com/lukas2511/dehydrated
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: acme-challenge.conf.apache.in Source1: acme-challenge.conf.apache.in
Source2: acme-challenge.conf.nginx.in Source2: acme-challenge.conf.nginx.in
Source3: acme-challenge.conf.lighttpd.in
Source4: dehydrated.cron.in Source4: dehydrated.cron.in
Source5: dehydrated.tmpfiles.d Source5: dehydrated.tmpfiles.d
Source6: dehydrated.service.in Source6: dehydrated.service.in
@ -69,6 +62,7 @@ Source10: README.Fedora
Source11: README.hooks Source11: README.hooks
Source12: %{name}-%{version}.tar.gz.asc Source12: %{name}-%{version}.tar.gz.asc
Source13: %{name}.keyring Source13: %{name}.keyring
Source14: %{name}-rpmlintrc
BuildRequires: %{_apache} BuildRequires: %{_apache}
Requires: coreutils Requires: coreutils
Requires: curl Requires: curl
@ -77,11 +71,9 @@ Requires: sudo
Requires(pre): %{_bindir}/getent Requires(pre): %{_bindir}/getent
Requires(pre): %{_sbindir}/groupadd Requires(pre): %{_sbindir}/groupadd
Requires(pre): %{_sbindir}/useradd Requires(pre): %{_sbindir}/useradd
Obsoletes: dehydrated-lighttpd < %{version}-%{release}
Obsoletes: letsencrypt.sh < %{version} Obsoletes: letsencrypt.sh < %{version}
Provides: letsencrypt.sh = %{version} Provides: letsencrypt.sh = %{version}
%if %{with lighttpd}
BuildRequires: lighttpd
%endif
%if %{with nginx} %if %{with nginx}
BuildRequires: nginx BuildRequires: nginx
%endif %endif
@ -150,16 +142,6 @@ Provides: letsencrypt.sh-nginx = %{version}
This adds a configuration file for dehydrated's acme-challenge to nginx. This adds a configuration file for dehydrated's acme-challenge to nginx.
%endif #with nginx %endif #with nginx
%if %{with lighttpd}
%package lighttpd
Summary: Lighttpd Integration for dehydrated
Requires: %{name}
Requires: lighttpd
%description lighttpd
This adds a configuration file for dehydrated's acme-challenge to lighttpd.
%endif #with lighttpd
%pre %pre
getent group %{_user} >/dev/null || %{_sbindir}/groupadd -r %{_user} getent group %{_user} >/dev/null || %{_sbindir}/groupadd -r %{_user}
getent passwd %{_user} >/dev/null || %{_sbindir}/useradd -g %{_user} \ getent passwd %{_user} >/dev/null || %{_sbindir}/useradd -g %{_user} \
@ -218,12 +200,6 @@ sed "s,@CHALLENGEDIR@,%{_challengedir},g" %{SOURCE2} > acme-challenge
install -m 0644 acme-challenge %{buildroot}%{_sysconfdir}/nginx install -m 0644 acme-challenge %{buildroot}%{_sysconfdir}/nginx
%endif #with nginx %endif #with nginx
%if %{with lighttpd}
install -m 0755 -d %{buildroot}%{_sysconfdir}/lighttpd/conf.d
sed "s,@CHALLENGEDIR@,%{_challengedir},g" %{SOURCE3} > acme-challenge.conf
install -m 0644 acme-challenge.conf %{buildroot}%{_sysconfdir}/lighttpd/conf.d
%endif #with lighttpd
%if %{with systemd} %if %{with systemd}
install -D -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -D -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf
# Use timer # Use timer
@ -253,7 +229,7 @@ perl -p -i -e 's|#DEHYDRATED_GROUP=|DEHYDRATED_GROUP="%{_user}"|' %{buildroot}%{
diff -urN docs/examples/config %{buildroot}%{_home}/config ||: diff -urN docs/examples/config %{buildroot}%{_home}/config ||:
# Rename existing config file config files fror nginx and lighttpd # Rename existing config file config files fror nginx
%if %{with nginx} %if %{with nginx}
%pre nginx %pre nginx
[ -f %{_sysconfdir}/nginx/conf.d/acme-challenge ] && \ [ -f %{_sysconfdir}/nginx/conf.d/acme-challenge ] && \
@ -303,10 +279,4 @@ diff -urN docs/examples/config %{buildroot}%{_home}/config ||:
%config %attr(640,root,nginx) %{_sysconfdir}/nginx/acme-challenge %config %attr(640,root,nginx) %{_sysconfdir}/nginx/acme-challenge
%endif #with nginx %endif #with nginx
%if %{with lighttpd}
%files lighttpd
%defattr(-,root,root)
%config %attr(640,root,lighttpd) %{_sysconfdir}/lighttpd/conf.d/acme-challenge.conf
%endif #with lighttpd
%changelog %changelog