1 |
eva 08/10/13 21:26:53 |
2 |
|
3 |
Added: gnome-system-tools-2.22.1-automagic-polkit.patch |
4 |
Log: |
5 |
bump to 2.22.1-r1, fix automagic policykit dependency. |
6 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.24-gentoo-r8-mactel x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-admin/gnome-system-tools/files/gnome-system-tools-2.22.1-automagic-polkit.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/gnome-system-tools/files/gnome-system-tools-2.22.1-automagic-polkit.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/gnome-system-tools/files/gnome-system-tools-2.22.1-automagic-polkit.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: gnome-system-tools-2.22.1-automagic-polkit.patch |
15 |
=================================================================== |
16 |
--- configure.in.old 2008-10-13 23:08:18.000000000 +0200 |
17 |
+++ configure.in 2008-10-13 23:10:46.000000000 +0200 |
18 |
@@ -1,4 +1,4 @@ |
19 |
-AC_PREREQ(2.52) |
20 |
+AC_PREREQ(2.60) |
21 |
AC_INIT(gnome-system-tools, 2.22.1, http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools) |
22 |
AC_CONFIG_SRCDIR(src/common/gst-tool.c) |
23 |
AC_CONFIG_MACRO_DIR([m4]) |
24 |
@@ -88,10 +88,20 @@ |
25 |
AC_SUBST(DBUS_LIBS) |
26 |
AC_SUBST(DBUS_CFLAGS) |
27 |
|
28 |
-PKG_CHECK_MODULES(POLKIT, polkit-dbus >= $POLICYKIT_REQUIRED, have_polkit=yes, have_polkit=no) |
29 |
+dnl Policykit support |
30 |
|
31 |
-if test "$have_polkit" = "yes"; then |
32 |
- AC_DEFINE(HAVE_POLKIT, [1], [whether PolKit was found]) |
33 |
+have_polkit=no |
34 |
+AC_ARG_ENABLE(polkit, |
35 |
+ AS_HELP_STRING([--enable-polkit],[Enable policykit support])) |
36 |
+ |
37 |
+if test "x$enable_polkit" = "xyes"; then |
38 |
+ PKG_CHECK_MODULES(POLKIT, polkit-dbus >= $POLICYKIT_REQUIRED, have_polkit=yes) |
39 |
+ |
40 |
+ if test "$have_polkit" = "yes"; then |
41 |
+ AC_DEFINE(HAVE_POLKIT, [1], [whether PolKit was found]) |
42 |
+ else |
43 |
+ AC_MSG_ERROR([Policykit support requested but not found]) |
44 |
+ fi |
45 |
fi |
46 |
|
47 |
AC_SUBST(POLKIT_LIBS) |