summaryrefslogtreecommitdiffstats
path: root/openwrt/package/pciutils/Makefile
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-31 11:07:21 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-31 11:07:21 +0000
commit33d39081fb309d6ffcbadaca8b694cf695038900 (patch)
tree0a8e14db4469d5b0ff6979511bb401864cd5ec6b /openwrt/package/pciutils/Makefile
parent855954db088603d72b701ecc564c83ba7beacde9 (diff)
add pciutils v2.2.1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3077 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/pciutils/Makefile')
-rw-r--r--openwrt/package/pciutils/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/openwrt/package/pciutils/Makefile b/openwrt/package/pciutils/Makefile
new file mode 100644
index 000000000..631834456
--- /dev/null
+++ b/openwrt/package/pciutils/Makefile
@@ -0,0 +1,35 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=pciutils
+PKG_VERSION:=2.2.1
+PKG_RELEASE:=1
+PKG_MD5SUM:=c18e2a5f04e9abae5a42439de294f086
+
+PKG_SOURCE_URL:=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,PCIUTILS,pciutils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" IDSDIR="/usr/share" HOST=$(GNU_TARGET_NAME)
+ touch $@
+
+$(IPKG_PCIUTILS):
+ install -d -m0755 $(IDIR_PCIUTILS)/usr/sbin
+ install -d -m0755 $(IDIR_PCIUTILS)/usr/share
+ cp -fpR $(PKG_BUILD_DIR)/{lspci,setpci} $(IDIR_PCIUTILS)/usr/sbin/
+ cp -fpR $(PKG_BUILD_DIR)/pci.ids $(IDIR_PCIUTILS)/usr/share/
+ $(RSTRIP) $(IDIR_PCIUTILS)/
+ $(IPKG_BUILD) $(IDIR_PCIUTILS) $(PACKAGE_DIR)