2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://www.lighttpd.net
/download
/
17 PKG_MD5SUM
:=26f98dddf9d8c0775221b800986003ee
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/lighttpd
/Default
24 URL
:=http
://www.lighttpd.net
/
27 define Package
/lighttpd
28 $(call Package
/lighttpd
/Default
)
30 DEPENDS
:=+libopenssl
+libpcre
+libpthread
+libsqlite3
+libxml2
31 TITLE
:=A flexible and lightweight web server
34 define Package
/lighttpd-mod-accesslog
35 $(call Package
/lighttpd
/Default
)
37 TITLE
:=Access logging module
40 define Package
/lighttpd-mod-alias
41 $(call Package
/lighttpd
/Default
)
43 TITLE
:=Directory alias module
46 define Package
/lighttpd-mod-auth
47 $(call Package
/lighttpd
/Default
)
49 TITLE
:=Authentication module
52 define Package
/lighttpd-mod-cgi
53 $(call Package
/lighttpd
/Default
)
58 define Package
/lighttpd-mod-evasive
59 $(call Package
/lighttpd
/Default
)
64 define Package
/lighttpd-mod-expire
65 $(call Package
/lighttpd
/Default
)
70 define Package
/lighttpd-mod-fastcgi
71 $(call Package
/lighttpd
/Default
)
76 define Package
/lighttpd-mod-proxy
77 $(call Package
/lighttpd
/Default
)
82 define Package
/lighttpd-mod-redirect
83 $(call Package
/lighttpd
/Default
)
85 TITLE
:=URL redirection module
88 define Package
/lighttpd-mod-rewrite
89 $(call Package
/lighttpd
/Default
)
91 TITLE
:=URL rewriting module
94 define Package
/lighttpd-mod-setenv
95 $(call Package
/lighttpd
/Default
)
97 TITLE
:=Environment variable setting module
100 define Package
/lighttpd-mod-simple-vhost
101 $(call Package
/lighttpd
/Default
)
103 TITLE
:=Simple virtual hosting module
106 define Package
/lighttpd-mod-ssi
107 $(call Package
/lighttpd
/Default
)
112 define Package
/lighttpd-mod-status
113 $(call Package
/lighttpd
/Default
)
115 TITLE
:=Server status display module
118 define Package
/lighttpd-mod-usertrack
119 $(call Package
/lighttpd
/Default
)
121 TITLE
:=User tracking module
124 define Package
/lighttpd-mod-webdav
125 $(call Package
/lighttpd
/Default
)
132 --libdir=/usr
/lib
/lighttpd \
133 --sysconfdir
=/etc
/lighttpd \
145 --with-openssl
="$(STAGING_DIR)/usr" \
148 --with-webdav-props \
151 CPPFLAGS
="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS" \
154 define Build
/Configure
155 $(call Build
/Configure
/Default
,)
156 $(call libtool_disable_rpath
)
160 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
161 $(call libtool_fixup_libdir
,$(PKG_INSTALL_DIR
))
162 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" install
165 define Package
/lighttpd
/conffiles
167 /etc
/default
/lighttpd
170 define Package
/lighttpd
/install
171 $(INSTALL_DIR
) $(1)/etc
172 $(INSTALL_DATA
) .
/files
/lighttpd.conf
$(1)/etc
/
173 $(INSTALL_DIR
) $(1)/etc
/default
174 $(INSTALL_DATA
) .
/files
/lighttpd.default
$(1)/etc
/default
/lighttpd
175 $(INSTALL_DIR
) $(1)/etc
/init.d
176 $(INSTALL_BIN
) .
/files
/lighttpd.init
$(1)/etc
/init.d
/lighttpd
177 $(INSTALL_DIR
) $(1)/usr
/lib
/lighttpd
178 for m in dirlisting indexfile staticfile
; do \
179 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$$$${m}.so
$(1)/usr
/lib
/lighttpd
/ ; \
181 $(INSTALL_DIR
) $(1)/usr
/sbin
182 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/lighttpd
$(1)/usr
/sbin
/
186 define Package
/$(1)/install
187 [ -z
"$(2)" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/lighttpd
189 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$$$$$$$${m}.so
$$(1)/usr
/lib
/lighttpd
/ ; \
193 $$(eval
$$(call BuildPackage
,$(1)))
196 $(eval
$(call BuildPackage
,lighttpd
))
197 $(eval
$(call BuildPlugin
,lighttpd-mod-accesslog
,accesslog
))
198 $(eval
$(call BuildPlugin
,lighttpd-mod-alias
,alias
))
199 $(eval
$(call BuildPlugin
,lighttpd-mod-auth
,auth
))
200 $(eval
$(call BuildPlugin
,lighttpd-mod-cgi
,cgi
))
201 $(eval
$(call BuildPlugin
,lighttpd-mod-evasive
,evasive
))
202 $(eval
$(call BuildPlugin
,lighttpd-mod-expire
, expire
))
203 $(eval
$(call BuildPlugin
,lighttpd-mod-fastcgi
,fastcgi
))
204 $(eval
$(call BuildPlugin
,lighttpd-mod-proxy
,proxy
))
205 $(eval
$(call BuildPlugin
,lighttpd-mod-redirect
,redirect
))
206 $(eval
$(call BuildPlugin
,lighttpd-mod-rewrite
,rewrite
))
207 $(eval
$(call BuildPlugin
,lighttpd-mod-setenv
,setenv
))
208 $(eval
$(call BuildPlugin
,lighttpd-mod-simple-vhost
,simple_vhost
))
209 $(eval
$(call BuildPlugin
,lighttpd-mod-ssi
,ssi
))
210 $(eval
$(call BuildPlugin
,lighttpd-mod-status
,status
))
211 $(eval
$(call BuildPlugin
,lighttpd-mod-usertrack
,usertrack
))
212 $(eval
$(call BuildPlugin
,lighttpd-mod-webdav
,webdav
))