2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=http
://download.lighttpd.net
/lighttpd
/releases-1.4.x
16 PKG_MD5SUM
:=4630517b8342d4ec0a2d61a0a9e05c82
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/lighttpd
/Default
24 SUBMENU
:=Web Servers
/Proxies
27 URL
:=http
://www.lighttpd.net
/
30 define Package
/lighttpd
31 $(call Package
/lighttpd
/Default
)
33 DEPENDS
:=+LIGHTTPD_SSL
:libopenssl
+libpcre
+libpthread
34 TITLE
:=A flexible and lightweight web server
37 define Package
/lighttpd
/config
40 depends on PACKAGE_lighttpd
43 Implements SSL support in lighttpd
(using libopenssl
). This
44 option is required if you enable the SSL engine in your
45 lighttpd confguration file.
48 define Package
/lighttpd-mod-access
49 $(call Package
/lighttpd
/Default
)
51 TITLE
:=Access restrictions module
54 define Package
/lighttpd-mod-accesslog
55 $(call Package
/lighttpd
/Default
)
57 TITLE
:=Access logging module
60 define Package
/lighttpd-mod-alias
61 $(call Package
/lighttpd
/Default
)
63 TITLE
:=Directory alias module
66 define Package
/lighttpd-mod-auth
67 $(call Package
/lighttpd
/Default
)
69 TITLE
:=Authentication module
72 define Package
/lighttpd-mod-cgi
73 $(call Package
/lighttpd
/Default
)
78 define Package
/lighttpd-mod-cml
79 $(call Package
/lighttpd
/Default
)
81 TITLE
:=Cache Meta Language module
84 define Package
/lighttpd-mod-compress
85 $(call Package
/lighttpd
/Default
)
86 DEPENDS
:=lighttpd
+zlib
87 TITLE
:=Compress output module
90 define Package
/lighttpd-mod-evasive
91 $(call Package
/lighttpd
/Default
)
96 define Package
/lighttpd-mod-evhost
97 $(call Package
/lighttpd
/Default
)
99 TITLE
:=Exnhanced Virtual-Hosting module
102 define Package
/lighttpd-mod-expire
103 $(call Package
/lighttpd
/Default
)
108 define Package
/lighttpd-mod-extforward
109 $(call Package
/lighttpd
/Default
)
111 TITLE
:=Extract client IP module
114 define Package
/lighttpd-mod-fastcgi
115 $(call Package
/lighttpd
/Default
)
117 TITLE
:=FastCGI module
120 define Package
/lighttpd-mod-flv-streaming
121 $(call Package
/lighttpd
/Default
)
123 TITLE
:=flv streaming module
126 define Package
/lighttpd-mod-magnet
127 $(call Package
/lighttpd
/Default
)
132 define Package
/lighttpd-mod-mysql-vhost
133 $(call Package
/lighttpd
/Default
)
134 DEPENDS
:=lighttpd
+libmysqlclient
135 TITLE
:=Mysql virtual hosting module
138 define Package
/lighttpd-mod-proxy
139 $(call Package
/lighttpd
/Default
)
144 define Package
/lighttpd-mod-redirect
145 $(call Package
/lighttpd
/Default
)
146 DEPENDS
:=lighttpd
+libpcre
147 TITLE
:=URL redirection module
150 define Package
/lighttpd-mod-rewrite
151 $(call Package
/lighttpd
/Default
)
152 DEPENDS
:=lighttpd
+libpcre
153 TITLE
:=URL rewriting module
156 define Package
/lighttpd-mod-rrdtool
157 $(call Package
/lighttpd
/Default
)
159 TITLE
:=rrdtool module
162 define Package
/lighttpd-mod-scgi
163 $(call Package
/lighttpd
/Default
)
168 define Package
/lighttpd-mod-secdownload
169 $(call Package
/lighttpd
/Default
)
171 TITLE
:=Secure and fast download module
174 define Package
/lighttpd-mod-setenv
175 $(call Package
/lighttpd
/Default
)
177 TITLE
:=Environment variable setting module
180 define Package
/lighttpd-mod-simple-vhost
181 $(call Package
/lighttpd
/Default
)
183 TITLE
:=Simple virtual hosting module
186 define Package
/lighttpd-mod-ssi
187 $(call Package
/lighttpd
/Default
)
188 DEPENDS
:=lighttpd
+libpcre
192 define Package
/lighttpd-mod-status
193 $(call Package
/lighttpd
/Default
)
195 TITLE
:=Server status display module
198 define Package
/lighttpd-mod-trigger-b4-dl
199 $(call Package
/lighttpd
/Default
)
200 DEPENDS
:=lighttpd
+libpcre
201 TITLE
:=Trigger before download module
204 define Package
/lighttpd-mod-userdir
205 $(call Package
/lighttpd
/Default
)
207 TITLE
:=User directory module
210 define Package
/lighttpd-mod-usertrack
211 $(call Package
/lighttpd
/Default
)
213 TITLE
:=User tracking module
216 define Package
/lighttpd-mod-webdav
217 $(call Package
/lighttpd
/Default
)
218 DEPENDS
:=lighttpd
+libsqlite3
+libuuid
+libxml2
223 --libdir=/usr
/lib
/lighttpd \
224 --sysconfdir
=/etc
/lighttpd \
238 $(call autoconf_bool
,CONFIG_IPV6
,ipv6
)
243 ifneq ($(strip $(CONFIG_LIGHTTPD_SSL
)),)
245 --with-openssl
="$(STAGING_DIR)/usr"
251 ifneq ($(SDK
)$(CONFIG_PACKAGE_lighttpd-mod-webdav
),)
253 --with-webdav-locks \
255 # XXX: needed by sqlite3 to prevent segfaults in mod_webdav.so
260 --without-webdav-locks \
261 --without-webdav-props
264 define Build
/Configure
265 $(call Build
/Configure
/Default
)
266 # XXX: override pcre (mis)detection by ./configure when cross-compiling
267 echo
"#define HAVE_LIBPCRE 1" >>$(PKG_BUILD_DIR
)/config.h
268 echo
"#define HAVE_PCRE_H 1" >>$(PKG_BUILD_DIR
)/config.h
271 define Package
/lighttpd
/conffiles
272 /etc
/lighttpd
/lighttpd.conf
275 define Package
/lighttpd
/install
276 $(INSTALL_DIR
) $(1)/etc
/lighttpd
277 $(INSTALL_DATA
) .
/files
/lighttpd.conf
$(1)/etc
/lighttpd
/
278 $(INSTALL_DIR
) $(1)/etc
/init.d
279 $(INSTALL_BIN
) .
/files
/lighttpd.init
$(1)/etc
/init.d
/lighttpd
280 $(INSTALL_DIR
) $(1)/usr
/lib
/lighttpd
281 for m in dirlisting indexfile staticfile
; do \
282 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$$$${m}.so
$(1)/usr
/lib
/lighttpd
/ ; \
284 $(INSTALL_DIR
) $(1)/usr
/sbin
285 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/lighttpd
$(1)/usr
/sbin
/
289 define Package
/$(1)/install
290 [ -z
"$(2)" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/lighttpd
292 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$$$$$$$${m}.so
$$(1)/usr
/lib
/lighttpd
/ ; \
296 $$(eval
$$(call BuildPackage
,$(1)))
299 $(eval
$(call BuildPackage
,lighttpd
))
300 $(eval
$(call BuildPlugin
,lighttpd-mod-access
,access
))
301 $(eval
$(call BuildPlugin
,lighttpd-mod-accesslog
,accesslog
))
302 $(eval
$(call BuildPlugin
,lighttpd-mod-alias
,alias
))
303 $(eval
$(call BuildPlugin
,lighttpd-mod-auth
,auth
))
304 $(eval
$(call BuildPlugin
,lighttpd-mod-cgi
,cgi
))
305 $(eval
$(call BuildPlugin
,lighttpd-mod-cml
,cml
))
306 $(eval
$(call BuildPlugin
,lighttpd-mod-compress
,compress
))
307 $(eval
$(call BuildPlugin
,lighttpd-mod-evasive
,evasive
))
308 $(eval
$(call BuildPlugin
,lighttpd-mod-evhost
,evhost
))
309 $(eval
$(call BuildPlugin
,lighttpd-mod-expire
,expire
))
310 $(eval
$(call BuildPlugin
,lighttpd-mod-extforward
,extforward
))
311 $(eval
$(call BuildPlugin
,lighttpd-mod-fastcgi
,fastcgi
))
312 $(eval
$(call BuildPlugin
,lighttpd-mod-flv-streaming
,flv_streaming
))
313 $(eval
$(call BuildPlugin
,lighttpd-mod-magnet
,magnet
))
314 $(eval
$(call BuildPlugin
,lighttpd-mod-proxy
,proxy
))
315 $(eval
$(call BuildPlugin
,lighttpd-mod-redirect
,redirect
))
316 $(eval
$(call BuildPlugin
,lighttpd-mod-rewrite
,rewrite
))
317 $(eval
$(call BuildPlugin
,lighttpd-mod-rrdtool
,rrdtool
))
318 $(eval
$(call BuildPlugin
,lighttpd-mod-scgi
,scgi
))
319 $(eval
$(call BuildPlugin
,lighttpd-mod-secdownload
,secdownload
))
320 $(eval
$(call BuildPlugin
,lighttpd-mod-setenv
,setenv
))
321 $(eval
$(call BuildPlugin
,lighttpd-mod-simple-vhost
,simple_vhost
))
322 $(eval
$(call BuildPlugin
,lighttpd-mod-ssi
,ssi
))
323 $(eval
$(call BuildPlugin
,lighttpd-mod-status
,status
))
324 $(eval
$(call BuildPlugin
,lighttpd-mod-trigger-b4-dl
,trigger_b4_dl
))
325 $(eval
$(call BuildPlugin
,lighttpd-mod-userdir
,userdir
))
326 $(eval
$(call BuildPlugin
,lighttpd-mod-usertrack
,usertrack
))
327 $(eval
$(call BuildPlugin
,lighttpd-mod-webdav
,webdav
))