2007-12-27 20:00:57 +00:00
|
|
|
#
|
2009-04-19 15:55:26 +00:00
|
|
|
# Copyright (C) 2007-2009 OpenWrt.org
|
2007-07-16 18:17:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pciutils
|
2009-04-19 15:55:26 +00:00
|
|
|
PKG_VERSION:=3.1.2
|
2007-07-16 18:17:51 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2007-12-27 20:00:57 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-07-16 18:17:51 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.kernel.org/pub/software/utils/pciutils/ \
|
|
|
|
ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
2009-04-19 15:55:26 +00:00
|
|
|
PKG_MD5SUM:=46387fd7a18c33fbb5311fdb3ab9ea12
|
2007-07-16 18:17:51 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/pciutils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Linux PCI Utilities
|
2007-12-27 20:00:57 +00:00
|
|
|
URL:=http://mj.ucw.cz/pciutils.shtml
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pciutils/description
|
2007-12-27 20:00:57 +00:00
|
|
|
This package contains various utilities for inspecting and setting of
|
2007-10-14 04:32:56 +00:00
|
|
|
devices connected to the PCI bus.
|
2007-07-16 18:17:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pciutils/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
$${IPKG_INSTROOT}/usr/sbin/update-pciids.sh
|
|
|
|
endef
|
|
|
|
|
2007-12-27 20:00:57 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
IDSDIR="/usr/share" \
|
|
|
|
HOST="$(GNU_TARGET_NAME)" \
|
|
|
|
ZLIB="no" \
|
2007-07-16 18:17:51 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libpci.a $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/pci
|
2007-12-27 20:00:57 +00:00
|
|
|
$(CP) $(foreach i,pci.h config.h header.h types.h, \
|
|
|
|
$(PKG_BUILD_DIR)/lib/$(i)) $(1)/usr/include/pci
|
2007-07-16 18:17:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pciutils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/{lspci,setpci,update-pciids.sh} $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/pci.ids $(1)/usr/share/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,pciutils))
|