2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@KERNEL
/software
/utils
/pciutils
16 PKG_MD5SUM
:=35222edb86b50a6641352c66fe829b2e
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/pciutils
25 TITLE
:=Linux PCI Utilities
26 URL
:=http
://mj.ucw.cz
/pciutils.shtml
30 define Package
/pciutils
/description
31 This package contains various utilities for inspecting and setting of
32 devices connected to the PCI bus.
35 define Package
/pciutils
/postinst
37 [ -z
"$${IPKG_INSTROOT}" ] || \
38 (cd
$${PKG_ROOT}/usr
/share
; $${PKG_ROOT}/usr
/sbin
/update-pciids
; rm pci.ids.gz.old
)
43 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
45 HOST
="$(GNU_TARGET_NAME)" \
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/lib
50 $(CP
) $(PKG_BUILD_DIR
)/lib
/libpci.a
$(1)/usr
/lib
51 $(INSTALL_DIR
) $(1)/usr
/include/pci
52 $(CP
) $(foreach i
,pci.h config.h header.h types.h
, \
53 $(PKG_BUILD_DIR
)/lib
/$(i
)) $(1)/usr
/include/pci
56 define Package
/pciutils
/install
57 $(INSTALL_DIR
) $(1)/usr
/sbin
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{lspci
,setpci
,update-pciids
} $(1)/usr
/sbin
/
59 $(INSTALL_DIR
) $(1)/usr
/share
60 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/pci.ids.gz
$(1)/usr
/share
/
63 $(eval
$(call BuildPackage
,pciutils
))