contrib/package: ensure BUILD_DIR separation in olsrd-luci
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2009 00:18:03 +0000 (00:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2009 00:18:03 +0000 (00:18 +0000)
contrib/package/olsrd-luci/Makefile

index de85d8ab578af29e0c20449cbc69c3764004c065..c294b27a1e39476476871c8a580f39334e75bb35 100644 (file)
@@ -18,12 +18,14 @@ PKG_HGREV:=26d021f68c49
 PKG_SOURCE:=$(PKG_HGREV).tar.gz
 PKG_SOURCE_URL:=http://gredler.at/hg/olsrd/archive
 PKG_MD5SUM:=db07cbbdff1c97ff4045cd4f5716be2e
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_BASENAME)-$(PKG_HGREV)
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_HGREV)
+PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
 
 #PKG_SOURCE:=$(PKG_BASENAME)-$(PKG_VERSION).tar.bz2
 #PKG_SOURCE_URL:=http://www.olsr.org/releases/0.5
 #PKG_MD5SUM:=0935688fa0fb5b0e073fe53ec654c5b2
-#PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_BASENAME)-$(PKG_VERSION)
+#PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+#PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xjf $(DL_DIR)/$(PKG_SOURCE)
 
 include $(INCLUDE_DIR)/package.mk