11a063fe166f9f5e48515f2a058bae655e8fd250
[packages.git] / utils / pciutils / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pciutils
12 PKG_VERSION:=2.2.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.kernel.org/pub/software/utils/pciutils/ \
17         ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
18 PKG_MD5SUM:=c18e2a5f04e9abae5a42439de294f086
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/pciutils
26   SECTION:=utils
27   CATEGORY:=Utilities
28   TITLE:=Linux PCI Utilities
29   DESCRIPTION:=\
30         This package contains various utilities for inspecting and setting of \\\
31         devices connected to the PCI bus.
32   URL:=http://www.kernel.org/pub/software/utils/pciutils/
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39         $(call Build/Compile/Default, \
40                 CFLAGS="$(TARGET_CFLAGS)" \
41                 IDSDIR="/usr/share" \
42                 HOST="$(GNU_TARGET_NAME)" \
43         )
44 endef
45
46 define Package/pciutils/install
47         install -d -m0755 $(1)/usr/sbin
48         $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(1)/usr/sbin/
49         install -d -m0755 $(1)/usr/share
50         $(CP) $(PKG_BUILD_DIR)/pci.ids $(1)/usr/share/
51 endef
52
53 $(eval $(call BuildPackage,pciutils))