From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001
From: wbx <wbx@hydrogenium.(none)>
Date: Sun, 17 May 2009 14:41:34 +0200
Subject: Initial import

---
 package/pciutils/Config.in                   |  8 +++++++
 package/pciutils/Makefile                    | 31 ++++++++++++++++++++++++++++
 package/pciutils/ipkg/pciutils.control       |  4 ++++
 package/pciutils/patches/patch-lib_configure | 11 ++++++++++
 4 files changed, 54 insertions(+)
 create mode 100644 package/pciutils/Config.in
 create mode 100644 package/pciutils/Makefile
 create mode 100644 package/pciutils/ipkg/pciutils.control
 create mode 100644 package/pciutils/patches/patch-lib_configure

(limited to 'package/pciutils')

diff --git a/package/pciutils/Config.in b/package/pciutils/Config.in
new file mode 100644
index 000000000..e289b8bbf
--- /dev/null
+++ b/package/pciutils/Config.in
@@ -0,0 +1,8 @@
+config ADK_PACKAGE_PCIUTILS
+	prompt "pciutils.......................... Linux PCI Utilities"
+	tristate
+	select ADK_PACKAGE_ZLIB
+	default n
+	help
+	  This package contains various utilities for inspecting and setting of
+	  devices connected to the PCI bus.
diff --git a/package/pciutils/Makefile b/package/pciutils/Makefile
new file mode 100644
index 000000000..b4ccef18d
--- /dev/null
+++ b/package/pciutils/Makefile
@@ -0,0 +1,31 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:=		pciutils
+PKG_VERSION:=		3.0.3
+PKG_RELEASE:=		1
+PKG_MD5SUM:=		d07da501bb11e6af40acd036536c2e9a
+MASTER_SITES:=		http://www.kernel.org/pub/software/utils/pciutils/ \
+			ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,PCIUTILS,pciutils,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:=		auto
+MAKE_FLAGS+=		CC="${TARGET_CC}" \
+			CFLAGS="${TCFLAGS}" \
+			IDSDIR="/usr/share" \
+			HOST=${GNU_TARGET_NAME}
+ALL_TARGET:=
+
+do-install:
+	${INSTALL_DIR} ${IDIR_PCIUTILS}/usr/{share,sbin}
+	${INSTALL_BIN} ${WRKBUILD}/{lspci,setpci} ${IDIR_PCIUTILS}/usr/sbin/
+	${INSTALL_DATA} ${WRKBUILD}/pci.ids ${IDIR_PCIUTILS}/usr/share/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/pciutils/ipkg/pciutils.control b/package/pciutils/ipkg/pciutils.control
new file mode 100644
index 000000000..b3f0c4eea
--- /dev/null
+++ b/package/pciutils/ipkg/pciutils.control
@@ -0,0 +1,4 @@
+Package: pciutils
+Priority: optional
+Section: sys
+Description: Linux PCI Utilities
diff --git a/package/pciutils/patches/patch-lib_configure b/package/pciutils/patches/patch-lib_configure
new file mode 100644
index 000000000..cde870cce
--- /dev/null
+++ b/package/pciutils/patches/patch-lib_configure
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- pciutils-3.0.3.orig/lib/configure	2008-11-09 20:50:26.000000000 +0100
++++ pciutils-3.0.3/lib/configure	2009-01-09 19:56:33.000000000 +0100
+@@ -60,7 +60,6 @@ case $sys in
+ 		echo_n " sysfs proc"
+ 		echo >>$c '#define PCI_HAVE_PM_LINUX_SYSFS'
+ 		echo >>$c '#define PCI_HAVE_PM_LINUX_PROC'
+-		echo >>$c '#define PCI_HAVE_LINUX_BYTEORDER_H'
+ 		echo >>$c '#define PCI_PATH_PROC_BUS_PCI "/proc/bus/pci"'
+ 		echo >>$c '#define PCI_PATH_SYS_BUS_PCI "/sys/bus/pci"'
+ 		case $cpu in
-- 
cgit v1.2.3