* splashutils 1.5.4.1, needed for kernels that have the new

fbcondecor patch.  splashutils 1.3 is retained for kernels
  with the fbsplash patch.

svn path=/nixpkgs/trunk/; revision=12029
This commit is contained in:
Eelco Dolstra 2008-06-10 16:09:53 +00:00
parent 2813fb46ad
commit 0283118633
3 changed files with 50 additions and 1 deletions

View file

@ -26,4 +26,10 @@ stdenv.mkDerivation {
#makeFlags = "QUIET=false; #makeFlags = "QUIET=false;
installPhase = "ensureDir $out/bin; cp objs/splash_helper objs/splash_util objs/splash_util.static $out/bin"; installPhase = "ensureDir $out/bin; cp objs/splash_helper objs/splash_util objs/splash_util.static $out/bin";
passthru = {
helperName = "bin/splash_helper";
controlName = "bin/splash_util";
helperProcFile = "/proc/sys/kernel/fbsplash";
};
} }

View file

@ -0,0 +1,32 @@
{stdenv, fetchurl, klibc, zlib, libjpeg}:
stdenv.mkDerivation {
name = "splashutils-1.5.4.1";
src = fetchurl {
url = http://download.berlios.de/fbsplash/splashutils-1.5.4.1.tar.bz2;
sha256 = "0pwv9l6a042hhcwpi4kqdzjg7d1mrlix0fvgqqzqh93mc54z9lf7";
};
buildInputs = [klibc zlib libjpeg];
dontAddPrefix = 1;
configureFlags = "--without-ttf --without-png --without-gpm --with-themedir=/etc/splash";
preConfigure = ''
configureFlags="$configureFlags --with-essential-prefix=$out --with-libdir=/"
substituteInPlace src/common.h \
--replace 'FBSPLASH_DIR"/sys"' '"/sys"' \
--replace 'FBSPLASH_DIR"/proc"' '"/proc"'
'';
CPP = "gcc -E";
CXXCPP = "g++ -E";
passthru = {
helperName = "sbin/fbcondecor_helper";
controlName = "sbin/fbcondecor_ctl";
helperProcFile = "/proc/sys/kernel/fbcondecor";
};
}

View file

@ -4896,7 +4896,18 @@ let pkgs = rec {
inherit stdenv klibc; inherit stdenv klibc;
}; };
splashutils = import ../os-specific/linux/splashutils { splashutils =
if kernel.features ? fbSplash then splashutils_13 else
if kernel.features ? fbConDecor then splashutils_15 else
null;
splashutils_13 = import ../os-specific/linux/splashutils/1.3.nix {
inherit fetchurl stdenv klibc;
zlib = zlibStatic;
libjpeg = libjpegStatic;
};
splashutils_15 = import ../os-specific/linux/splashutils/1.5.nix {
inherit fetchurl stdenv klibc; inherit fetchurl stdenv klibc;
zlib = zlibStatic; zlib = zlibStatic;
libjpeg = libjpegStatic; libjpeg = libjpegStatic;