* Build a variant "sysvtools" of sysvinit which doesn't

contain the actual init programs, just some utilities
  (notably last, wall, mesg).

svn path=/nixpkgs/trunk/; revision=8737
This commit is contained in:
Eelco Dolstra 2007-05-23 14:27:23 +00:00
parent 8ae7731b63
commit b5edfc05dc
3 changed files with 20 additions and 2 deletions

View File

@ -18,4 +18,16 @@ preInstall() {
mkdir $out/share/man/man8
}
postInstall=postInstall
postInstall() {
if test -n "$withoutInitTools"; then
mv $out/sbin/killall5 $out/bin
ln -sf killall5 $out/bin/pidof
rm -rf $out/sbin
rm -rf $out/include
rm -rf $out/share/man/man5
rm -rf $out/share/man/man8
fi
}
genericBuild

View File

@ -1,11 +1,12 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, withoutInitTools ? false}:
stdenv.mkDerivation {
name = "sysvinit-2.86";
name = if withoutInitTools then "sysvtools-2.86" else "sysvinit-2.86";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz;
sha256 = "1n3rnsynlaw7zyp2q5r7c49yvi1xr3669ick540gz73xw7x9hpq3";
};
patches = [./sysvinit-2.85-exec.patch];
inherit withoutInitTools;
}

View File

@ -2418,6 +2418,11 @@ rec {
inherit fetchurl stdenv;
};
sysvtools = import ../os-specific/linux/sysvinit {
inherit fetchurl stdenv;
withoutInitTools = true;
};
udev = import ../os-specific/linux/udev {
inherit fetchurl stdenv;
};