commit
a83fa6410f
@ -1,61 +0,0 @@
|
|||||||
Submitted By: Armin K. <krejzi at email dot com>
|
|
||||||
Date: 2013-04-29
|
|
||||||
Initial Package Version: 5.17
|
|
||||||
Upstream Status: unknown
|
|
||||||
Origin: Arch Linux (Giovanni Campagna)
|
|
||||||
Description: Allow using obexd without systemd in the user session
|
|
||||||
|
|
||||||
Not all sessions run systemd --user (actually, the majority
|
|
||||||
doesn't), so the dbus daemon must be able to spawn obexd
|
|
||||||
directly, and to do so it needs the full path of the daemon.
|
|
||||||
---
|
|
||||||
Makefile.obexd | 4 ++--
|
|
||||||
obexd/src/org.bluez.obex.service | 4 ----
|
|
||||||
obexd/src/org.bluez.obex.service.in | 4 ++++
|
|
||||||
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
||||||
delete mode 100644 obexd/src/org.bluez.obex.service
|
|
||||||
create mode 100644 obexd/src/org.bluez.obex.service.in
|
|
||||||
|
|
||||||
diff --git a/Makefile.obexd b/Makefile.obexd
|
|
||||||
index 3760867..142e7c3 100644
|
|
||||||
--- a/Makefile.obexd
|
|
||||||
+++ b/Makefile.obexd
|
|
||||||
@@ -2,12 +2,12 @@
|
|
||||||
if SYSTEMD
|
|
||||||
systemduserunitdir = @SYSTEMD_USERUNITDIR@
|
|
||||||
systemduserunit_DATA = obexd/src/obex.service
|
|
||||||
+endif
|
|
||||||
|
|
||||||
dbussessionbusdir = @DBUS_SESSIONBUSDIR@
|
|
||||||
dbussessionbus_DATA = obexd/src/org.bluez.obex.service
|
|
||||||
-endif
|
|
||||||
|
|
||||||
-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
|
|
||||||
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
|
|
||||||
|
|
||||||
obex_plugindir = $(libdir)/obex/plugins
|
|
||||||
|
|
||||||
diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
|
|
||||||
deleted file mode 100644
|
|
||||||
index a538088..0000000
|
|
||||||
--- a/obexd/src/org.bluez.obex.service
|
|
||||||
+++ /dev/null
|
|
||||||
@@ -1,4 +0,0 @@
|
|
||||||
-[D-BUS Service]
|
|
||||||
-Name=org.bluez.obex
|
|
||||||
-Exec=/bin/false
|
|
||||||
-SystemdService=dbus-org.bluez.obex.service
|
|
||||||
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..9c815f2
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/obexd/src/org.bluez.obex.service.in
|
|
||||||
@@ -0,0 +1,4 @@
|
|
||||||
+[D-BUS Service]
|
|
||||||
+Name=org.bluez.obex
|
|
||||||
+Exec=@libexecdir@/obexd
|
|
||||||
+SystemdService=dbus-org.bluez.obex.service
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
||||||
|
|
@ -1,49 +1,58 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib,
|
{ stdenv
|
||||||
python3, readline, udev, libical, systemd, fetchpatch,
|
, lib
|
||||||
enableWiimote ? false, enableMidi ? false, enableSixaxis ? false }:
|
, fetchurl
|
||||||
|
, alsaLib
|
||||||
|
, dbus
|
||||||
|
, glib
|
||||||
|
, json_c
|
||||||
|
, libical
|
||||||
|
, pkgconfig
|
||||||
|
, python3
|
||||||
|
, readline
|
||||||
|
, systemd
|
||||||
|
, udev
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "bluez-5.50";
|
pname = "bluez";
|
||||||
|
version = "5.52";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/bluetooth/${name}.tar.xz";
|
url = "mirror://kernel/linux/bluetooth/${pname}-${version}.tar.xz";
|
||||||
sha256 = "048r91vx9gs5nwwbah2s0xig04nwk14c5s0vb7qmaqdvighsmz2z";
|
sha256 = "02jng21lp6fb3c2bh6vf9y7cj4gaxwk29dfc32ncy0lj0gi4q57p";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonPath = with python3.pkgs; [
|
pythonPath = with python3.pkgs; [
|
||||||
dbus-python pygobject2 pygobject3 recursivePthLoader
|
dbus-python
|
||||||
|
pygobject3
|
||||||
|
recursivePthLoader
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
dbus glib alsaLib python3 python3.pkgs.wrapPython
|
alsaLib
|
||||||
readline udev libical
|
dbus
|
||||||
|
glib
|
||||||
|
json_c
|
||||||
|
libical
|
||||||
|
python3
|
||||||
|
readline
|
||||||
|
udev
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [
|
||||||
|
pkgconfig
|
||||||
|
python3.pkgs.wrapPython
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "test" ];
|
outputs = [ "out" "dev" "test" ];
|
||||||
|
|
||||||
patches = [
|
postPatch = ''
|
||||||
./bluez-5.37-obexd_without_systemd-1.patch
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=1880b299086659844889cdaf687133aca5eaf102";
|
|
||||||
name = "CVE-2018-10910-1.patch";
|
|
||||||
sha256 = "17spsxza27gif8jpxk7360ynvwii1llfdfwg35rwywjjmvww0qj4";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=9213ff7642a33aa481e3c61989ad60f7985b9984";
|
|
||||||
name = "CVE-2018-10910-2.patch";
|
|
||||||
sha256 = "0j7klbhym64yhn86dbsmybqmwx47bviyyhx931izl1p29z2mg8hn";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postConfigure = ''
|
|
||||||
substituteInPlace tools/hid2hci.rules \
|
substituteInPlace tools/hid2hci.rules \
|
||||||
--replace /sbin/udevadm ${systemd}/bin/udevadm \
|
--replace /sbin/udevadm ${systemd}/bin/udevadm \
|
||||||
--replace "hid2hci " "$out/lib/udev/hid2hci "
|
--replace "hid2hci " "$out/lib/udev/hid2hci "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = (with stdenv.lib; [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--enable-library"
|
"--enable-library"
|
||||||
"--enable-cups"
|
"--enable-cups"
|
||||||
@ -54,14 +63,19 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
||||||
"--with-udevdir=${placeholder "out"}/lib/udev"
|
"--with-udevdir=${placeholder "out"}/lib/udev"
|
||||||
] ++ optional enableWiimote [ "--enable-wiimote" ]
|
"--enable-health"
|
||||||
++ optional enableMidi [ "--enable-midi" ]
|
"--enable-mesh"
|
||||||
++ optional enableSixaxis [ "--enable-sixaxis" ]);
|
"--enable-midi"
|
||||||
|
"--enable-nfc"
|
||||||
|
"--enable-sap"
|
||||||
|
"--enable-sixaxis"
|
||||||
|
"--enable-wiimote"
|
||||||
|
];
|
||||||
|
|
||||||
# Work around `make install' trying to create /var/lib/bluetooth.
|
# Work around `make install' trying to create /var/lib/bluetooth.
|
||||||
installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";
|
installFlags = [ "statedir=$(TMPDIR)/var/lib/bluetooth" ];
|
||||||
|
|
||||||
makeFlags = "rulesdir=${placeholder "out"}/lib/udev/rules.d";
|
makeFlags = [ "rulesdir=${placeholder "out"}/lib/udev/rules.d" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $test/{bin,test}
|
mkdir -p $test/{bin,test}
|
||||||
|
@ -48,6 +48,7 @@ mapAliases ({
|
|||||||
bar-xft = lemonbar-xft; # added 2015-01-16
|
bar-xft = lemonbar-xft; # added 2015-01-16
|
||||||
bashCompletion = bash-completion; # Added 2016-09-28
|
bashCompletion = bash-completion; # Added 2016-09-28
|
||||||
beegfs = throw "beegfs has been removed."; # added 2019-11-24
|
beegfs = throw "beegfs has been removed."; # added 2019-11-24
|
||||||
|
bluezFull = bluez; # Added 2019-12-03
|
||||||
bridge_utils = bridge-utils; # added 2015-02-20
|
bridge_utils = bridge-utils; # added 2015-02-20
|
||||||
bro = zeek; # added 2019-09-29
|
bro = zeek; # added 2019-09-29
|
||||||
btrfsProgs = btrfs-progs; # added 2016-01-03
|
btrfsProgs = btrfs-progs; # added 2016-01-03
|
||||||
|
@ -15852,12 +15852,6 @@ in
|
|||||||
|
|
||||||
bluez = bluez5;
|
bluez = bluez5;
|
||||||
|
|
||||||
bluezFull = bluez.override {
|
|
||||||
enableWiimote = true;
|
|
||||||
enableMidi = true;
|
|
||||||
enableSixaxis = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (python3Packages) bedup;
|
inherit (python3Packages) bedup;
|
||||||
|
|
||||||
bolt = callPackage ../os-specific/linux/bolt { };
|
bolt = callPackage ../os-specific/linux/bolt { };
|
||||||
@ -25315,11 +25309,7 @@ in
|
|||||||
|
|
||||||
xteddy = callPackage ../applications/misc/xteddy { };
|
xteddy = callPackage ../applications/misc/xteddy { };
|
||||||
|
|
||||||
xwiimote = callPackage ../misc/drivers/xwiimote {
|
xwiimote = callPackage ../misc/drivers/xwiimote { };
|
||||||
bluez = pkgs.bluez5.override {
|
|
||||||
enableWiimote = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
xzoom = callPackage ../tools/X11/xzoom {};
|
xzoom = callPackage ../tools/X11/xzoom {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user