add a wscript file for policy
This commit is contained in:
parent
2b427b16e3
commit
cf03f1caea
13
policy/wscript_build
Normal file
13
policy/wscript_build
Normal file
@ -0,0 +1,13 @@
|
||||
#! /usr/bin/env python
|
||||
# encoding: utf-8
|
||||
#
|
||||
# Copyright (C) 2007 Richard Hughes <richard@hughsie.com>
|
||||
#
|
||||
# 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
|
||||
|
5
wscript
5
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:
|
||||
|
Loading…
Reference in New Issue
Block a user