2 # Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.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
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15 include $(INCLUDE_DIR)/package.mk
20 TITLE:=uHTTPd - tiny, single threaded HTTP server
21 DEPENDS:=+liblua +libcyassl +zlib
24 define Package/uhttpd/description
25 uHTTPd is a tiny single threaded HTTP server with TLS, CGI and Lua
26 support. It is intended as a drop-in replacement for the Busybox
30 # hack to use CyASSL headers
31 TARGET_CFLAGS += -I$(firstword $(wildcard $(BUILD_DIR)/cyassl-*/include))
34 mkdir -p $(PKG_BUILD_DIR)
35 $(CP) ./src/* $(PKG_BUILD_DIR)/
38 define Package/uhttpd/conffiles
42 define Package/uhttpd/install
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/uhttpd.init $(1)/etc/init.d/uhttpd
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_CONF) ./files/uhttpd.config $(1)/etc/config/uhttpd
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uhttpd $(1)/usr/sbin/uhttpd
51 $(eval $(call BuildPackage,uhttpd))