mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
* policy-kit: keep state in /var.
svn path=/nixpkgs/trunk/; revision=16737
This commit is contained in:
parent
c2c7c18316
commit
8bfccbbcdf
1 changed files with 14 additions and 3 deletions
|
@ -10,9 +10,20 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext ];
|
||||
|
||||
postInstall = ''
|
||||
chmod a+rX -R "$out"
|
||||
'';
|
||||
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
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.freedesktop.org/wiki/Software/PolicyKit;
|
||||
|
|
Loading…
Reference in a new issue