1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 maintainer = Michael Tremer <michael.tremer@ipfire.org>
12 groups = Networking/Webservers
13 url = http://www.lighttpd.net/
15 summary = Lightning fast webserver with light system requirements.
18 Secure, fast, compliant and very flexible web-server which has been optimized
19 for high-performance environments. It has a very low memory footprint compared
20 to other webservers and takes care of cpu-load. Its advanced feature-set
21 (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make
22 it the perfect webserver-software for every server that is suffering load
26 source_dl = http://download.lighttpd.net/lighttpd/releases-%{ver_major}.x/
40 configure_options += \
41 --libdir=/usr/lib/%{name} \
50 mkdir -pv %{BUILDROOT}/etc
51 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/%{name}.conf
53 mkdir -pv %{BUILDROOT}/var/log/%{name}
54 touch %{BUILDROOT}/var/log/%{name}/{access,error}.log
55 chown lighttpd.lighttpd -R %{BUILDROOT}/var/log/%{name}
56 mkdir -pv %{BUILDROOT}/var/cache/lighttpd/compress
57 chown lighttpd.lighttpd -Rv %{BUILDROOT}/var/cache/lighttpd/
59 mkdir -pv %{BUILDROOT}/run/lighttpd
60 chown lighttpd.lighttpd -Rv %{BUILDROOT}/run/lighttpd/
65 getent group lighttpd >/dev/null || /usr/sbin/groupadd -r lighttpd
66 getent passwd lighttpd >/dev/null || /usr/sbin/useradd -r -g lighttpd \
67 -d /var/www/lighttpd -s /sbin/nologin lighttpd
76 prerequires = shadow-utils systemd-units
83 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
87 /bin/systemctl --no-reload disable lighttpd.service >/dev/null 2>&1 || :
88 /bin/systemctl stop lighttpd.service >/dev/null 2>&1 || :
92 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
93 /bin/systemctl try-restart lighttpd.service >/dev/null 2>&1 || :