nixpkgs-suyu/pkgs/os-specific/linux/sysvinit/builder.sh
Eelco Dolstra b5edfc05dc * 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
2007-05-23 14:27:23 +00:00

33 lines
686 B
Bash

source $stdenv/setup
makeFlagsArray=(LCRYPT=-lcrypt BIN_OWNER=$(id -u) BIN_GROUP=$(id -g) ROOT=$out)
preBuild="cd src"
preInstall=preInstall
preInstall() {
substituteInPlace Makefile --replace /usr /
mkdir $out
mkdir $out/bin
mkdir $out/sbin
mkdir $out/include
mkdir $out/share
mkdir $out/share/man
mkdir $out/share/man/man1
mkdir $out/share/man/man5
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