2 # Copyright (C) 2006-2010 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.bz2
15 PKG_SOURCE_URL
:=http
://download.lighttpd.net
/lighttpd
/releases-1.4.x
/
16 PKG_MD5SUM
:=586eb535d31ac299652495b058dd87c4
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/lighttpd
/Default
27 URL
:=http
://www.lighttpd.net
/
30 define Package
/lighttpd
31 $(call Package
/lighttpd
/Default
)
33 DEPENDS
:=+libopenssl
+libpcre
+libpthread
34 TITLE
:=A flexible and lightweight web server
37 define Package
/lighttpd-mod-access
38 $(call Package
/lighttpd
/Default
)
40 TITLE
:=Access restrictions module
43 define Package
/lighttpd-mod-accesslog
44 $(call Package
/lighttpd
/Default
)
46 TITLE
:=Access logging module
49 define Package
/lighttpd-mod-alias
50 $(call Package
/lighttpd
/Default
)
52 TITLE
:=Directory alias module
55 define Package
/lighttpd-mod-auth
56 $(call Package
/lighttpd
/Default
)
58 TITLE
:=Authentication module
61 define Package
/lighttpd-mod-cgi
62 $(call Package
/lighttpd
/Default
)
67 define Package
/lighttpd-mod-cml
68 $(call Package
/lighttpd
/Default
)
70 TITLE
:=Cache Meta Language module
73 define Package
/lighttpd-mod-compress
74 $(call Package
/lighttpd
/Default
)
75 DEPENDS
:=lighttpd
+zlib
76 TITLE
:=Compress output module
79 define Package
/lighttpd-mod-evasive
80 $(call Package
/lighttpd
/Default
)
85 define Package
/lighttpd-mod-evhost
86 $(call Package
/lighttpd
/Default
)
88 TITLE
:=Exnhanced Virtual-Hosting module
91 define Package
/lighttpd-mod-expire
92 $(call Package
/lighttpd
/Default
)
97 define Package
/lighttpd-mod-extforward
98 $(call Package
/lighttpd
/Default
)
100 TITLE
:=Extract client IP module
103 define Package
/lighttpd-mod-fastcgi
104 $(call Package
/lighttpd
/Default
)
106 TITLE
:=FastCGI module
109 define Package
/lighttpd-mod-flv-streaming
110 $(call Package
/lighttpd
/Default
)
112 TITLE
:=flv streaming module
115 define Package
/lighttpd-mod-magnet
116 $(call Package
/lighttpd
/Default
)
121 define Package
/lighttpd-mod-mysql-vhost
122 $(call Package
/lighttpd
/Default
)
123 DEPENDS
:=lighttpd
+libmysqlclient
124 TITLE
:=Mysql virtual hosting module
127 define Package
/lighttpd-mod-proxy
128 $(call Package
/lighttpd
/Default
)
133 define Package
/lighttpd-mod-redirect
134 $(call Package
/lighttpd
/Default
)
135 DEPENDS
:=lighttpd
+libpcre
136 TITLE
:=URL redirection module
139 define Package
/lighttpd-mod-rewrite
140 $(call Package
/lighttpd
/Default
)
141 DEPENDS
:=lighttpd
+libpcre
142 TITLE
:=URL rewriting module
145 define Package
/lighttpd-mod-rrdtool
146 $(call Package
/lighttpd
/Default
)
148 TITLE
:=rrdtool module
151 define Package
/lighttpd-mod-scgi
152 $(call Package
/lighttpd
/Default
)
157 define Package
/lighttpd-mod-secdownload
158 $(call Package
/lighttpd
/Default
)
160 TITLE
:=Secure and fast download module
163 define Package
/lighttpd-mod-setenv
164 $(call Package
/lighttpd
/Default
)
166 TITLE
:=Environment variable setting module
169 define Package
/lighttpd-mod-simple-vhost
170 $(call Package
/lighttpd
/Default
)
172 TITLE
:=Simple virtual hosting module
175 define Package
/lighttpd-mod-ssi
176 $(call Package
/lighttpd
/Default
)
177 DEPENDS
:=lighttpd
+libpcre
181 define Package
/lighttpd-mod-status
182 $(call Package
/lighttpd
/Default
)
184 TITLE
:=Server status display module
187 define Package
/lighttpd-mod-trigger-b4-dl
188 $(call Package
/lighttpd
/Default
)
189 DEPENDS
:=lighttpd
+libpcre
190 TITLE
:=Trigger before download module
193 define Package
/lighttpd-mod-userdir
194 $(call Package
/lighttpd
/Default
)
196 TITLE
:=User directory module
199 define Package
/lighttpd-mod-usertrack
200 $(call Package
/lighttpd
/Default
)
202 TITLE
:=User tracking module
205 define Package
/lighttpd-mod-webdav
206 $(call Package
/lighttpd
/Default
)
207 DEPENDS
:=lighttpd
+libsqlite3
+libuuid
+libxml2
212 --libdir=/usr
/lib
/lighttpd \
213 --sysconfdir
=/etc
/lighttpd \
225 --with-openssl
="$(STAGING_DIR)/usr" \
232 ifeq ($(CONFIG_IPV6
),y
)
237 ifneq ($(SDK
)$(CONFIG_PACKAGE_lighttpd-mod-webdav
),)
239 --with-webdav-locks \
241 # XXX: needed by sqlite3 to prevent segfaults in mod_webdav.so
246 --without-webdav-locks \
247 --without-webdav-props
250 define Build
/Configure
251 $(call Build
/Configure
/Default
)
252 # XXX: override pcre (mis)detection by ./configure when cross-compiling
253 echo
"#define HAVE_LIBPCRE 1" >>$(PKG_BUILD_DIR
)/config.h
254 echo
"#define HAVE_PCRE_H 1" >>$(PKG_BUILD_DIR
)/config.h
257 define Package
/lighttpd
/conffiles
258 /etc
/lighttpd
/lighttpd.conf
259 /etc
/default
/lighttpd
262 define Package
/lighttpd
/install
263 $(INSTALL_DIR
) $(1)/etc
/lighttpd
264 $(INSTALL_DATA
) .
/files
/lighttpd.conf
$(1)/etc
/lighttpd
/
265 $(INSTALL_DIR
) $(1)/etc
/default
266 $(INSTALL_DATA
) .
/files
/lighttpd.default
$(1)/etc
/default
/lighttpd
267 $(INSTALL_DIR
) $(1)/etc
/init.d
268 $(INSTALL_BIN
) .
/files
/lighttpd.init
$(1)/etc
/init.d
/lighttpd
269 $(INSTALL_DIR
) $(1)/usr
/lib
/lighttpd
270 for m in dirlisting indexfile staticfile
; do \
271 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$$$${m}.so
$(1)/usr
/lib
/lighttpd
/ ; \
273 $(INSTALL_DIR
) $(1)/usr
/sbin
274 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/lighttpd
$(1)/usr
/sbin
/
278 define Package
/$(1)/install
279 [ -z
"$(2)" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/lighttpd
281 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$$$$$$$${m}.so
$$(1)/usr
/lib
/lighttpd
/ ; \
285 $$(eval
$$(call BuildPackage
,$(1)))
288 $(eval
$(call BuildPackage
,lighttpd
))
289 $(eval
$(call BuildPlugin
,lighttpd-mod-access
,access
))
290 $(eval
$(call BuildPlugin
,lighttpd-mod-accesslog
,accesslog
))
291 $(eval
$(call BuildPlugin
,lighttpd-mod-alias
,alias
))
292 $(eval
$(call BuildPlugin
,lighttpd-mod-auth
,auth
))
293 $(eval
$(call BuildPlugin
,lighttpd-mod-cgi
,cgi
))
294 $(eval
$(call BuildPlugin
,lighttpd-mod-cml
,cml
))
295 $(eval
$(call BuildPlugin
,lighttpd-mod-compress
,compress
))
296 $(eval
$(call BuildPlugin
,lighttpd-mod-evasive
,evasive
))
297 $(eval
$(call BuildPlugin
,lighttpd-mod-evhost
,evhost
))
298 $(eval
$(call BuildPlugin
,lighttpd-mod-expire
,expire
))
299 $(eval
$(call BuildPlugin
,lighttpd-mod-extforward
,extforward
))
300 $(eval
$(call BuildPlugin
,lighttpd-mod-fastcgi
,fastcgi
))
301 $(eval
$(call BuildPlugin
,lighttpd-mod-flv-streaming
,flv_streaming
))
302 $(eval
$(call BuildPlugin
,lighttpd-mod-magnet
,magnet
))
303 $(eval
$(call BuildPlugin
,lighttpd-mod-proxy
,proxy
))
304 $(eval
$(call BuildPlugin
,lighttpd-mod-redirect
,redirect
))
305 $(eval
$(call BuildPlugin
,lighttpd-mod-rewrite
,rewrite
))
306 $(eval
$(call BuildPlugin
,lighttpd-mod-rrdtool
,rrdtool
))
307 $(eval
$(call BuildPlugin
,lighttpd-mod-scgi
,scgi
))
308 $(eval
$(call BuildPlugin
,lighttpd-mod-secdownload
,secdownload
))
309 $(eval
$(call BuildPlugin
,lighttpd-mod-setenv
,setenv
))
310 $(eval
$(call BuildPlugin
,lighttpd-mod-simple-vhost
,simple_vhost
))
311 $(eval
$(call BuildPlugin
,lighttpd-mod-ssi
,ssi
))
312 $(eval
$(call BuildPlugin
,lighttpd-mod-status
,status
))
313 $(eval
$(call BuildPlugin
,lighttpd-mod-trigger-b4-dl
,trigger_b4_dl
))
314 $(eval
$(call BuildPlugin
,lighttpd-mod-userdir
,userdir
))
315 $(eval
$(call BuildPlugin
,lighttpd-mod-usertrack
,usertrack
))
316 $(eval
$(call BuildPlugin
,lighttpd-mod-webdav
,webdav
))