# TODO:
+# - don't use lighttpd-angel in systemd. systemd does the respawn/recovery logic itself
# - provide or autogenerated self signed cert in post, so after installing
# lighttpd-ssl server will still work
# - patch with mod_websocket: https://github.com/Juniper/lighttpd-for-juise
Summary: Fast and light HTTP server
Summary(pl.UTF-8): Szybki i lekki serwer HTTP
Name: lighttpd
-Version: 1.4.54
-Release: 2
+Version: 1.4.55
+Release: 1
License: BSD
Group: Networking/Daemons/HTTP
Source0: https://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.xz
-# Source0-md5: 7abc776243c811e9872f73ab38b7f8b5
+# Source0-md5: be4bda2c28bcbdac6eb941528f6edf03
Source1: %{name}.init
Source2: %{name}.conf
Source3: %{name}.user
---- lighttpd-1.4.45/doc/systemd/lighttpd.service~ 2017-10-14 19:59:01.000000000 +0300
-+++ lighttpd-1.4.45/doc/systemd/lighttpd.service 2017-10-14 19:59:43.077416066 +0300
+--- lighttpd-1.4.55/doc/systemd/lighttpd.service~ 2020-02-01 04:49:09.000000000 +0200
++++ lighttpd-1.4.55/doc/systemd/lighttpd.service 2020-02-01 14:28:00.972414996 +0200
@@ -5,8 +5,9 @@
[Service]
Type=simple
- PIDFile=/var/run/lighttpd.pid
+ PIDFile=/run/lighttpd.pid
-ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
-ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
+EnvironmentFile=-/etc/sysconfig/lighttpd