sysvtools: fix symlink when withoutInitTools = false

This commit is contained in:
Vladimír Čunát 2013-05-09 15:15:04 +02:00
parent ec3965d8d0
commit 369defb7c1

View File

@ -26,10 +26,12 @@ stdenv.mkDerivation {
substituteInPlace src/Makefile --replace /usr /
'';
postInstall = stdenv.lib.optionalString withoutInitTools
postInstall = ''
mv $out/sbin/killall5 $out/bin
ln -sf killall5 $out/bin/pidof
''
+ stdenv.lib.optionalString withoutInitTools
''
mv $out/sbin/killall5 $out/bin
ln -sf killall5 $out/bin/pidof
shopt -s extglob
rm -rf $out/sbin/!(sulogin)
rm -rf $out/include