[packages] tar: update to 1.23, use PKG_INSTALL

git-svn-id: svn://svn.openwrt.org/openwrt/packages@21452 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
swalker 2010-05-15 11:43:33 +00:00
parent 1694bf1d33
commit f41e621afb

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2008-2009 OpenWrt.org # Copyright (C) 2008-2010 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,12 +8,14 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=tar PKG_NAME:=tar
PKG_VERSION:=1.22 PKG_VERSION:=1.23
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@GNU/$(PKG_NAME) PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
PKG_MD5SUM:=07fa517027f426bb80f5f5ff91b63585 PKG_MD5SUM:=41e2ca4b924ec7860e51b43ad06cdb7e
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -46,16 +48,13 @@ $${IPKG_INSTROOT}/bin/tar 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm
exit 0 exit 0
endef endef
define Build/Compile MAKE_FLAGS += \
$(MAKE) -C $(PKG_BUILD_DIR) \ CFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \ LDFLAGS="$(TARGET_LDLAGS)"
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDLAGS)"
endef
define Package/tar/install define Package/tar/install
$(INSTALL_DIR) $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
endef endef
$(eval $(call BuildPackage,tar)) $(eval $(call BuildPackage,tar))