include $(INCLUDE_DIR)/package.mk
+# The files in the .tar.gz are
+# src/all/...
+# src/build/...
+# src/test/...
+# and so on
+#
+# What we want is
+# $(PKG_BUILD_DIR)/all/...
+# $(PKG_BUILD_DIR)/build/...
+# $(PKG_BUILD_DIR)/test/...
+# and so on
+#
+# The following two lines make this happen
+# 1. change tar option to strip out the top-level, src in
+# this case
+# 2. change the tar output to the build directory. The
+# original tar command was
+# $(HOST_TAR) -C/.. $(1) $(TAR_OPTIONS)
+
+TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS)
+TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
+
define Package/appweb
SECTION:=net
CATEGORY:=Network
--sslPort=8443 \
--config=flat
-define Build/Prepare
- tar xzf "$(DL_DIR)/$(PKG_SOURCE)" --strip-components 1 -C "$(PKG_BUILD_DIR)"
-endef
-
define Build/Configure
$(call Build/Configure/Default)
endef