install -D -m 0755 tools/obexctl %{buildroot}%{_bindir}/obexctl
-#test
-#if "tv"
-mkdir -p %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/
-ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.service
-ln -sf ../bluetooth.service %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
-#endif
-
install -D -m 0644 obexd/src/obex.service %{buildroot}%{_libpath}/systemd/system/
%post -n bluez-extension-bredr
popd
/sbin/ldconfig
+%post
+ln -s %{_unitdir}/bluetooth.service %{_unitdir}/bluez-start.service
+
%files
%manifest %{name}.manifest
%defattr(-, root, root)
#%{_sbindir}/hid2hci
%dir /usr/lib/udev
/usr/lib/udev/*
+%{_unitdir}/bluetooth.service
%files -n bluez-extension-bredr
%manifest %{name}.manifest
%manifest %{name}.manifest
%defattr(-, root, root)
%{_libexecdir}/bluetooth/bluetoothd.le
-
-#test -2
-%exclude /%{_libpath}/systemd/system/bluetooth.service
-%exclude %{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
-%exclude /%{_datadir}/dbus-1/system-services/org.bluez.service
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
%dir /var/lib/bluetooth
%dir %{_sysconfdir}/modprobe.d
%config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf
-
%files mesh
%manifest %{name}.manifest
%defattr(-, root, root)
%files profile_tv
%manifest %{name}.manifest
%{_sysconfdir}/bluetooth/main.conf
-%exclude %{_libpath}/systemd/system/bluetooth.service
-%exclude %{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
-%exclude %{_libpath}/systemd/system/dbus-org.bluez.service
%exclude %{_datadir}/dbus-1/system-services/org.bluez.service
%files profile_common
Group=network_fw
Type=dbus
BusName=org.bluez
-ExecStart=@pkglibexecdir@/bluetoothd -d -C
+ExecStart=/usr/libexec/bluetooth/bluetoothd -d -C
Capabilities=cap_net_admin,cap_net_raw,cap_net_bind_service,cap_dac_override=i
SecureBits=keep-caps
SmackProcessLabel=System
KillMode=process
+NotifyAccess=main
[Install]
WantedBy=multi-user.target