[package] appweb: rework extraction process (#7897)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@33039 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1389159815
commit
3e1f8debc6
@ -31,6 +31,28 @@ PKG_MD5SUM:=060d43c8194fa6a119cada966fc807a7
|
||||
|
||||
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
|
||||
@ -63,10 +85,6 @@ CONFIGURE_ARGS += \
|
||||
--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
|
||||
|
Loading…
x
Reference in New Issue
Block a user