diff --git a/hardware/bluetooth/bluez/actions.py b/hardware/bluetooth/bluez/actions.py new file mode 100644 index 0000000000..9526d3a88c --- /dev/null +++ b/hardware/bluetooth/bluez/actions.py @@ -0,0 +1,83 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + + #shelltools.system("sed -i -e '/SystemdService/d' obexd/src/org.bluez.obex.service.in") + pisitools.dosed("obexd/src/org.bluez.obex.service.in", "SystemdService", deleteLine=True) + autotools.autoreconf("-fi") + autotools.configure("--prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/libexec/ \ + --enable-sixaxis \ + --enable-experimental \ + --disable-android \ + --enable-datafiles \ + --enable-optimization \ + --enable-pie \ + --enable-threads \ + --enable-library \ + --enable-tools \ + --enable-manpages \ + --enable-monitor \ + --enable-udev \ + --enable-test \ + --disable-systemd") + + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s install-libexecPROGRAMS install-dbussessionbusDATA install-dbussystembusDATA install-dbusDATA install-man8" % get.installDIR()) + + + # Install conf files + for i in ["profiles/input", "profiles/network" ,"src"]: + pisitools.insinto("/etc/bluetooth", "%s/*.conf" % (i)) + + + # Simple test tools + for i in ["bluezutils.py", + "dbusdef.py", + "ftp-client", + "list-devices", + "map-client", + "monitor-bluetooth", + "opp-client", + "pbap-client", + "sap_client.py", + "simple-agent", + "simple-endpoint", + "simple-player", + "test-adapter", + "test-alert", + "test-cyclingspeed", + "test-device", + "test-discovery", + "test-health", + "test-health-sink", + "test-heartrate", + "test-hfp", + "test-manager", + "test-nap", + "test-network", + "test-profile", + "test-proximity", + "test-sap-server", + "test-thermometer"]: + pisitools.dobin("test/%s" % i) + # for i in + # pisitools.dodoc("doc/%s" % i) + # Install documents + pisitools.dodoc("AUTHORS", "ChangeLog", "README") diff --git a/hardware/bluetooth/bluez/comar/service.py b/hardware/bluetooth/bluez/comar/service.py new file mode 100644 index 0000000000..d64306d997 --- /dev/null +++ b/hardware/bluetooth/bluez/comar/service.py @@ -0,0 +1,33 @@ +from comar.service import * +import os + +serviceType = "local" +serviceDesc = _({"en": "Bluetooth Service", + "tr": "Bluetooth Hizmeti"}) +serviceDefault = "on" + +PIDFILE="/run/bluez.pid" +DAEMON ="/usr/libexec/bluetooth/bluetoothd" + +@synchronized +def start(): + + startService(command=DAEMON, + pidfile=PIDFILE, + detach=True, + donotify=True) + + os.system("pidof bluez + /usr/libexec/bluetooth/bluetoothd > /run/bluez.pid") + +@synchronized +def stop(): + stopService(pidfile=PIDFILE, + donotify=True) + + try: + os.unlink(PIDFILE) + except: + pass + +def status(): + return isServiceRunning(pidfile=PIDFILE) diff --git a/hardware/bluetooth/bluez/files/bluez-5.18-obexd_without_systemd-1.patch b/hardware/bluetooth/bluez/files/bluez-5.18-obexd_without_systemd-1.patch new file mode 100644 index 0000000000..749787c5b3 --- /dev/null +++ b/hardware/bluetooth/bluez/files/bluez-5.18-obexd_without_systemd-1.patch @@ -0,0 +1,61 @@ +Submitted By: Armin K. +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 + + diff --git a/hardware/bluetooth/bluez/files/bluez-5.20-obexd_without_systemd-1.patch b/hardware/bluetooth/bluez/files/bluez-5.20-obexd_without_systemd-1.patch new file mode 100644 index 0000000000..252e48234a --- /dev/null +++ b/hardware/bluetooth/bluez/files/bluez-5.20-obexd_without_systemd-1.patch @@ -0,0 +1,61 @@ +Submitted By: Armin K. +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 + + diff --git a/hardware/bluetooth/bluez/files/bluez-5.27-obexd_without_systemd-1.patch b/hardware/bluetooth/bluez/files/bluez-5.27-obexd_without_systemd-1.patch new file mode 100644 index 0000000000..749787c5b3 --- /dev/null +++ b/hardware/bluetooth/bluez/files/bluez-5.27-obexd_without_systemd-1.patch @@ -0,0 +1,61 @@ +Submitted By: Armin K. +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 + + diff --git a/hardware/bluetooth/bluez/pspec.xml b/hardware/bluetooth/bluez/pspec.xml new file mode 100644 index 0000000000..df7725cdce --- /dev/null +++ b/hardware/bluetooth/bluez/pspec.xml @@ -0,0 +1,156 @@ + + + + + bluez + http://bluez.sourceforge.net + + PisiLinux Community + admins@pisilinux.org + + GPLv2+ + service + library + app:console + Official Linux Bluetooth protocol stack + bluez contains the tools and libraries that provides support for the core Bluetooth layers and protocols. + https://www.kernel.org/pub/linux/bluetooth/bluez-5.27.tar.xz + + cups-devel + dbus-devel + libnl-devel + alsa-lib-devel + gstreamer-devel + libsndfile-devel + gst-plugins-base-devel + libical-devel + glib2-devel + libical-devel + + + bluez-5.27-obexd_without_systemd-1.patch + + + + + bluez + + cups + libnl + libusb + libical + alsa-lib + alsa-lib + setserial + gstreamer + libsndfile + gst-plugins-base + bluez-libs + + + /lib/udev/rules.d + /lib/systemd/system + /usr/share/misc + /usr/bin + /usr/sbin + /lib/udev + /lib/bluetooth/obexd + /lib/bluetooth/bluetoothd + /usr/lib + /usr/libexec + /usr/share/man + /var/lib/bluetooth + /usr/share/alsa/bluetooth.conf + /usr/share/dbus-1 + /etc + + + System.Service + + + + + bluez-libs + Libraries for use in Bluetooth applications + + libical + + + /usr/lib/libbluetooth.so* + /usr/share/doc + + + + + bluez-libs-devel + Development files for bluez-libs + + bluez-libs + + + /usr/include/bluetooth + /usr/lib/pkgconfig + + + + + + + + 2015-01-29 + 5.27 + rebuild. + Vedat Demir + vedat@pisilinux.org + + + 2015-01-25 + 5.27 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-07-05 + 5.21 + Version bump and bugs fix. + Vedat Demir + vedat@pisilinux.org + + + 2014-05-23 + 5.18 + Version bump + Burak Fazıl Ertürk + burakerturk@pisilinux.org + + + 2014-01-28 + 4.101 + Rebuild Unused + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-08-27 + 4.101 + R.Bump + PisiLinux Community + admins@pisilinux.org + + + 2013-06-28 + 4.101 + Add patches, --enable-hid2hci --enable-wiimote + Marcin Bojara + marcin@pisilinux.org + + + 2013-01-09 + 4.101 + First release + Erdinç Gültekin + admins@pisilinux.org + + + diff --git a/hardware/bluetooth/bluez/translations.xml b/hardware/bluetooth/bluez/translations.xml new file mode 100644 index 0000000000..d6dcaf969f --- /dev/null +++ b/hardware/bluetooth/bluez/translations.xml @@ -0,0 +1,18 @@ + + + + bluez + Linux resmi Bluetooth protokol yığını + Bu projenin genel amacı Linux'ta Bluetooth kablosuz standartların ayrıntılarını yerine getirmektir. + + + + bluez-libs + Uygulamalar için bluetooth erişim kitaplığı + + + + bluez-libs-devel + bluez-libs için geliştirme dosyaları + +