mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
7689a348c4
builders. These are redundant now. * Inlined some trivial builders. * Removed a few explicit setup-hook creations. This is done automatically now if setupHook is set. * Deleted the initscripts package. NixOS doesn't use it anymore. svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
32 lines
640 B
Bash
32 lines
640 B
Bash
source $stdenv/setup
|
|
|
|
makeFlagsArray=(LCRYPT=-lcrypt BIN_OWNER=$(id -u) BIN_GROUP=$(id -g) ROOT=$out)
|
|
|
|
preBuild="cd src"
|
|
|
|
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() {
|
|
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
|