mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
bluez: add patch to specify storage dir
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f9e2a9f1e5
commit
541b9953dd
@ -57,6 +57,7 @@ cd $PKG_BUILD
|
||||
--with-gnu-ld \
|
||||
$DEBUG_CONFIG \
|
||||
$DEVTOOLS_CONFIG \
|
||||
storagedir=/storage/.cache/bluetooth
|
||||
|
||||
make
|
||||
$MAKEINSTALL
|
||||
|
21
packages/network/bluez/patches/bluez-storagedir.patch
Normal file
21
packages/network/bluez/patches/bluez-storagedir.patch
Normal 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])
|
Loading…
x
Reference in New Issue
Block a user