Plymouth: update to 0.9.0, fix build, sanitize, enable systemd-integration

NOTE: I can start the daemon and ping it, but I haven't been able to
get it to do more than that.
This commit is contained in:
Cillian de Róiste 2014-05-26 19:29:53 +02:00
parent 29da3bce27
commit a1d350287b
2 changed files with 25 additions and 29 deletions

View File

@ -1,51 +1,45 @@
{ stdenv, fetchurl, cairo, gtk, libdrm, libpng, makeWrapper, pango, pkgconfig }: { stdenv, fetchurl, autoconf, automake, cairo, docbook_xsl, gtk
, libdrm, libpng , libtool, libxslt, makeWrapper, pango, pkgconfig
, udev
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "plymouth-${version}"; name = "plymouth-${version}";
version = "0.8.8"; version = "0.9.0";
src = fetchurl { src = fetchurl {
url = "http://www.freedesktop.org/software/plymouth/releases/${name}.tar.bz2"; url = "http://www.freedesktop.org/software/plymouth/releases/${name}.tar.bz2";
sha256 = "16vm3llgci7h63jaclfskj1ii61d8psq7ny2mncml6m3sghs9b8v"; sha256 = "0kfdwv179brg390ma003pmdqfvqlbybqiyp9fxrxx0wa19sjxqnk";
}; };
buildInputs = [ cairo gtk libdrm libpng makeWrapper pango pkgconfig ]; buildInputs = [
autoconf automake cairo docbook_xsl gtk libdrm libpng libtool
libxslt makeWrapper pango pkgconfig udev
];
prePatch = ''
sed -e "s#\$(\$PKG_CONFIG --variable=systemdsystemunitdir systemd)#$out/etc/systemd/system#g" \
-i configure.ac
'';
configurePhase = '' configurePhase = ''
export DESTDIR=$out
./configure \ ./configure \
--prefix=$out \
-bindir=$out/bin \ -bindir=$out/bin \
-sbindir=$out/sbin \ -sbindir=$out/sbin \
--prefix=$out \
--exec-prefix=$out \ --exec-prefix=$out \
--libdir=$out/lib \ --libdir=$out/lib \
--libexecdir=$out/lib \ --libexecdir=$out/lib \
--enable-tracing \ --sysconfdir=$out/etc \
--sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--with-log-viewer \
--without-system-root-install \ --without-system-root-install \
--without-rhgb-compat-link \
--enable-tracing \
--enable-systemd-integration \
--enable-pango \
--enable-gtk --enable-gtk
''; '';
# --enable-systemd-integration
# -datadir=/share \
# --with-rhgb-compat-link \
preInstall = "mkdir -p $out/bin $out/sbin";
postInstall = ''
cd $out/$out
mv bin/* $out/bin
mv sbin/* $out/sbin
rmdir bin
rmdir sbin
mv * $out/
sed -e "s#> $output##" \
-e "s#> /dev/stderr##" \
-i $out/lib/plymouth/plymouth-populate-initrd
wrapProgram $out/lib/plymouth/plymouth-populate-initrd \
--set PATH $PATH:$out/bin:$out/sbin
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://www.freedesktop.org/wiki/Software/Plymouth; homepage = http://www.freedesktop.org/wiki/Software/Plymouth;

View File

@ -7446,7 +7446,9 @@ let
config = config.pcmciaUtils.config or null; config = config.pcmciaUtils.config or null;
}; };
plymouth = callPackage ../os-specific/linux/plymouth { }; plymouth = callPackage ../os-specific/linux/plymouth {
automake = automake113x;
};
pmount = callPackage ../os-specific/linux/pmount { }; pmount = callPackage ../os-specific/linux/pmount { };