add the pciutils

svn path=/nixpkgs/trunk/; revision=4415
This commit is contained in:
Armijn Hemel 2005-12-23 15:03:01 +00:00
parent b9939fc37a
commit 4cbc035e47
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,12 @@
source $stdenv/setup
postInstall() {
ensureDir $out/lib
ensureDir $out/include
cp lib/*.h $out/include
cp lib/libpci.a $out/lib
}
postInstall=postInstall
genericBuild

View file

@ -0,0 +1,11 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "pciutils-2.2.1";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-2.2.1.tar.bz2;
md5 = "483a08dc864ec42497ad95310bb1a8ee";
};
patches = [./pciutils-path.patch];
}

View file

@ -0,0 +1,12 @@
diff -ruN pciutils-2.2.1/Makefile pciutils-2.2.1.new/Makefile
--- pciutils-2.2.1/Makefile 2005-11-26 14:00:57.000000000 +0100
+++ pciutils-2.2.1.new/Makefile 2005-12-23 15:24:14.000000000 +0100
@@ -7,7 +7,7 @@
VERSION=2.2.1
DATE=2005-11-26
-PREFIX=/usr/local
+PREFIX=$(out)
SBINDIR=$(PREFIX)/sbin
SHAREDIR=$(PREFIX)/share
IDSDIR=$(SHAREDIR)