2009-08-13 09:55:11 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, eggdbus, expat, pam, intltool, gettext }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-05-15 11:54:56 +02:00
|
|
|
name = "polkit-0.92";
|
2009-08-13 09:55:11 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-05-15 11:54:56 +02:00
|
|
|
url = "http://hal.freedesktop.org/releases/${name}.tar.gz";
|
2009-08-13 09:55:11 +02:00
|
|
|
sha256 = "18x4xp4m14fm4aayra4njh82g2jzf6ccln40yybmhxqpb5a3nii8";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext ];
|
|
|
|
|
2009-08-16 23:47:51 +02:00
|
|
|
configureFlags = "--localstatedir=/var";
|
|
|
|
|
|
|
|
installFlags = "localstatedir=$(TMPDIR)/var"; # keep `make install' happy
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
# Allow some files with paranoid permissions to be stripped in
|
|
|
|
# the fixup phase.
|
|
|
|
chmod a+rX -R $out
|
|
|
|
|
|
|
|
# Fix the pathname in the frobnicate example.
|
|
|
|
substituteInPlace $out/share/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy \
|
|
|
|
--replace /usr/bin/pk-example-frobnicate $out/bin/pk-example-frobnicate
|
|
|
|
'';
|
2009-08-16 14:03:45 +02:00
|
|
|
|
2010-05-15 11:54:56 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-08-13 09:55:11 +02:00
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/PolicyKit;
|
|
|
|
description = "A toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes";
|
2010-05-15 11:54:56 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.urkud ];
|
2009-08-13 09:55:11 +02:00
|
|
|
};
|
|
|
|
}
|