aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/uhttpd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-19 18:47:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-01-19 18:47:09 +0000
commit6f0ecf0541852abcc6251b006c1125b7c9bf92d1 (patch)
tree8236ac008fc83caeb553826d30a3c28373443c4e /package/network/services/uhttpd
parented6d399f8d5a0952b7d101e1e9bd4d9632b741e8 (diff)
downloadupstream-6f0ecf0541852abcc6251b006c1125b7c9bf92d1.tar.gz
upstream-6f0ecf0541852abcc6251b006c1125b7c9bf92d1.tar.bz2
upstream-6f0ecf0541852abcc6251b006c1125b7c9bf92d1.zip
uhttpd: switch to uhttpd2, it is now feature complete
SVN-Revision: 35247
Diffstat (limited to 'package/network/services/uhttpd')
-rw-r--r--package/network/services/uhttpd/Makefile54
1 files changed, 11 insertions, 43 deletions
diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile
index 64ea5f202f..9285b55b59 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