2005-10-18 23:25:57 +02:00
|
|
|
source $stdenv/setup
|
2004-02-16 15:09:55 +01:00
|
|
|
|
2007-05-23 16:19:08 +02:00
|
|
|
makeFlagsArray=(LCRYPT=-lcrypt BIN_OWNER=$(id -u) BIN_GROUP=$(id -g) ROOT=$out)
|
2005-10-18 23:25:57 +02:00
|
|
|
|
2007-05-23 16:19:08 +02:00
|
|
|
preBuild="cd src"
|
2005-10-18 23:25:57 +02:00
|
|
|
|
2007-05-23 16:19:08 +02:00
|
|
|
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
|
2005-10-18 23:25:57 +02:00
|
|
|
}
|
|
|
|
|
2007-05-23 16:27:23 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2005-10-18 23:25:57 +02:00
|
|
|
genericBuild
|