When files are to be placed not in libexecdir but a subdirectory of
it, automake has a variable name reserved for exactly that purpose
(and a default value, which Makefile.am will override), called
pkglibexecdir. Let's use it.
Change-Id: I8b4e271814ab998a7eccaf5c3c2ac3ddc539a6df
Signed-off-by: himanshu <h.himanshu@samsung.com>
EXTRA_DIST =
-libexecdir = @libexecdir@/bluetooth
+pkglibexecdir = @libexecdir@/bluetooth
libexec_PROGRAMS =
ltmain.sh depcomp compile missing install-sh mkinstalldirs test-driver
SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
- $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
+ $(SED) -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
< $< > $@
%.service: %.service.in Makefile
SupplementaryGroups=priv_mediastorage priv_externalstorage
Type=dbus
BusName=org.bluez.obex
-ExecStart=@libexecdir@/obexd -d --noplugin=ftp,syncevolution,pcsuite,irmc --symlinks -r /opt/usr/home/owner/media/
+ExecStart=@pkglibexecdir@/obexd -d --noplugin=ftp,syncevolution,pcsuite,irmc --symlinks -r /opt/usr/home/owner/media/
[Install]
Alias=dbus-org.bluez.obex.service
Group=network_fw
Type=dbus
BusName=org.bluez
-ExecStart=/usr/libexec/bluetooth/bluetoothd -d -C
+ExecStart=@pkglibexecdir@/bluetoothd -d -C
Capabilities=cap_net_admin,cap_net_bind_service,cap_dac_override=eip
SecureBits=keep-caps
SmackProcessLabel=System
ConditionPathIsDirectory=/sys/class/bluetooth
[Service]
-ExecStart=@libexecdir@/btmon-logger -p -b /var/log/bluetooth/hci.log
+ExecStart=@pkglibexecdir@/btmon-logger -p -b /var/log/bluetooth/hci.log
NotifyAccess=main
CapabilityBoundingSet=CAP_NET_RAW
LimitNPROC=1