(1) Download a fresh tarball from office web site , I use the version 1.4.22
(2) remove any Makefile from the folder
(3) copy the source folder to android_sdk_/external/lighttpd(for example)
(4)add the Android.mk to boa folder:
You can comment LOCAL_PRELINK_MODULE := false at the below code, and add the mod lib to android prelink map so that it will be prelinked(better performace? I don't know)
#
#judekid@gmail.com
#
# Eric Chan 2009.07.29
#
am__liblightcomp_la_SOURCES_DIST = src/buffer.c src/log.c src/keyvalue.c src/chunk.c \
src/http_chunk.c src/stream.c src/fdevent.c src/stat_cache.c \
src/joblist.c src/etag.c src/array.c src/data_string.c src/data_count.c \
src/data_array.c src/data_integer.c src/md5.c src/data_fastcgi.c \
src/fdevent_select.c src/fdevent_linux_rtsig.c src/fdevent_poll.c \
src/fdevent_linux_sysepoll.c src/fdevent_solaris_devpoll.c \
src/fdevent_freebsd_kqueue.c src/data_config.c src/bitset.c \
src/inet_ntop_cache.c src/crc32.c src/connections-glue.c src/configfile-glue.c \
src/http-header-glue.c src/network_write.c src/network_linux_sendfile.c \
src/network_freebsd_sendfile.c src/network_writev.c \
src/network_solaris_sendfilev.c src/network_openssl.c src/splaytree.c \
src/status_counter.c
src = src/server.c src/response.c src/connections.c src/network.c \
src/configfile.c src/configparser.c src/request.c src/proc_open.c
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
####################################################################################
##mod_flv_streaming
#LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_flv_streaming.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_flv_streaming
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_evasive
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_evasive.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_evasive
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_webdav
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_webdav.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_webdav
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_magnet
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_magnet.c \
src/mod_magnet_cache.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_magnet
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_cml
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall
-W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_cml.c \
src/mod_cml_lua.c \
src/mod_cml_funcs.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_cml
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_trigger_b4_dl
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_trigger_b4_dl.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_trigger_b4_dl
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_mysql_vhost
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_mysql_vhost.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_mysql_vhost
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_cgi
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_cgi.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_cgi
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_staticfile
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_staticfile.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_staticfile
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_dirlisting
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_dirlisting.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_dirlisting
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_indexfile
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_indexfile.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_indexfile
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_setenv
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_setenv.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_setenv
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_alias
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_alias.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_alias
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_userdir
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_userdir.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_userdir
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_rrdtool
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_rrdtool.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_rrdtool
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_usertrack
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_usertrack.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_usertrack
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_proxy
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_proxy.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_proxy
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_ssi
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_ssi_exprparser.c \
src/mod_ssi_expr.c \
src/mod_ssi.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_ssi
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_secdownload
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_secure_download.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_secdownload
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_expire
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_expire.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_expire
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_evhost
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_evhost.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_evhost
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_simple_vhost
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_simple_vhost.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_simple_vhost
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_fastcgi
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_fastcgi.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_fastcgi
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_extforward
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_extforward.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_extforward
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_access
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_access.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_access
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_compress
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_compress.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_compress
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##modlighttpd_auth
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_auth.c \
src/http_auth_digest.c \
src/http_auth.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_auth
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_rewrite
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_rewrite.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_rewrite
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_redirect
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_redirect.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_redirect
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_status
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_status.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_status
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_accesslog
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_accesslog.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_accesslog
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##lighttpd
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -export-dynamic -DLIBRARY_DIR="\"/system/lib\""
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
$(src) \
src/plugin.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_MODULE := lighttpd
LOCAL_MODULE_CLASS := EXECUTABLES
include $(BUILD_EXECUTABLE)
#####################################################################################
##lighttpd-angel
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -export-dynamic -DLIBRARY_DIR="\"/system/lib\"" -DSBIN_DIR="\"/system/sbin\""
LOCAL_SRC_FILES := \
src/lighttpd-angel.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_MODULE := lighttpd-angel
LOCAL_MODULE_CLASS := EXECUTABLES
include $(BUILD_EXECUTABLE)
###########################################################################################################################################################
#judekid@gmail.com
#
# Eric Chan 2009.07.29
#
am__liblightcomp_la_SOURCES_DIST = src/buffer.c src/log.c src/keyvalue.c src/chunk.c \
src/http_chunk.c src/stream.c src/fdevent.c src/stat_cache.c \
src/joblist.c src/etag.c src/array.c src/data_string.c src/data_count.c \
src/data_array.c src/data_integer.c src/md5.c src/data_fastcgi.c \
src/fdevent_select.c src/fdevent_linux_rtsig.c src/fdevent_poll.c \
src/fdevent_linux_sysepoll.c src/fdevent_solaris_devpoll.c \
src/fdevent_freebsd_kqueue.c src/data_config.c src/bitset.c \
src/inet_ntop_cache.c src/crc32.c src/connections-glue.c src/configfile-glue.c \
src/http-header-glue.c src/network_write.c src/network_linux_sendfile.c \
src/network_freebsd_sendfile.c src/network_writev.c \
src/network_solaris_sendfilev.c src/network_openssl.c src/splaytree.c \
src/status_counter.c
src = src/server.c src/response.c src/connections.c src/network.c \
src/configfile.c src/configparser.c src/request.c src/proc_open.c
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
####################################################################################
##mod_flv_streaming
#LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_flv_streaming.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_flv_streaming
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_evasive
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_evasive.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_evasive
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_webdav
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_webdav.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_webdav
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_magnet
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_magnet.c \
src/mod_magnet_cache.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_magnet
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_cml
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall
-W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_cml.c \
src/mod_cml_lua.c \
src/mod_cml_funcs.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_cml
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_trigger_b4_dl
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_trigger_b4_dl.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_trigger_b4_dl
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_mysql_vhost
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_mysql_vhost.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_mysql_vhost
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_cgi
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_cgi.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_cgi
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_staticfile
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_staticfile.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_staticfile
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_dirlisting
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_dirlisting.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_dirlisting
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_indexfile
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_indexfile.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_indexfile
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_setenv
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_setenv.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_setenv
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_alias
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_alias.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_alias
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_userdir
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_userdir.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_userdir
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_rrdtool
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_rrdtool.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_rrdtool
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_usertrack
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_usertrack.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_usertrack
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_proxy
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_proxy.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_proxy
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_ssi
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_ssi_exprparser.c \
src/mod_ssi_expr.c \
src/mod_ssi.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_ssi
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_secdownload
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_secure_download.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_secdownload
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_expire
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_expire.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_expire
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_evhost
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_evhost.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_evhost
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_simple_vhost
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_simple_vhost.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_simple_vhost
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_fastcgi
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_fastcgi.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_fastcgi
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_extforward
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_extforward.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_extforward
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_access
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_access.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_access
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_compress
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_compress.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_compress
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##modlighttpd_auth
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_auth.c \
src/http_auth_digest.c \
src/http_auth.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_auth
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_rewrite
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_rewrite.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_rewrite
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_redirect
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_redirect.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_redirect
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_status
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_status.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_status
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##mod_accesslog
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -I. -I..-D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
src/mod_accesslog.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := mod_accesslog
include $(BUILD_SHARED_LIBRARY)
#####################################################################################
##lighttpd
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -export-dynamic -DLIBRARY_DIR="\"/system/lib\""
LOCAL_SRC_FILES := \
$(am__liblightcomp_la_SOURCES_DIST) \
$(src) \
src/plugin.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_MODULE := lighttpd
LOCAL_MODULE_CLASS := EXECUTABLES
include $(BUILD_EXECUTABLE)
#####################################################################################
##lighttpd-angel
include $(CLEAR_VARS)
LOCAL_LDLIBS += -ldl
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DHAVE_VERSION_H -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -export-dynamic -DLIBRARY_DIR="\"/system/lib\"" -DSBIN_DIR="\"/system/sbin\""
LOCAL_SRC_FILES := \
src/lighttpd-angel.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_MODULE := lighttpd-angel
LOCAL_MODULE_CLASS := EXECUTABLES
include $(BUILD_EXECUTABLE)
###########################################################################################################################################################
(3)Without the .configure step, so we have to add the config.h manually.
#
#judekid@gmail.com
#
# Eric Chan 2009.07.29
#
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the header file. */
#define HAVE_ARPA_INET_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_ATTR_ATTRIBUTES_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_BZLIB_H */
/* Define to 1 if you have the `chroot' function. */
#define HAVE_CHROOT 1
/* Define to 1 if you have the header file. */
//#define HAVE_CRYPT_H 1 //eric modified
#undef HAVE_CRYPT_H
/* Define to 1 if you have the header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the `dup2' function. */
#define HAVE_DUP2 1
/* Define to 1 if you have the `epoll_ctl' function. */
#define HAVE_EPOLL_CTL 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_ERRMSG_H */
/* Define to 1 if you have the `FAMNoExists' function. */
/* #undef HAVE_FAMNOEXISTS */
/* fam.h */
/* #undef HAVE_FAM_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_FASTCGI_FASTCGI_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_FASTCGI_H */
/* Define to 1 if you have the header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `fork' function. */
#define HAVE_FORK 1
/* libgdbm */
/* #undef HAVE_GDBM */
/* Define to 1 if you have the header file. */
/* #undef HAVE_GDBM_H */
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define to 1 if you have the `gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1
/* Define to 1 if you have the `getopt' function. */
#define HAVE_GETOPT 1
/* Define to 1 if you have the header file. */
#define HAVE_GETOPT_H 1
/* Define to 1 if you have the `getrlimit' function. */
#define HAVE_GETRLIMIT 1
/* Define to 1 if you have the `getuid' function. */
#define HAVE_GETUID 1
/* Define to 1 if you have the `gmtime_r' function. */
#define HAVE_GMTIME_R 1
/* Define to 1 if you have the `inet_ntoa' function. */
#define HAVE_INET_NTOA 1
/* Define to 1 if you have the `inet_ntop' function. */
#define HAVE_INET_NTOP 1
/* Define to 1 if you have the `inet_pton' function. */
#define HAVE_INET_PTON 1
/* Define to 1 if you have the header file. */
#define HAVE_INTTYPES_H 1
/* Whether to enable IPv6 support */
/* #undef HAVE_IPV6 */
/* Define to 1 if you have the `issetugid' function. */
/* #undef HAVE_ISSETUGID */
/* Define to 1 if you have the `kqueue' function. */
/* #undef HAVE_KQUEUE */
/* Define to 1 if you have the header file. */
/* #undef HAVE_LBER_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_LDAP_H */
/* libbz2 */
/* #undef HAVE_LIBBZ2 */
/* libcrypt */
//#define HAVE_LIBCRYPT 1//eric modified
#undef HAVE_LIBCRYPT
/* libdl */
#define HAVE_LIBDL 1
/* libfam */
/* #undef HAVE_LIBFAM */
/* liblber */
/* #undef HAVE_LIBLBER */
/* libldap */
/* #undef HAVE_LIBLDAP */
/* libpcre */
/* #undef HAVE_LIBPCRE */
/* Have libssl */
/* #undef HAVE_LIBSSL */
/* libxml2 */
/* #undef HAVE_LIBXML2 */
/* libxml.h */
/* #undef HAVE_LIBXML_H */
/* libz */
/* #undef HAVE_LIBZ */
/* Define to 1 if you have the `localtime_r' function. */
#define HAVE_LOCALTIME_R 1
/* Define to 1 if you have the `lstat' function. */
#define HAVE_LSTAT 1
/* liblua */
/* #undef HAVE_LUA */
/* lua.h */
/* #undef HAVE_LUA_H */
/* Define to 1 if you have the `madvise' function. */
#define HAVE_MADVISE 1
/* libmemcache */
/* #undef HAVE_MEMCACHE */
/* memcache.h */
/* #undef HAVE_MEMCACHE_H */
/* Define to 1 if you have the header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
/* Define to 1 if you have the `mmap' function. */
#define HAVE_MMAP 1
/* Define to 1 if you have the `munmap' function. */
#define HAVE_MUNMAP 1
/* mysql support */
/* #undef HAVE_MYSQL */
/* Define to 1 if you have the header file. */
/* #undef HAVE_MYSQL_H */
/* Define to 1 if you have the header file. */
#define HAVE_NETINET_IN_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_OPENSSL_SSL_H */
/* Define to 1 if you have the `pathconf' function. */
#define HAVE_PATHCONF 1
/* pcre.h */
/* #undef HAVE_PCRE_H */
/* Define to 1 if you have the `poll' function. */
#define HAVE_POLL 1
/* Define to 1 if you have the header file. */
#define HAVE_POLL_H 1
/* Define to 1 if you have the `port_create' function. */
/* #undef HAVE_PORT_CREATE */
/* Define to 1 if you have the `posix_fadvise' function. */
#define HAVE_POSIX_FADVISE 1
/* Define to 1 if you have the `posix_madvise' function. */
#define HAVE_POSIX_MADVISE 1
/* Define to 1 if you have the header file. */
#define HAVE_PWD_H 1
/* Define to 1 if you have the `select' function. */
#define HAVE_SELECT 1
/* Define to 1 if you have the `sendfile' function. */
#define HAVE_SENDFILE 1
/* Define to 1 if you have the `sendfile64' function. */
#define HAVE_SENDFILE64 1
/* solaris sendfilev */
/* #undef HAVE_SENDFILEV */
/* broken sendfile */
#define HAVE_SENDFILE_BROKEN 1
/* Define to 1 if you have the `send_file' function. */
/* #undef HAVE_SEND_FILE */
/* Define to 1 if you have the `sigaction' function. */
#define HAVE_SIGACTION 1
/* Define to 1 if you have the `signal' function. */
#define HAVE_SIGNAL 1
/* Define to 1 if you have the `sigtimedwait' function. */
//#define HAVE_SIGTIMEDWAIT 1 //eric modified
#undef HAVE_SIGTIMEDWAIT
/* Define to 1 if you have the `socket' function. */
#define HAVE_SOCKET 1
/* Define to 1 if the system has the type `socklen_t'. */
#define HAVE_SOCKLEN_T 1
/* libsqlite3 */
/* #undef HAVE_SQLITE3 */
/* sqlite3.h */
/* #undef HAVE_SQLITE3_H */
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
#define HAVE_STAT_EMPTY_STRING_BUG 1
/* Define to 1 if you have the header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the `strftime' function. */
#define HAVE_STRFTIME 1
/* Define to 1 if you have the header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1
/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1
/* Define to 1 if the system has the type `struct sockaddr_storage'. */
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
/* gmtoff in struct tm */
#define HAVE_STRUCT_TM_GMTOFF 1
/* Define to 1 if you have the header file. */
#define HAVE_SYSLOG_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_DEVPOLL_H */
/* Define to 1 if you have the header file. */
#define HAVE_SYS_EPOLL_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_EVENT_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_FILIO_H */
/* Define to 1 if you have the header file. */
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_POLL_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_PORT_H */
/* Define to 1 if you have the header file. */
#define HAVE_SYS_PRCTL_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_SELECT_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_SENDFILE_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_SOCKET_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_SYSLIMITS_H */
/* Define to 1 if you have the header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_UIO_H 1
/* Define to 1 if you have the header file. */
//#define HAVE_SYS_UN_H 1//eric modified
#undef HAVE_SYS_UN_H
/* Define to 1 if you have that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define to 1 if you have the header file. */
#define HAVE_UNISTD_H 1
/* libuuid */
/* #undef HAVE_UUID */
/* uuid/uuid.h is available */
/* #undef HAVE_UUID_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_UUID_UUID_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_VALGRIND_VALGRIND_H */
/* Define to 1 if you have the `vfork' function. */
#define HAVE_VFORK 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_VFORK_H */
/* Define to 1 if `fork' works. */
#define HAVE_WORKING_FORK 1
/* Define to 1 if `vfork' works. */
#define HAVE_WORKING_VFORK 1
/* Define to 1 if you have the `writev' function. */
#define HAVE_WRITEV 1
/* libattr */
/* #undef HAVE_XATTR */
/* Define to 1 if you have the header file. */
/* #undef HAVE_ZLIB_H */
/* Using deprecated ldap api */
/* #undef LDAP_DEPRECATED */
/* lighttpd-version-id */
#define LIGHTTPD_VERSION_ID (1 << 16 | 4 << 8 | 23)
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
slash. */
/* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */
/* Name of package */
#define PACKAGE "lighttpd"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "contact@lighttpd.net"
/* Define to the full name of this package. */
#define PACKAGE_NAME "lighttpd"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "lighttpd 1.4.23"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "lighttpd"
/* Define to the version of this package. */
#define PACKAGE_VERSION "1.4.23"
/* Define to 1 if the C compiler supports function prototypes. */
#define PROTOTYPES 1
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
/* The size of `long', as computed by sizeof. */
#define SIZEOF_LONG 4
/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 4
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# define _ALL_SOURCE 1
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# define _TANDEM_SOURCE 1
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
/* Version number of package */
#define VERSION "1.4.23"
/* Define to 1 if on MINIX. */
/* #undef _MINIX */
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
/* #undef _POSIX_1_SOURCE */
/* Define to 1 if you need to in order for `stat' and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define to 1 if type `char' is unsigned and you are not using gcc. */
#ifndef __CHAR_UNSIGNED__
/* # undef __CHAR_UNSIGNED__ */
#endif
/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `long int' if does not define. */
/* #undef off_t */
/* Define to `int' if does not define. */
/* #undef pid_t */
/* Define to `unsigned int' if does not define. */
/* #undef size_t */
/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */
#judekid@gmail.com
#
# Eric Chan 2009.07.29
#
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the
#define HAVE_ARPA_INET_H 1
/* Define to 1 if you have the
/* #undef HAVE_ATTR_ATTRIBUTES_H */
/* Define to 1 if you have the
/* #undef HAVE_BZLIB_H */
/* Define to 1 if you have the `chroot' function. */
#define HAVE_CHROOT 1
/* Define to 1 if you have the
//#define HAVE_CRYPT_H 1 //eric modified
#undef HAVE_CRYPT_H
/* Define to 1 if you have the
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the `dup2' function. */
#define HAVE_DUP2 1
/* Define to 1 if you have the `epoll_ctl' function. */
#define HAVE_EPOLL_CTL 1
/* Define to 1 if you have the
/* #undef HAVE_ERRMSG_H */
/* Define to 1 if you have the `FAMNoExists' function. */
/* #undef HAVE_FAMNOEXISTS */
/* fam.h */
/* #undef HAVE_FAM_H */
/* Define to 1 if you have the
/* #undef HAVE_FASTCGI_FASTCGI_H */
/* Define to 1 if you have the
/* #undef HAVE_FASTCGI_H */
/* Define to 1 if you have the
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `fork' function. */
#define HAVE_FORK 1
/* libgdbm */
/* #undef HAVE_GDBM */
/* Define to 1 if you have the
/* #undef HAVE_GDBM_H */
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define to 1 if you have the `gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1
/* Define to 1 if you have the `getopt' function. */
#define HAVE_GETOPT 1
/* Define to 1 if you have the
#define HAVE_GETOPT_H 1
/* Define to 1 if you have the `getrlimit' function. */
#define HAVE_GETRLIMIT 1
/* Define to 1 if you have the `getuid' function. */
#define HAVE_GETUID 1
/* Define to 1 if you have the `gmtime_r' function. */
#define HAVE_GMTIME_R 1
/* Define to 1 if you have the `inet_ntoa' function. */
#define HAVE_INET_NTOA 1
/* Define to 1 if you have the `inet_ntop' function. */
#define HAVE_INET_NTOP 1
/* Define to 1 if you have the `inet_pton' function. */
#define HAVE_INET_PTON 1
/* Define to 1 if you have the
#define HAVE_INTTYPES_H 1
/* Whether to enable IPv6 support */
/* #undef HAVE_IPV6 */
/* Define to 1 if you have the `issetugid' function. */
/* #undef HAVE_ISSETUGID */
/* Define to 1 if you have the `kqueue' function. */
/* #undef HAVE_KQUEUE */
/* Define to 1 if you have the
/* #undef HAVE_LBER_H */
/* Define to 1 if you have the
/* #undef HAVE_LDAP_H */
/* libbz2 */
/* #undef HAVE_LIBBZ2 */
/* libcrypt */
//#define HAVE_LIBCRYPT 1//eric modified
#undef HAVE_LIBCRYPT
/* libdl */
#define HAVE_LIBDL 1
/* libfam */
/* #undef HAVE_LIBFAM */
/* liblber */
/* #undef HAVE_LIBLBER */
/* libldap */
/* #undef HAVE_LIBLDAP */
/* libpcre */
/* #undef HAVE_LIBPCRE */
/* Have libssl */
/* #undef HAVE_LIBSSL */
/* libxml2 */
/* #undef HAVE_LIBXML2 */
/* libxml.h */
/* #undef HAVE_LIBXML_H */
/* libz */
/* #undef HAVE_LIBZ */
/* Define to 1 if you have the `localtime_r' function. */
#define HAVE_LOCALTIME_R 1
/* Define to 1 if you have the `lstat' function. */
#define HAVE_LSTAT 1
/* liblua */
/* #undef HAVE_LUA */
/* lua.h */
/* #undef HAVE_LUA_H */
/* Define to 1 if you have the `madvise' function. */
#define HAVE_MADVISE 1
/* libmemcache */
/* #undef HAVE_MEMCACHE */
/* memcache.h */
/* #undef HAVE_MEMCACHE_H */
/* Define to 1 if you have the
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
/* Define to 1 if you have the `mmap' function. */
#define HAVE_MMAP 1
/* Define to 1 if you have the `munmap' function. */
#define HAVE_MUNMAP 1
/* mysql support */
/* #undef HAVE_MYSQL */
/* Define to 1 if you have the
/* #undef HAVE_MYSQL_H */
/* Define to 1 if you have the
#define HAVE_NETINET_IN_H 1
/* Define to 1 if you have the
/* #undef HAVE_OPENSSL_SSL_H */
/* Define to 1 if you have the `pathconf' function. */
#define HAVE_PATHCONF 1
/* pcre.h */
/* #undef HAVE_PCRE_H */
/* Define to 1 if you have the `poll' function. */
#define HAVE_POLL 1
/* Define to 1 if you have the
#define HAVE_POLL_H 1
/* Define to 1 if you have the `port_create' function. */
/* #undef HAVE_PORT_CREATE */
/* Define to 1 if you have the `posix_fadvise' function. */
#define HAVE_POSIX_FADVISE 1
/* Define to 1 if you have the `posix_madvise' function. */
#define HAVE_POSIX_MADVISE 1
/* Define to 1 if you have the
#define HAVE_PWD_H 1
/* Define to 1 if you have the `select' function. */
#define HAVE_SELECT 1
/* Define to 1 if you have the `sendfile' function. */
#define HAVE_SENDFILE 1
/* Define to 1 if you have the `sendfile64' function. */
#define HAVE_SENDFILE64 1
/* solaris sendfilev */
/* #undef HAVE_SENDFILEV */
/* broken sendfile */
#define HAVE_SENDFILE_BROKEN 1
/* Define to 1 if you have the `send_file' function. */
/* #undef HAVE_SEND_FILE */
/* Define to 1 if you have the `sigaction' function. */
#define HAVE_SIGACTION 1
/* Define to 1 if you have the `signal' function. */
#define HAVE_SIGNAL 1
/* Define to 1 if you have the `sigtimedwait' function. */
//#define HAVE_SIGTIMEDWAIT 1 //eric modified
#undef HAVE_SIGTIMEDWAIT
/* Define to 1 if you have the `socket' function. */
#define HAVE_SOCKET 1
/* Define to 1 if the system has the type `socklen_t'. */
#define HAVE_SOCKLEN_T 1
/* libsqlite3 */
/* #undef HAVE_SQLITE3 */
/* sqlite3.h */
/* #undef HAVE_SQLITE3_H */
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
#define HAVE_STAT_EMPTY_STRING_BUG 1
/* Define to 1 if you have the
#define HAVE_STDINT_H 1
/* Define to 1 if you have the
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the `strftime' function. */
#define HAVE_STRFTIME 1
/* Define to 1 if you have the
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1
/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1
/* Define to 1 if the system has the type `struct sockaddr_storage'. */
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
/* gmtoff in struct tm */
#define HAVE_STRUCT_TM_GMTOFF 1
/* Define to 1 if you have the
#define HAVE_SYSLOG_H 1
/* Define to 1 if you have the
/* #undef HAVE_SYS_DEVPOLL_H */
/* Define to 1 if you have the
#define HAVE_SYS_EPOLL_H 1
/* Define to 1 if you have the
/* #undef HAVE_SYS_EVENT_H */
/* Define to 1 if you have the
/* #undef HAVE_SYS_FILIO_H */
/* Define to 1 if you have the
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the
#define HAVE_SYS_POLL_H 1
/* Define to 1 if you have the
/* #undef HAVE_SYS_PORT_H */
/* Define to 1 if you have the
#define HAVE_SYS_PRCTL_H 1
/* Define to 1 if you have the
#define HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the
#define HAVE_SYS_SELECT_H 1
/* Define to 1 if you have the
#define HAVE_SYS_SENDFILE_H 1
/* Define to 1 if you have the
#define HAVE_SYS_SOCKET_H 1
/* Define to 1 if you have the
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the
/* #undef HAVE_SYS_SYSLIMITS_H */
/* Define to 1 if you have the
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the
#define HAVE_SYS_UIO_H 1
/* Define to 1 if you have the
//#define HAVE_SYS_UN_H 1//eric modified
#undef HAVE_SYS_UN_H
/* Define to 1 if you have
#define HAVE_SYS_WAIT_H 1
/* Define to 1 if you have the
#define HAVE_UNISTD_H 1
/* libuuid */
/* #undef HAVE_UUID */
/* uuid/uuid.h is available */
/* #undef HAVE_UUID_H */
/* Define to 1 if you have the
/* #undef HAVE_UUID_UUID_H */
/* Define to 1 if you have the
/* #undef HAVE_VALGRIND_VALGRIND_H */
/* Define to 1 if you have the `vfork' function. */
#define HAVE_VFORK 1
/* Define to 1 if you have the
/* #undef HAVE_VFORK_H */
/* Define to 1 if `fork' works. */
#define HAVE_WORKING_FORK 1
/* Define to 1 if `vfork' works. */
#define HAVE_WORKING_VFORK 1
/* Define to 1 if you have the `writev' function. */
#define HAVE_WRITEV 1
/* libattr */
/* #undef HAVE_XATTR */
/* Define to 1 if you have the
/* #undef HAVE_ZLIB_H */
/* Using deprecated ldap api */
/* #undef LDAP_DEPRECATED */
/* lighttpd-version-id */
#define LIGHTTPD_VERSION_ID (1 << 16 | 4 << 8 | 23)
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
slash. */
/* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */
/* Name of package */
#define PACKAGE "lighttpd"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "contact@lighttpd.net"
/* Define to the full name of this package. */
#define PACKAGE_NAME "lighttpd"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "lighttpd 1.4.23"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "lighttpd"
/* Define to the version of this package. */
#define PACKAGE_VERSION "1.4.23"
/* Define to 1 if the C compiler supports function prototypes. */
#define PROTOTYPES 1
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
/* The size of `long', as computed by sizeof. */
#define SIZEOF_LONG 4
/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 4
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# define _ALL_SOURCE 1
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# define _TANDEM_SOURCE 1
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
/* Version number of package */
#define VERSION "1.4.23"
/* Define to 1 if on MINIX. */
/* #undef _MINIX */
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
/* #undef _POSIX_1_SOURCE */
/* Define to 1 if you need to in order for `stat' and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define to 1 if type `char' is unsigned and you are not using gcc. */
#ifndef __CHAR_UNSIGNED__
/* # undef __CHAR_UNSIGNED__ */
#endif
/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `long int' if
/* #undef off_t */
/* Define to `int' if
/* #undef pid_t */
/* Define to `unsigned int' if
/* #undef size_t */
/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */
(4) in some way header, you maybe change to "fdevent.h" make it work
(5) add configfile.h at the src folder
#
#Eric Chan
#
#judekid@gmail.com
#
#ifndef _CONFIG_PARSER_H_
#define _CONFIG_PARSER_H_
#include "array.h"
#include "buffer.h"
#include "server.h"
typedef struct {
server *srv;
int ok;
array *all_configs;
array *configs_stack; /* to parse nested block */
data_config *current; /* current started with { */
buffer *basedir;
} config_t;
void *configparserAlloc(void *(*mallocProc)(size_t));
void configparserFree(void *p, void (*freeProc)(void*));
void configparser(void *yyp, int yymajor, buffer *yyminor, config_t *ctx);
int config_parse_file(server *srv, config_t *context, const char *fn);
int config_parse_cmd(server *srv, config_t *context, const char *cmd);
data_unset *configparser_merge_data(data_unset *op1, const data_unset *op2);
void config_cond_cache_reset(server *srv, connection *con);
void config_cond_cache_reset_item(server *srv, connection *con, comp_key_t item);
#define config_cond_cache_reset_all_items(srv, con) \
config_cond_cache_reset_item(srv, con, COMP_LAST_ELEMENT);
#endif
#define _CONFIG_PARSER_H_
#include "array.h"
#include "buffer.h"
#include "server.h"
typedef struct {
server *srv;
int ok;
array *all_configs;
array *configs_stack; /* to parse nested block */
data_config *current; /* current started with { */
buffer *basedir;
} config_t;
void *configparserAlloc(void *(*mallocProc)(size_t));
void configparserFree(void *p, void (*freeProc)(void*));
void configparser(void *yyp, int yymajor, buffer *yyminor, config_t *ctx);
int config_parse_file(server *srv, config_t *context, const char *fn);
int config_parse_cmd(server *srv, config_t *context, const char *cmd);
data_unset *configparser_merge_data(data_unset *op1, const data_unset *op2);
void config_cond_cache_reset(server *srv, connection *con);
void config_cond_cache_reset_item(server *srv, connection *con, comp_key_t item);
#define config_cond_cache_reset_all_items(srv, con) \
config_cond_cache_reset_item(srv, con, COMP_LAST_ELEMENT);
#endif
(6) add /etc/lighttpd folder, add /data/log and /data/www folders (at the build script or out folder or...there are a lot of ways)
(7) add a new lighttpd.conf I set the /data/www as webroot, you can modified this files according to web service
# lighttpd configuration file
#
# use it as a base for lighttpd 1.0.0 and above
#
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
#
#
# use it as a base for lighttpd 1.0.0 and above
#
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
#
# Eric Chan
#
#judekid@gmail.com
############ Options you really have to take care of ####################
## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
# "mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
## A static document-root. For virtual hosting take a look at the
## mod_simple_vhost module.
server.document-root = "/data/www/"
## where to send error-messages to
server.errorlog = "/data/log/lighttpd/error.log"
# files to check for if .../ is requested
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
## set the event-handler (read the performance section in the manual)
# server.event-handler = "freebsd-kqueue" # needed on OS X
# mimetype mapping
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
# default mime type
"" => "application/octet-stream",
)
# Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetype.use-xattr = "enable"
## send a different Server: header
## be nice and keep it at lighttpd
# server.tag = "lighttpd"
#### accesslog module
accesslog.filename = "/data/log/lighttpd/access.log"
## deny access the file-extensions
#
# ~ is for backupfiles from vi, emacs, joe, ...
# .inc is often used for code includes which should in general not be part
# of the document-root
url.access-deny = ( "~", ".inc" )
#$HTTP["url"] =~ "\.pdf$" {
# server.range-requests = "disable"
#}
##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
######### Options that are good to be but not neccesary to be changed #######
## bind to port (default: 80)
#server.port = 81
## bind to localhost (default: all interfaces)
#server.bind = "127.0.0.1"
## error-handler for status 404
#server.error-handler-404 = "/error-handler.html"
#server.error-handler-404 = "/error-handler.php"
## to help the rc.scripts
#server.pid-file = "/var/run/lighttpd.pid"
###### virtual hosts
##
## If you want name-based virtual hosting add the next three settings and load
## mod_simple_vhost
##
## document-root =
## virtual-server-root + virtual-server-default-host + virtual-server-docroot
## or
## virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root = "/srv/www/vhosts/"
#simple-vhost.default-host = "www.example.org"
#simple-vhost.document-root = "/htdocs/"
##
## Format:.html
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix = "/usr/share/lighttpd/errors/status-"
#server.errorfile-prefix = "/srv/www/errors/status-"
## virtual directory listings
#dir-listing.activate = "enable"
## select encoding for directory listings
#dir-listing.encoding = "utf-8"
## enable debugging
#debug.log-request-header = "enable"
#debug.log-response-header = "enable"
#debug.log-request-handling = "enable"
#debug.log-file-not-found = "enable"
### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot = "/"
## change uid to (default: don't care)
############ Options you really have to take care of ####################
## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
# "mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
## A static document-root. For virtual hosting take a look at the
## mod_simple_vhost module.
server.document-root = "/data/www/"
## where to send error-messages to
server.errorlog = "/data/log/lighttpd/error.log"
# files to check for if .../ is requested
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
## set the event-handler (read the performance section in the manual)
# server.event-handler = "freebsd-kqueue" # needed on OS X
# mimetype mapping
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
# default mime type
"" => "application/octet-stream",
)
# Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetype.use-xattr = "enable"
## send a different Server: header
## be nice and keep it at lighttpd
# server.tag = "lighttpd"
#### accesslog module
accesslog.filename = "/data/log/lighttpd/access.log"
## deny access the file-extensions
#
# ~ is for backupfiles from vi, emacs, joe, ...
# .inc is often used for code includes which should in general not be part
# of the document-root
url.access-deny = ( "~", ".inc" )
#$HTTP["url"] =~ "\.pdf$" {
# server.range-requests = "disable"
#}
##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
######### Options that are good to be but not neccesary to be changed #######
## bind to port (default: 80)
#server.port = 81
## bind to localhost (default: all interfaces)
#server.bind = "127.0.0.1"
## error-handler for status 404
#server.error-handler-404 = "/error-handler.html"
#server.error-handler-404 = "/error-handler.php"
## to help the rc.scripts
#server.pid-file = "/var/run/lighttpd.pid"
###### virtual hosts
##
## If you want name-based virtual hosting add the next three settings and load
## mod_simple_vhost
##
## document-root =
## virtual-server-root + virtual-server-default-host + virtual-server-docroot
## or
## virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root = "/srv/www/vhosts/"
#simple-vhost.default-host = "www.example.org"
#simple-vhost.document-root = "/htdocs/"
##
## Format:
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix = "/usr/share/lighttpd/errors/status-"
#server.errorfile-prefix = "/srv/www/errors/status-"
## virtual directory listings
#dir-listing.activate = "enable"
## select encoding for directory listings
#dir-listing.encoding = "utf-8"
## enable debugging
#debug.log-request-header = "enable"
#debug.log-response-header = "enable"
#debug.log-request-handling = "enable"
#debug.log-file-not-found = "enable"
### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot = "/"
## change uid to
server.username = "system"
## change uid to (default: don't care)
## change uid to
server.groupname = "system"
#### compress module
#compress.cache-dir = "/var/cache/lighttpd/compress/"
#compress.filetype = ("text/plain", "text/html")
#### proxy module
## read proxy.txt for more info
#proxy.server = ( ".php" =>
# ( "localhost" =>
# (
# "host" => "192.168.0.101",
# "port" => 80
# )
# )
# )
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
#fastcgi.server = ( ".php" =>
# ( "localhost" =>
# (
# "socket" => "/var/run/lighttpd/php-fastcgi.socket",
# "bin-path" => "/usr/local/bin/php-cgi"
# )
# )
# )
#### CGI module
#cgi.assign = ( ".pl" => "/usr/bin/perl",
# ".cgi" => "/usr/bin/perl" )
#
#### SSL engine
#ssl.engine = "enable"
#ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
#### status module
#status.status-url = "/server-status"
#status.config-url = "/server-config"
#### auth module
## read authentication.txt for more info
#auth.backend = "plain"
#auth.backend.plain.userfile = "lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"
#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
#auth.backend.ldap.filter = "(uid=$)"
#auth.require = ( "/server-status" =>
# (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "user=jan"
# ),
# "/server-config" =>
# (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "valid-user"
# )
# )
#### url handling modules (rewrite, redirect, access)
#url.rewrite = ( "^/$" => "/server-status" )
#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
#### both rewrite/redirect support back reference to regex conditional using %n
#$HTTP["host"] =~ "^www\.(.*)" {
# url.redirect = ( "^/(.*)" => "http://%1/$1" )
#}
#
# define a pattern for the host url finding
# %% => % sign
# %0 => domain name + tld
# %1 => tld
# %2 => domain name without tld
# %3 => subdomain 1 name
# %4 => subdomain 2 name
#
#evhost.path-pattern = "/srv/www/vhosts/%3/htdocs/"
#### expire module
#expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
#### ssi
#ssi.extension = ( ".shtml" )
#### rrdtool
#rrdtool.binary = "/usr/bin/rrdtool"
#rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
#### setenv
#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )
## for mod_trigger_b4_dl
# trigger-before-download.gdbm-filename = "/var/lib/lighttpd/trigger.db"
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
# trigger-before-download.trigger-url = "^/trigger/"
# trigger-before-download.download-url = "^/download/"
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
# trigger-before-download.trigger-timeout = 10
#### variable usage:
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
#bar = 1
#var.mystring = "foo"
## integer add
#bar += 1
## string concat, with integer cast as string, result: "www.foo1.com"
#server.name = "www." + mystring + var.bar + ".com"
## array merge
#index-file.names = (foo + ".php") + index-file.names
#index-file.names += (foo + ".php")
#### include
#include /etc/lighttpd/lighttpd-inc.conf
## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
#include "lighttpd-inc.conf"
#### include_shell
#include_shell "echo var.a=1"
## the above is same as:
#var.a=1
(8) you can add your index.html or any web server code to /data/www folder
#### compress module
#compress.cache-dir = "/var/cache/lighttpd/compress/"
#compress.filetype = ("text/plain", "text/html")
#### proxy module
## read proxy.txt for more info
#proxy.server = ( ".php" =>
# ( "localhost" =>
# (
# "host" => "192.168.0.101",
# "port" => 80
# )
# )
# )
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
#fastcgi.server = ( ".php" =>
# ( "localhost" =>
# (
# "socket" => "/var/run/lighttpd/php-fastcgi.socket",
# "bin-path" => "/usr/local/bin/php-cgi"
# )
# )
# )
#### CGI module
#cgi.assign = ( ".pl" => "/usr/bin/perl",
# ".cgi" => "/usr/bin/perl" )
#
#### SSL engine
#ssl.engine = "enable"
#ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
#### status module
#status.status-url = "/server-status"
#status.config-url = "/server-config"
#### auth module
## read authentication.txt for more info
#auth.backend = "plain"
#auth.backend.plain.userfile = "lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"
#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
#auth.backend.ldap.filter = "(uid=$)"
#auth.require = ( "/server-status" =>
# (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "user=jan"
# ),
# "/server-config" =>
# (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "valid-user"
# )
# )
#### url handling modules (rewrite, redirect, access)
#url.rewrite = ( "^/$" => "/server-status" )
#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
#### both rewrite/redirect support back reference to regex conditional using %n
#$HTTP["host"] =~ "^www\.(.*)" {
# url.redirect = ( "^/(.*)" => "http://%1/$1" )
#}
#
# define a pattern for the host url finding
# %% => % sign
# %0 => domain name + tld
# %1 => tld
# %2 => domain name without tld
# %3 => subdomain 1 name
# %4 => subdomain 2 name
#
#evhost.path-pattern = "/srv/www/vhosts/%3/htdocs/"
#### expire module
#expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
#### ssi
#ssi.extension = ( ".shtml" )
#### rrdtool
#rrdtool.binary = "/usr/bin/rrdtool"
#rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
#### setenv
#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )
## for mod_trigger_b4_dl
# trigger-before-download.gdbm-filename = "/var/lib/lighttpd/trigger.db"
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
# trigger-before-download.trigger-url = "^/trigger/"
# trigger-before-download.download-url = "^/download/"
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
# trigger-before-download.trigger-timeout = 10
#### variable usage:
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
#bar = 1
#var.mystring = "foo"
## integer add
#bar += 1
## string concat, with integer cast as string, result: "www.foo1.com"
#server.name = "www." + mystring + var.bar + ".com"
## array merge
#index-file.names = (foo + ".php") + index-file.names
#index-file.names += (foo + ".php")
#### include
#include /etc/lighttpd/lighttpd-inc.conf
## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
#include "lighttpd-inc.conf"
#### include_shell
#include_shell "echo var.a=1"
## the above is same as:
#var.a=1
(8) you can add your index.html or any web server code to /data/www folder
I have contrust a websever and provide php service. will come soon
(9) build android source code
(10) run lighttpd at command of Android, or init.rc visit your web site by http://localhost(or ip )/index.html. Enjoy it.

Hello!
回复删除Very useful article!
I need to port lighttpd to Android now, but it's my first experience with Android. I have some questions:
how to build source code and to run it there?
I'll be very grateful for sources of eclipse project.
Thank you advance!
Best regards, Igor
My Email:
absinth.lviv@gmail.com
Hi,
回复删除Very useful article, I tried to replicate but didn't get success. Can you please share your copy of source file with above changes.
Thanks,
Prakash