[packages] transocks: fix unpack and build directory (#9571)
[openwrt/svn-archive/archive.git] / net / transocks / Makefile
index bdcc1c9..6e2cf14 100644 (file)
@@ -17,10 +17,10 @@ PKG_SOURCE_SUBDIR:=transocks
 PKG_SOURCE_VERSION:=-DNOW
 PKG_SOURCE_PROTO:=cvs
 
-PKG_BUILD_DIR:=transocks
-
 include $(INCLUDE_DIR)/package.mk
 
+PKG_UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xf -
+
 define Build/Compile
        $(TARGET_CC) \
                -I$(STAGING_DIR)/usr/include \