2010-05-15 09:55:15 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, eggdbus, expat, pam, intltool, gettext,
|
|
|
|
gobjectIntrospection }:
|
2009-08-13 07:55:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-05-15 09:55:15 +00:00
|
|
|
name = "polkit-0.96";
|
2009-08-13 07:55:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-05-15 09:54:56 +00:00
|
|
|
url = "http://hal.freedesktop.org/releases/${name}.tar.gz";
|
2010-05-15 09:55:15 +00:00
|
|
|
sha256 = "0jh5v0dhf9msvmfmr9d67563m64gq5l96m9jax9abchhfa8wl9il";
|
2009-08-13 07:55:11 +00:00
|
|
|
};
|
|
|
|
|
2010-05-15 09:55:15 +00:00
|
|
|
buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext
|
|
|
|
gobjectIntrospection ];
|
2009-08-13 07:55:11 +00:00
|
|
|
|
2010-05-15 09:55:15 +00:00
|
|
|
configureFlags = "--localstatedir=/var --sysconfdir=/etc";
|
|
|
|
# TODO: PACKAGE_DATA_DIR, PACKAGE_LIBEXEC_DIR, PACKAGE_LIB_DIR
|
2009-08-16 21:47:51 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2009-08-16 12:03:45 +00:00
|
|
|
|
2010-05-15 09:54:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2009-08-13 07:55:11 +00: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 09:54:56 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.urkud ];
|
2009-08-13 07:55:11 +00:00
|
|
|
};
|
|
|
|
}
|