add a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEV

svn path=/nixpkgs/trunk/; revision=6058
This commit is contained in:
Armijn Hemel 2006-08-06 20:30:41 +00:00
parent 5d58712fe0
commit 7bd7fef590
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
source $stdenv/setup
ensureDir "$(dirname $out/dev/MAKEDEV)"
ensureDir "$(dirname $out/sbin/MAKEDEV)"
cat > $out/dev/MAKEDEV << END
#! $SHELL -e
exec $MAKEDEV/dev/MAKEDEV -c $MAKEDEV/etc/makedev.d/ "\$@"
END
chmod +x $out/dev/MAKEDEV
ln -s $out/dev/MAKEDEV $out/sbin/MAKEDEV

View File

@ -0,0 +1,9 @@
{stdenv, MAKEDEV}:
stdenv.mkDerivation {
name = MAKEDEV.name;
builder = ./builder.sh;
inherit MAKEDEV;
}