* policy-kit: keep state in /var.
svn path=/nixpkgs/trunk/; revision=16737
This commit is contained in:
parent
c2c7c18316
commit
8bfccbbcdf
@ -10,9 +10,20 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext ];
|
buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext ];
|
||||||
|
|
||||||
postInstall = ''
|
configureFlags = "--localstatedir=/var";
|
||||||
chmod a+rX -R "$out"
|
|
||||||
'';
|
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 = {
|
meta = {
|
||||||
homepage = http://www.freedesktop.org/wiki/Software/PolicyKit;
|
homepage = http://www.freedesktop.org/wiki/Software/PolicyKit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user