mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 00:04:29 +08:00
build: ship all config files with --enable-datafiles
Currently we ship only the dbus/systemd policy files and omit the other four - /etc/bluetooth/{main,mesh-main,input,network}.conf. Outside of those files, there is no documentation what the defaults are and the other possible options. A number of distributions (Arch, Gentoo, Fedora) have opted to manually copy those into the package. Alas this does not scale and leaves other distros at disadvantage, in a sense. Note: we need a custom install target to ensure confdir and statedir have the correct permissions.
This commit is contained in:
parent
1313351f71
commit
be0e796299
@ -31,11 +31,17 @@ AM_LDFLAGS = $(MISC_LDFLAGS)
|
||||
confdir = $(sysconfdir)/bluetooth
|
||||
statedir = $(localstatedir)/lib/bluetooth
|
||||
|
||||
install-data-hook:
|
||||
install -dm555 $(DESTDIR)$(confdir)
|
||||
install -dm700 $(DESTDIR)$(statedir)
|
||||
|
||||
if DATAFILES
|
||||
dbusdir = $(DBUS_CONFDIR)/dbus-1/system.d
|
||||
dbus_DATA = src/bluetooth.conf
|
||||
|
||||
conf_DATA =
|
||||
conf_DATA = src/main.conf
|
||||
conf_DATA += profiles/input/input.conf
|
||||
conf_DATA += profiles/network/network.conf
|
||||
state_DATA =
|
||||
endif
|
||||
|
||||
|
@ -3,6 +3,7 @@ if MESH
|
||||
|
||||
if DATAFILES
|
||||
dbus_DATA += mesh/bluetooth-mesh.conf
|
||||
conf_DATA += mesh/mesh-main.conf
|
||||
endif
|
||||
|
||||
if SYSTEMD
|
||||
|
Loading…
Reference in New Issue
Block a user