From cf03f1caeafabf9ea35fafcdf2c7fa868d092b42 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 9 Nov 2007 23:28:41 +0000 Subject: [PATCH] add a wscript file for policy --- policy/wscript_build | 13 +++++++++++++ wscript | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 policy/wscript_build diff --git a/policy/wscript_build b/policy/wscript_build new file mode 100644 index 000000000..a6d7f76f1 --- /dev/null +++ b/policy/wscript_build @@ -0,0 +1,13 @@ +#! /usr/bin/env python +# encoding: utf-8 +# +# Copyright (C) 2007 Richard Hughes +# +# Licensed under the GNU General Public License Version 2 +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +#TODO: install the packagekit.policy file to /usr/share/PolicyKit/policy + diff --git a/wscript b/wscript index af082b021..e442873ad 100644 --- a/wscript +++ b/wscript @@ -41,9 +41,14 @@ def configure(conf): conf.check_pkg('dbus-glib-1', destvar='DBUS_GLIB', vnum='0.60') conf.check_pkg('sqlite3', destvar='SQLITE') + #we need both of these for the server ret = conf.check_pkg('polkit-dbus', destvar='POLKIT_DBUS', vnum='0.5') if ret: ret = conf.check_pkg('polkit-grant', destvar='POLKIT_GRANT', vnum='0.5') + if ret: + #we only need the validation tool if we are doing the tests + if Params.g_options.tests: + ret = conf.find_program('polkit-config-file-validate', var='POLKIT_POLICY_FILE_VALIDATE'): if ret: conf.add_define('SECURITY_TYPE_POLKIT', 1) else: