add the MAKEDEV utility. This needs a wrapper with the right location of the configuration directory (default /etc/makdev.d) to work correctly on NixOS.

svn path=/nixpkgs/trunk/; revision=6057
This commit is contained in:
Armijn Hemel 2006-08-06 19:57:12 +00:00
parent 1b17f45ef5
commit 5d58712fe0
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,22 @@
diff -rc MAKEDEV-3.23/Makefile MAKEDEV-3.23.new/Makefile
*** MAKEDEV-3.23/Makefile 2006-01-27 02:56:12.000000000 +0100
--- MAKEDEV-3.23.new/Makefile 2006-08-06 21:50:06.000000000 +0200
***************
*** 19,26 ****
CONF_WITH_SUBDIR=$(patsubst %,makedev.d/%,$(CONF))
! DESTDIR=
! DESTDIRS=$(DESTDIR)${DESTDIR:+/}
devdir=/dev
makedevdir=/dev
sbindir=/usr/sbin
--- 19,26 ----
CONF_WITH_SUBDIR=$(patsubst %,makedev.d/%,$(CONF))
! DESTDIR=${out}
! DESTDIRS=${out}
devdir=/dev
makedevdir=/dev
sbindir=/usr/sbin

View File

@ -0,0 +1,5 @@
source $stdenv/setup
export DESTDIR=$out
genericBuild

View File

@ -0,0 +1,10 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "MAKEDEV-3.23.1";
src = fetchurl {
url = http://losser.labs.cs.uu.nl/~armijn/.nix/MAKEDEV-3.23-1.tar.gz;
md5 = "554faf6cbc9a84e4bd58ccfa32d74e2f";
};
patches = [./MAKEDEV-install.patch];
}