]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - lighttpd/lighttpd.nm
gnome-themes-standard: Update to 3.11.5.
[people/ms/ipfire-3.x.git] / lighttpd / lighttpd.nm
CommitLineData
48234d24 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
48234d24
MT
4###############################################################################
5
802ea3af 6name = lighttpd
4500fa51 7version = 1.4.30
94234825 8ver_major = 1.4
b1398028 9release = 2
48234d24 10
802ea3af
MT
11maintainer = Michael Tremer <michael.tremer@ipfire.org>
12groups = Networking/Webservers
13url = http://www.lighttpd.net/
14license = BSD
15summary = Lightning fast webserver with light system requirements.
48234d24 16
802ea3af 17description
94234825
SS
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
48234d24 23 problems.
802ea3af
MT
24end
25
94234825 26source_dl = http://download.lighttpd.net/lighttpd/releases-%{ver_major}.x/
802ea3af
MT
27
28build
29 requires
30 bzip2-devel
31 gdbm-devel
32 openldap-devel
33 openssl-devel
34 pcre-devel
35 pkg-config
94234825 36 shadow-utils
802ea3af
MT
37 zlib-devel
38 end
39
40 configure_options += \
b1398028 41 --libdir=%{libdir}/%{name} \
802ea3af
MT
42 --with-ldap \
43 --with-openssl
44
94234825
SS
45 prepare_cmds
46 %{create_user}
47 end
48
802ea3af
MT
49 install_cmds
50 mkdir -pv %{BUILDROOT}/etc
51 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/%{name}.conf
52
53 mkdir -pv %{BUILDROOT}/var/log/%{name}
54 touch %{BUILDROOT}/var/log/%{name}/{access,error}.log
94234825 55 chown lighttpd.lighttpd -R %{BUILDROOT}/var/log/%{name}
802ea3af 56 mkdir -pv %{BUILDROOT}/var/cache/lighttpd/compress
94234825
SS
57 chown lighttpd.lighttpd -Rv %{BUILDROOT}/var/cache/lighttpd/
58
59 mkdir -pv %{BUILDROOT}/run/lighttpd
60 chown lighttpd.lighttpd -Rv %{BUILDROOT}/run/lighttpd/
802ea3af
MT
61 end
62end
63
94234825
SS
64create_user
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
68end
69
802ea3af
MT
70packages
71 package %{name}
94234825
SS
72 configfiles
73 /etc/lighttpd.conf
74 end
1f9bc2f0 75
4500fa51
SS
76 prerequires
77 shadow-utils
78 systemd-units
79 end
94234825
SS
80
81 script prein
82 %{create_user}
83 end
1f9bc2f0 84
94234825
SS
85 script postin
86 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
87 end
1f9bc2f0 88
94234825
SS
89 script preun
90 /bin/systemctl --no-reload disable lighttpd.service >/dev/null 2>&1 || :
91 /bin/systemctl stop lighttpd.service >/dev/null 2>&1 || :
92 end
1f9bc2f0 93
94234825
SS
94 script postup
95 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
96 /bin/systemctl try-restart lighttpd.service >/dev/null 2>&1 || :
97 end
802ea3af 98 end
1f9bc2f0
MT
99
100 package %{name}-debuginfo
101 template DEBUGINFO
102 end
802ea3af 103end