summaryrefslogtreecommitdiff
path: root/bluez
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2019-08-23 22:04:22 +0000
committerTim Biermann <tbier@posteo.de>2019-08-23 22:04:22 +0000
commit1c859275cee6badaf3eb6246829de328264dbe5b (patch)
treee3cf6ceb84878d890169a295927e8ef6ed8006ed /bluez
parentde818f3af278f53b8257189a064b74aeee0e1173 (diff)
downloadcontrib-1c859275cee6badaf3eb6246829de328264dbe5b.tar.gz
contrib-1c859275cee6badaf3eb6246829de328264dbe5b.tar.xz
bluez: initial commit, version 5.50
Diffstat (limited to 'bluez')
-rw-r--r--bluez/.footprint52
-rw-r--r--bluez/.signature7
-rw-r--r--bluez/Pkgfile31
-rwxr-xr-xbluez/bluetoothd35
-rw-r--r--bluez/bluez-5.50-obexd_without_systemd-1.patch61
5 files changed, 186 insertions, 0 deletions
diff --git a/bluez/.footprint b/bluez/.footprint
new file mode 100644
index 000000000..3038fd53a
--- /dev/null
+++ b/bluez/.footprint
@@ -0,0 +1,52 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/bluetooth/
+-rw-r--r-- root/root etc/bluetooth/main.conf
+drwxr-xr-x root/root etc/dbus-1/
+drwxr-xr-x root/root etc/dbus-1/system.d/
+-rw-r--r-- root/root etc/dbus-1/system.d/bluetooth.conf
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/bluetoothd
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/udev/
+-rwxr-xr-x root/root lib/udev/hid2hci
+drwxr-xr-x root/root lib/udev/rules.d/
+-rw-r--r-- root/root lib/udev/rules.d/97-hid2hci.rules
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/bccmd
+-rwxr-xr-x root/root usr/bin/bluemoon
+-rwxr-xr-x root/root usr/bin/bluetoothctl
+-rwxr-xr-x root/root usr/bin/btattach
+-rwxr-xr-x root/root usr/bin/btmon
+-rwxr-xr-x root/root usr/bin/hex2hcd
+-rwxr-xr-x root/root usr/bin/l2ping
+-rwxr-xr-x root/root usr/bin/l2test
+-rwxr-xr-x root/root usr/bin/mpris-proxy
+-rwxr-xr-x root/root usr/bin/rctest
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/bluetooth/
+-rw-r--r-- root/root usr/include/bluetooth/bluetooth.h
+-rw-r--r-- root/root usr/include/bluetooth/bnep.h
+-rw-r--r-- root/root usr/include/bluetooth/cmtp.h
+-rw-r--r-- root/root usr/include/bluetooth/hci.h
+-rw-r--r-- root/root usr/include/bluetooth/hci_lib.h
+-rw-r--r-- root/root usr/include/bluetooth/hidp.h
+-rw-r--r-- root/root usr/include/bluetooth/l2cap.h
+-rw-r--r-- root/root usr/include/bluetooth/rfcomm.h
+-rw-r--r-- root/root usr/include/bluetooth/sco.h
+-rw-r--r-- root/root usr/include/bluetooth/sdp.h
+-rw-r--r-- root/root usr/include/bluetooth/sdp_lib.h
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/bluez/
+drwxr-xr-x root/root usr/lib/bluez/bluetooth/
+-rwxr-xr-x root/root usr/lib/bluez/bluetooth/bluetoothd
+-rwxr-xr-x root/root usr/lib/libbluetooth.la
+lrwxrwxrwx root/root usr/lib/libbluetooth.so -> libbluetooth.so.3.18.16
+lrwxrwxrwx root/root usr/lib/libbluetooth.so.3 -> libbluetooth.so.3.18.16
+-rwxr-xr-x root/root usr/lib/libbluetooth.so.3.18.16
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/bluez.pc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/bluetoothd.8.gz
diff --git a/bluez/.signature b/bluez/.signature
new file mode 100644
index 000000000..6c8b2c87c
--- /dev/null
+++ b/bluez/.signature
@@ -0,0 +1,7 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF36RmcKU2WHU3Qb7L7bBsP3YyzDBNw60oxl8L1xvuq7TCjIWAl3fXm7W3WF6nPXPeqhj2jhr6HFug2vmKMxHNgAs=
+SHA256 (Pkgfile) = dba6b07170203302e726921f051420c3160fb525dfd1dc234d3028e2c6da4eb1
+SHA256 (.footprint) = 618302f7f2261ad7cfc1449236b7cd4ba90481417bbcec2fb0565c07707aafc3
+SHA256 (bluez-5.50.tar.xz) = 5ffcaae18bbb6155f1591be8c24898dc12f062075a40b538b745bfd477481911
+SHA256 (bluetoothd) = 16992d015e2efe3177ac8a6446225dc724ac0908759015da26d823b9eb5c4ca1
+SHA256 (bluez-5.50-obexd_without_systemd-1.patch) = 20fb46baa7aed312b5e223fa4bf605f9cff76170ea9fa3b50825c267d5b8c573
diff --git a/bluez/Pkgfile b/bluez/Pkgfile
new file mode 100644
index 000000000..f3acb204b
--- /dev/null
+++ b/bluez/Pkgfile
@@ -0,0 +1,31 @@
+# Description: Bluetooth libraries and utilities
+# URL: https://www.bluez.org/
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: alsa-lib dbus glib
+
+name=bluez
+version=5.50
+release=1
+source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
+ bluetoothd bluez-5.50-obexd_without_systemd-1.patch)
+
+build() {
+ cd bluez-$version
+
+ [[ -e /usr/lib/cups ]] && PKGMK_BLUEZ+=" --enable-cups" || PKGMK_BLUEZ+=" --disable-cups"
+ [[ -e /usr/lib/pkgconfig/libical.pc ]] && PKGMK_BLUEZ+=" --enable-obex" || PKGMK_BLUEZ+=" --disable-obex"
+
+ patch -Np1 -i $SRC/bluez-5.50-obexd_without_systemd-1.patch
+ ./configure $PKGMK_BLUEZ \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/$name \
+ --enable-{a2dp,experimental,library,midi,tools} \
+ --disable-systemd
+ make
+ make DESTDIR=$PKG install
+ install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
+ install -D -m 0755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
+ rm -rf $PKG/usr/share/man/man1
+}
diff --git a/bluez/bluetoothd b/bluez/bluetoothd
new file mode 100755
index 000000000..1db2980ea
--- /dev/null
+++ b/bluez/bluetoothd
@@ -0,0 +1,35 @@
+#!/bin/sh
+#@ bluez startup script
+
+SSD=/sbin/start-stop-daemon
+PROG=/usr/lib/bluez/bluetooth/bluetoothd
+# OPTS="-d"
+PID=/var/run/bluetoothd.pid
+
+case $1 in
+start)
+ $SSD --start --background --make-pidfile --pidfile $PID --exec $PROG \
+ -- $OPTS
+ ;;
+stop)
+ $SSD --stop --remove-pidfile --retry 10 --pidfile $PID --exec $PROG
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+status)
+ $SSD --status --pidfile $PID --exec $PROG
+ e=$?
+ case $e in
+ 0) echo "$PROG is running with pid $(cat $PID)" ;;
+ 1) echo "$PROG is not running but the pid file $PID exists" ;;
+ 3) echo "$PROG is not running" ;;
+ 4) echo "Unable to determine the program status" ;;
+ esac
+ exit $e
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart|status]"
+ ;;
+esac
diff --git a/bluez/bluez-5.50-obexd_without_systemd-1.patch b/bluez/bluez-5.50-obexd_without_systemd-1.patch
new file mode 100644
index 000000000..749787c5b
--- /dev/null
+++ b/bluez/bluez-5.50-obexd_without_systemd-1.patch
@@ -0,0 +1,61 @@
+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
+
+

Generated by cgit