bluez: add patch to specify storage dir

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-07-12 20:37:41 +02:00
parent f9e2a9f1e5
commit 541b9953dd
2 changed files with 22 additions and 0 deletions

View File

@ -57,6 +57,7 @@ cd $PKG_BUILD
--with-gnu-ld \
$DEBUG_CONFIG \
$DEVTOOLS_CONFIG \
storagedir=/storage/.cache/bluetooth
make
$MAKEINSTALL

View File

@ -0,0 +1,21 @@
diff -Naur bluez-5.7/configure.ac bluez-5.7.patch/configure.ac
--- bluez-5.7/configure.ac 2013-06-26 18:17:07.000000000 +0200
+++ bluez-5.7.patch/configure.ac 2013-07-12 20:21:17.000000000 +0200
@@ -238,10 +238,13 @@
prefix="${ac_default_prefix}"
fi
-if (test "$localstatedir" = '${prefix}/var'); then
- storagedir="${prefix}/var/lib/bluetooth"
-else
- storagedir="${localstatedir}/lib/bluetooth"
+
+if (test "x$storagedir" = 'x'); then
+ if (test "$localstatedir" = '${prefix}/var'); then
+ storagedir="${prefix}/var/lib/bluetooth"
+ else
+ storagedir="${localstatedir}/lib/bluetooth"
+ fi
fi
AC_DEFINE_UNQUOTED(STORAGEDIR, "${storagedir}",
[Directory for the storage files])