* 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:
parent
8ae7731b63
commit
b5edfc05dc
@ -18,4 +18,16 @@ preInstall() {
|
|||||||
mkdir $out/share/man/man8
|
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
|
genericBuild
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl, withoutInitTools ? false}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "sysvinit-2.86";
|
name = if withoutInitTools then "sysvtools-2.86" else "sysvinit-2.86";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz;
|
url = ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz;
|
||||||
sha256 = "1n3rnsynlaw7zyp2q5r7c49yvi1xr3669ick540gz73xw7x9hpq3";
|
sha256 = "1n3rnsynlaw7zyp2q5r7c49yvi1xr3669ick540gz73xw7x9hpq3";
|
||||||
};
|
};
|
||||||
patches = [./sysvinit-2.85-exec.patch];
|
patches = [./sysvinit-2.85-exec.patch];
|
||||||
|
inherit withoutInitTools;
|
||||||
}
|
}
|
||||||
|
@ -2418,6 +2418,11 @@ rec {
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sysvtools = import ../os-specific/linux/sysvinit {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
withoutInitTools = true;
|
||||||
|
};
|
||||||
|
|
||||||
udev = import ../os-specific/linux/udev {
|
udev = import ../os-specific/linux/udev {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user