uhttpd: switch to uhttpd2, it is now feature complete

SVN-Revision: 35247
lede-17.01
Felix Fietkau 2013-01-19 18:47:09 +00:00
parent ed6d399f8d
commit 6f0ecf0541
1 changed files with 11 additions and 43 deletions

View File

@ -8,24 +8,17 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=uhttpd PKG_NAME:=uhttpd
PKG_VERSION:=2012-10-30 PKG_VERSION:=2013-01-19
PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://nbd.name/uhttpd.git PKG_SOURCE_URL:=git://nbd.name/uhttpd2.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=e57bf6d8bfa465a50eea2c30269acdfe751a46fd PKG_SOURCE_VERSION:=3560e89406c81814254bdb45db19498387265cb7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org> PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_CONFIG_DEPENDS := \
CONFIG_PACKAGE_uhttpd_debug \
CONFIG_PACKAGE_uhttpd-mod-lua \
CONFIG_PACKAGE_uhttpd-mod-tls \
CONFIG_PACKAGE_uhttpd-mod-tls_cyassl \
CONFIG_PACKAGE_uhttpd-mod-tls_openssl \
CONFIG_PACKAGE_uhttpd-mod-ubus
PKG_CONFIG_DEPENDS = CONFIG_PACKAGE_uhttpd-mod-tls
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/cmake.mk
@ -58,7 +51,7 @@ endef
define Package/uhttpd-mod-tls define Package/uhttpd-mod-tls
$(Package/uhttpd/default) $(Package/uhttpd/default)
TITLE+= (TLS plugin) TITLE+= (TLS plugin)
DEPENDS:=uhttpd +PACKAGE_uhttpd-mod-tls_cyassl:libcyassl +PACKAGE_uhttpd-mod-tls_openssl:libopenssl DEPENDS:=uhttpd +PACKAGE_uhttpd-mod-tls_cyassl:libustream-cyassl +PACKAGE_uhttpd-mod-tls_openssl:libustream-cyassl
endef endef
define Package/uhttpd-mod-tls/description define Package/uhttpd-mod-tls/description
@ -79,22 +72,6 @@ define Package/uhttpd-mod-tls/config
endchoice endchoice
endef endef
UHTTPD_TLS:=none
TLS_CFLAGS:=
TLS_LDFLAGS:=
ifneq ($(CONFIG_PACKAGE_uhttpd-mod-tls_cyassl),)
UHTTPD_TLS:=cyassl
TLS_CFLAGS:=-I$(STAGING_DIR)/usr/include/cyassl
TLS_LDFLAGS:=-lcyassl -lm
endif
ifneq ($(CONFIG_PACKAGE_uhttpd-mod-tls_openssl),)
UHTTPD_TLS:=openssl
TLS_LDFLAGS:=-lssl
endif
define Package/uhttpd-mod-lua define Package/uhttpd-mod-lua
$(Package/uhttpd/default) $(Package/uhttpd/default)
TITLE+= (Lua plugin) TITLE+= (Lua plugin)
@ -117,24 +94,16 @@ define Package/uhttpd-mod-ubus/description
session.* namespace and procedures. session.* namespace and procedures.
endef endef
TARGET_LDFLAGS += -lubox -lcrypt
CMAKE_OPTIONS += \
-DDEBUG=$(if $(CONFIG_PACKAGE_uhttpd_debug),ON,OFF) \
-DLUA_SUPPORT=$(if $(CONFIG_PACKAGE_uhttpd-mod-lua),ON,OFF) \
-DUBUS_SUPPORT=$(if $(CONFIG_PACKAGE_uhttpd-mod-ubus),ON,OFF) \
-DTLS_SUPPORT=$(UHTTPD_TLS) \
-DTLS_CFLAGS="$(TLS_CFLAGS)" \
-DTLS_LDFLAGS="$(TLS_LDFLAGS)" \
define Package/uhttpd/conffiles define Package/uhttpd/conffiles
/etc/config/uhttpd /etc/config/uhttpd
/etc/uhttpd.crt /etc/uhttpd.crt
/etc/uhttpd.key /etc/uhttpd.key
endef endef
TARGET_LDFLAGS += -lcrypt
CMAKE_OPTIONS = -DTLS_SUPPORT=$(if $(CONFIG_PACKAGE_uhttpd-mod-tls),on,off)
define Package/uhttpd/install define Package/uhttpd/install
$(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/uhttpd.init $(1)/etc/init.d/uhttpd $(INSTALL_BIN) ./files/uhttpd.init $(1)/etc/init.d/uhttpd
@ -145,8 +114,7 @@ define Package/uhttpd/install
endef endef
define Package/uhttpd-mod-tls/install define Package/uhttpd-mod-tls/install
$(INSTALL_DIR) $(1)/usr/lib true
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uhttpd_tls.so $(1)/usr/lib/
endef endef
define Package/uhttpd-mod-lua/install define Package/uhttpd-mod-lua/install