aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcsc-lite/pcsc-lite-1.8.11-nopolkit.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-03-04 22:26:34 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2014-03-04 22:29:41 +0000
commit9d3a83346a7711b7a88800a202a1b0775d2d2e68 (patch)
treeaaba9710f21f3d6770f6f8b509d4f0693dde038f /main/pcsc-lite/pcsc-lite-1.8.11-nopolkit.patch
parented77a3089e26ad879a1ee60fd045133ac71a75b7 (diff)
downloadaports-9d3a83346a7711b7a88800a202a1b0775d2d2e68.tar.bz2
aports-9d3a83346a7711b7a88800a202a1b0775d2d2e68.tar.xz
main/pcsc-list: upgrade to 1.8.11 and move to main
Diffstat (limited to 'main/pcsc-lite/pcsc-lite-1.8.11-nopolkit.patch')
-rw-r--r--main/pcsc-lite/pcsc-lite-1.8.11-nopolkit.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/pcsc-lite/pcsc-lite-1.8.11-nopolkit.patch b/main/pcsc-lite/pcsc-lite-1.8.11-nopolkit.patch
new file mode 100644
index 0000000000..8e6fbc9e68
--- /dev/null
+++ b/main/pcsc-lite/pcsc-lite-1.8.11-nopolkit.patch
@@ -0,0 +1,35 @@
+Index: pcsc-lite-1.8.11/configure.ac
+===================================================================
+--- pcsc-lite-1.8.11/configure.ac
++++ pcsc-lite-1.8.11/configure.ac
+@@ -284,16 +284,15 @@ fi
+ POLKIT_MINIMUM=0.111
+ AC_ARG_ENABLE(polkit,
+ AS_HELP_STRING([--enable-polkit],
+- [Build with polkit support]),
+- use_polkit=$withval, use_polkit=no)
+-if test "$use_polkit" != "no"; then
+- PKG_CHECK_MODULES(POLKIT, [polkit-gobject-1 >= $POLKIT_MINIMUM], [use_polkit=yes], [use_polkit=no])
+- if test "$use_polkit" != "no";then
++ [Build with polkit support]))
++if test "x$enable_polkit" != "xno"; then
++ PKG_CHECK_MODULES(POLKIT, [polkit-gobject-1 >= $POLKIT_MINIMUM], [enable_polkit=yes], [enable_polkit=no])
++ if test "$enable_polkit" != "no";then
+ AC_DEFINE([HAVE_POLKIT], 1, [Build polkit access control support])
+ polkit_policy_dir=$($PKG_CONFIG polkit-gobject-1 --variable=policydir)
+ AC_SUBST(POLICY_DIR, [$polkit_policy_dir])
+ else
+- use_polkit=no
++ enable_polkit=no
+ AC_MSG_ERROR([[
+ ***
+ *** polkit >= $POLKIT_MINIMUM was not found. Access control will be disabled.
+@@ -301,7 +300,7 @@ if test "$use_polkit" != "no"; then
+ *** ]])
+ fi
+ fi
+-AM_CONDITIONAL(ENABLE_POLKIT, test "$use_polkit" != "no")
++AM_CONDITIONAL(ENABLE_POLKIT, test "$enable_polkit" != "no")
+
+ # --with-systemdsystemunitdir=DIR
+ AC_ARG_WITH([systemdsystemunitdir],