2 # Copyright (C) 2007-2009 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 ftp
://atrey.karlin.mff.cuni.cz
/pub
/linux
/pci
17 PKG_MD5SUM
:=b38142c61c52f42d19540a0fcb11050a
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/pciutils
24 TITLE
:=Linux PCI Utilities
25 URL
:=http
://mj.ucw.cz
/pciutils.shtml
28 define Package
/pciutils
/description
29 This package contains various utilities for inspecting and setting of
30 devices connected to the PCI bus.
33 define Package
/pciutils
/postinst
35 (cd
$${IPKG_INSTROOT}/usr
/share
; $${IPKG_INSTROOT}/usr
/sbin
/update-pciids.sh
)
40 CFLAGS
="$(TARGET_CFLAGS)" \
42 HOST
="$(GNU_TARGET_NAME)" \
45 define Build
/InstallDev
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(CP
) $(PKG_BUILD_DIR
)/lib
/libpci.a
$(1)/usr
/lib
48 $(INSTALL_DIR
) $(1)/usr
/include/pci
49 $(CP
) $(foreach i
,pci.h config.h header.h types.h
, \
50 $(PKG_BUILD_DIR
)/lib
/$(i
)) $(1)/usr
/include/pci
53 define Package
/pciutils
/install
54 $(INSTALL_DIR
) $(1)/usr
/sbin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/{lspci
,setpci
,update-pciids.sh
} $(1)/usr
/sbin
/
56 $(INSTALL_DIR
) $(1)/usr
/share
57 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/pci.ids
$(1)/usr
/share
/
60 $(eval
$(call BuildPackage
,pciutils
))