diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-19 18:47:09 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-19 18:47:09 +0000 |
commit | 2e29092a438ae82fa3b2b81e54b56fb609a964fa (patch) | |
tree | 145c03595ec09da12c9c9ca7267586533e7a785a /package/network/services/uhttpd/Makefile | |
parent | 9a3844c7cd403e64782312b277a3bb28a2e58c32 (diff) |
uhttpd: switch to uhttpd2, it is now feature complete
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35247 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/uhttpd/Makefile')
-rw-r--r-- | package/network/services/uhttpd/Makefile | 54 |
1 files changed, 11 insertions, 43 deletions
diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile index 64ea5f202..9285b55b5 100644 --- a/package/network/services/uhttpd/Makefile +++ b/package/network/services/uhttpd/Makefile @@ -8,24 +8,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uhttpd -PKG_VERSION:=2012-10-30 +PKG_VERSION:=2013-01-19 PKG_RELEASE=$(PKG_SOURCE_VERSION) 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_VERSION:=e57bf6d8bfa465a50eea2c30269acdfe751a46fd +PKG_SOURCE_VERSION:=3560e89406c81814254bdb45db19498387265cb7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz -PKG_MAINTAINER:=Jo-Philipp Wich <jow@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_MAINTAINER:=Felix Fietkau <nbd@openwrt.org> +PKG_CONFIG_DEPENDS = CONFIG_PACKAGE_uhttpd-mod-tls include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk @@ -58,7 +51,7 @@ endef define Package/uhttpd-mod-tls $(Package/uhttpd/default) 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 define Package/uhttpd-mod-tls/description @@ -79,22 +72,6 @@ define Package/uhttpd-mod-tls/config endchoice 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 $(Package/uhttpd/default) TITLE+= (Lua plugin) @@ -117,24 +94,16 @@ define Package/uhttpd-mod-ubus/description session.* namespace and procedures. 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 /etc/config/uhttpd /etc/uhttpd.crt /etc/uhttpd.key endef +TARGET_LDFLAGS += -lcrypt + +CMAKE_OPTIONS = -DTLS_SUPPORT=$(if $(CONFIG_PACKAGE_uhttpd-mod-tls),on,off) + define Package/uhttpd/install $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/uhttpd.init $(1)/etc/init.d/uhttpd @@ -145,8 +114,7 @@ define Package/uhttpd/install endef define Package/uhttpd-mod-tls/install - $(INSTALL_DIR) $(1)/usr/lib - $(INSTALL_BIN) $(PKG_BUILD_DIR)/uhttpd_tls.so $(1)/usr/lib/ + true endef define Package/uhttpd-mod-lua/install |