gnome-panel r10900 - in trunk: . applets/clock



Author: matthiasc
Date: Tue Feb 26 22:47:15 2008
New Revision: 10900
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=10900&view=rev

Log:
Validate PolicyKit policy files


Modified:
   trunk/ChangeLog
   trunk/applets/clock/ChangeLog
   trunk/applets/clock/Makefile.am
   trunk/configure.in

Modified: trunk/applets/clock/Makefile.am
==============================================================================
--- trunk/applets/clock/Makefile.am	(original)
+++ trunk/applets/clock/Makefile.am	Tue Feb 26 22:47:15 2008
@@ -234,12 +234,17 @@
 
 @INTLTOOL_POLICY_RULE@
 polkit_DATA = $(polkit_in_files:.policy.in=.policy)
+
+check:
+	$(POLKIT_POLICY_FILE_VALIDATE) $(polkit_DATA)
+
 else
 dbus_services_DATA =
 dbus_conf_DATA =
 polkit_DATA =
 endif
 
+
 EXTRA_DIST =						\
 	GNOME_ClockApplet_Factory.server.in.in		\
 	$(schemas_in_files)				\

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Tue Feb 26 22:47:15 2008
@@ -147,6 +147,8 @@
   if test "x$HAVE_POLKIT" = "xyes" ; then
     AC_DEFINE(HAVE_POLKIT, 1, [Defined if PolicyKit support is enabled])
     PKG_CHECK_MODULES(POLKIT_DBUS, polkit-dbus >= $POLKIT_DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED gobject-2.0)
+    AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE],
+                  [polkit-policy-file-validate], [polkit-policy-file-validate])
   fi
 fi
 AM_CONDITIONAL(HAVE_POLKIT, test "x$HAVE_POLKIT" = "xyes")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]