configure script prints out this ominous warning:
WARNING: PolicyKit is disabled. You need to manually edit the hal.conf
file to lock down the service. Failure to do so allows any
caller to make hald do work on their behalf which may be
a huge SECURITY HOLE. I repeat: YOU NEED TO EDIT THE FILE
hal.conf to match your distro/site to avoid NASTY SECURITY HOLES.
Note that HAL only builds with the old PolicyKit (it looks for
polkit.pc). Reverted ConsoleKit to the last version that used the
old PolicyKit for this reason.
svn path=/nixpkgs/trunk/; revision=17432
25 lines
886 B
Nix
25 lines
886 B
Nix
{ stdenv, fetchurl, pkgconfig, dbus_glib, zlib, pam, glib, libX11, policykit, expat }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "consolekit-0.2.10";
|
|
|
|
src = fetchurl {
|
|
url = http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-0.2.10.tar.gz;
|
|
sha256 = "1jrv33shrmc1klwpgp02pycmbk9lfaxkd5q7bqxb6v95cl7m3f82";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig dbus_glib zlib pam glib libX11 policykit expat ];
|
|
|
|
configureFlags = "--enable-pam-module --with-pam-module-dir=$(out)/lib/security --localstatedir=/var --sysconfdir=/etc";
|
|
|
|
# Needed for pthread_cancel().
|
|
NIX_LDFLAGS = "-lgcc_s";
|
|
|
|
installFlags = "sysconfdir=$(out)/etc DBUS_SYS_DIR=$(out)/etc/dbus-1/system.d"; # keep `make install' happy
|
|
|
|
meta = {
|
|
homepage = http://www.freedesktop.org/wiki/Software/ConsoleKit;
|
|
description = "A framework for defining and tracking users, login sessions, and seats";
|
|
};
|
|
}
|