]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - test ldap and mysql (failed at this time) | |
3 | # - mysql issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=76866 | |
4 | # - fam over gamin is possible, just configure doesn't check other than gamin | |
5 | # - feature stat-cache-fam (doesn't work) | |
6 | # - lighttpd writes early startup messages to stderr, and if started from | |
7 | # rc-scripts the stderr is closed which causes lighttpd to abort(): | |
8 | # 2006-07-20 21:05:52: (server.c.1233) WARNING: unknown config-key: url.rewrite-final (ignored) | |
9 | # | |
10 | # NOTES: | |
11 | # - fcgi-devel is only used for the test-scripts | |
12 | # - disable largefile, if you have 2.4 kernel to get sendfile() support, and don't need > 2GB file requests, | |
13 | # see http://article.gmane.org/gmane.comp.web.lighttpd:722 | |
14 | # | |
15 | # Conditional build for lighttpd: | |
16 | %bcond_without xattr # support of extended attributes | |
17 | %bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel) | |
18 | %bcond_without largefile # largefile support (see notes above) | |
19 | %bcond_without ssl # ssl support | |
20 | %bcond_without mysql # mysql support in mod_mysql_vhost | |
21 | %bcond_with ldap # ldap support in mod_auth | |
22 | %bcond_without lua # LUA support in mod_cml (needs LUA >= 5.1) | |
23 | %bcond_with memcache # memcached support in mod_cml / mod_trigger_b4_dl | |
24 | %bcond_with gamin # gamin for reducing number of stat() calls. | |
25 | # NOTE: must be enabled in config: server.stat-cache-engine = "fam" | |
26 | %bcond_with gdbm # gdbm in mod_trigger_b4_dl | |
27 | %bcond_with webdav_props # properties in mod_webdav (includes extra sqlite3/libxml deps) | |
28 | %bcond_with webdav_locks # webdav locks with extra efsprogs deps | |
29 | %bcond_with valgrind # compile code with valgrind support. | |
30 | %bcond_with deflate # build deflate module (needs patch update with current svn) | |
31 | ||
32 | # SVN snapshot | |
33 | #define _svn 1277 | |
34 | # Prerelease | |
35 | #define _snap r1332 | |
36 | ||
37 | %if %{with webdav_locks} | |
38 | %define webdav_progs 1 | |
39 | %endif | |
40 | ||
41 | %define _rel 2 | |
42 | Summary: Fast and light HTTP server | |
43 | Summary(pl): Szybki i lekki serwer HTTP | |
44 | Name: lighttpd | |
45 | Version: 1.4.13 | |
46 | Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)}%{?_svn:.%{_svn}} | |
47 | License: BSD | |
48 | Group: Networking/Daemons | |
49 | Source0: http://www.lighttpd.net/download/%{name}-%{version}.tar.gz | |
50 | # Source0-md5: d775d6478391b95d841a1018c8db0b95 | |
51 | Source1: %{name}.init | |
52 | Source2: %{name}.conf | |
53 | Source3: %{name}.user | |
54 | Source4: %{name}.logrotate | |
55 | Source5: %{name}.sysconfig | |
56 | Source6: %{name}-mime.types.sh | |
57 | Source7: http://www.lighttpd.net/favicon.ico | |
58 | # Source7-md5: a358994becabd4060393a5454bde505d | |
59 | Source8: http://www.lighttpd.net/light_button.png | |
60 | # Source8-md5: 02330e2313fadc29144edfd6000879f8 | |
61 | Source9: http://www.lighttpd.net/light_logo.png | |
62 | # Source9-md5: ac20784510e420d5cbe5fc1cdb53d7a7 | |
63 | Source10: http://gdl.hopto.org/~spider/pldstats/gfx/pld1.png | |
64 | # Source10-md5: 486ecec3f6f4fe7f9bf7cee757b864f4 | |
65 | Source11: %{name}-pld.html | |
66 | Source12: %{name}.monitrc | |
67 | Source100: %{name}-mod_access.conf | |
68 | Source101: %{name}-mod_accesslog.conf | |
69 | Source102: %{name}-mod_alias.conf | |
70 | Source103: %{name}-mod_auth.conf | |
71 | Source104: %{name}-mod_cgi.conf | |
72 | Source105: %{name}-mod_cml.conf | |
73 | Source106: %{name}-mod_compress.conf | |
74 | Source107: %{name}-mod_deflate.conf | |
75 | Source108: %{name}-mod_dirlisting.conf | |
76 | Source109: %{name}-mod_evasive.conf | |
77 | Source110: %{name}-mod_evhost.conf | |
78 | Source111: %{name}-mod_expire.conf | |
79 | Source112: %{name}-mod_fastcgi.conf | |
80 | Source113: %{name}-mod_flv_streaming.conf | |
81 | Source114: %{name}-mod_indexfile.conf | |
82 | Source115: %{name}-mod_proxy.conf | |
83 | Source116: %{name}-mod_redirect.conf | |
84 | Source117: %{name}-mod_rewrite.conf | |
85 | Source118: %{name}-mod_rrdtool.conf | |
86 | Source119: %{name}-mod_scgi.conf | |
87 | Source120: %{name}-mod_secdownload.conf | |
88 | Source121: %{name}-mod_setenv.conf | |
89 | Source122: %{name}-mod_simple_vhost.conf | |
90 | Source123: %{name}-mod_ssi.conf | |
91 | Source124: %{name}-mod_staticfile.conf | |
92 | Source125: %{name}-mod_status.conf | |
93 | Source126: %{name}-mod_trigger_b4_dl.conf | |
94 | Source127: %{name}-mod_userdir.conf | |
95 | Source128: %{name}-mod_usertrack.conf | |
96 | Source129: %{name}-mod_webdav.conf | |
97 | Source130: %{name}-php-spawned.conf | |
98 | Source131: %{name}-php-external.conf | |
99 | Source132: %{name}-ssl.conf | |
100 | Source133: %{name}-mod_mysql_vhost.conf | |
101 | Source134: %{name}-mod_magnet.conf | |
102 | #Patch100: %{name}-branch.diff | |
103 | Patch0: %{name}-use_bin_sh.patch | |
104 | Patch1: %{name}-mod_evasive-status_code.patch | |
105 | Patch2: %{name}-mod_deflate.patch | |
106 | URL: http://www.lighttpd.net/ | |
107 | %{?with_xattr:BuildRequires: attr-devel} | |
108 | BuildRequires: autoconf | |
109 | BuildRequires: automake | |
110 | BuildRequires: bzip2-devel | |
111 | %{?with_gamin:BuildRequires: gamin-devel} | |
112 | %{?with_gdbm:BuildRequires: gdbm-devel} | |
113 | %{?with_memcache:BuildRequires: libmemcache-devel} | |
114 | BuildRequires: libtool | |
115 | BuildRequires: libuuid-devel | |
116 | %{?with_webdav_props:BuildRequires: libxml2-devel} | |
117 | %{?with_lua:BuildRequires: lua51-devel} | |
118 | BuildRequires: mailcap >= 2.1.14-4.4 | |
119 | %{?with_mysql:BuildRequires: mysql-devel} | |
120 | %{?with_ldap:BuildRequires: openldap-devel} | |
121 | %{?with_ssl:BuildRequires: openssl-devel} | |
122 | BuildRequires: pcre-devel | |
123 | BuildRequires: pkgconfig | |
124 | BuildRequires: rpmbuild(macros) >= 1.268 | |
125 | %{?with_webdav_props:BuildRequires: sqlite3-devel} | |
126 | %{?with_valgrind:BuildRequires: valgrind} | |
127 | BuildRequires: zlib-devel | |
128 | Requires(post,preun): /sbin/chkconfig | |
129 | Requires(postun): /usr/sbin/groupdel | |
130 | Requires(postun): /usr/sbin/userdel | |
131 | Requires(pre): /bin/id | |
132 | Requires(pre): /usr/bin/getgid | |
133 | Requires(pre): /usr/lib/rpm/user_group.sh | |
134 | Requires(pre): /usr/sbin/groupadd | |
135 | Requires(pre): /usr/sbin/useradd | |
136 | Requires(pre): /usr/sbin/usermod | |
137 | Requires: %{name}-mod_dirlisting | |
138 | Requires: %{name}-mod_indexfile | |
139 | Requires: %{name}-mod_staticfile | |
140 | Requires: rc-scripts | |
141 | Provides: group(http) | |
142 | Provides: group(lighttpd) | |
143 | Provides: user(lighttpd) | |
144 | Provides: webserver | |
145 | # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed. | |
146 | Conflicts: rpm < 4.4.2-0.2 | |
147 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
148 | ||
149 | %define _libdir %{_prefix}/%{_lib}/%{name} | |
150 | %define _lighttpddir /home/services/%{name} | |
151 | %define _sysconfdir /etc/%{name} | |
152 | ||
153 | %description | |
154 | lighttpd is a secure, fast, compliant and very flexible web-server | |
155 | which has been optimized for high-performance environments. It has a | |
156 | very low memory footprint compared to other webservers and takes care | |
157 | of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, | |
158 | Output-Compression, URL-Rewriting and many more) make lighttpd the | |
159 | perfect webserver-software for every server that is suffering load | |
160 | problems. | |
161 | ||
162 | %description -l pl | |
163 | lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym | |
164 |