build: rename libexecdir to pkglibexecdir
authorJan Engelhardt <jengelh@inai.de>
Sun, 18 Nov 2018 16:07:55 +0000 (17:07 +0100)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:58:20 +0000 (14:28 +0530)
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>
Makefile.am
obexd/src/obex.service.in
src/bluetooth.service.in
tools/bluetooth-logger.service.in

index c92a89f..2174444 100755 (executable)
@@ -19,7 +19,7 @@ CLEANFILES =
 
 EXTRA_DIST =
 
-libexecdir = @libexecdir@/bluetooth
+pkglibexecdir = @libexecdir@/bluetooth
 
 libexec_PROGRAMS =
 
@@ -600,7 +600,7 @@ MAINTAINERCLEANFILES = Makefile.in \
        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
index 2c110aa..aa2e6aa 100755 (executable)
@@ -8,7 +8,7 @@ SmackProcessLabel=System
 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
index 50531d8..9b31421 100755 (executable)
@@ -7,7 +7,7 @@ User=network_fw
 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
index bad1532..3a83640 100644 (file)
@@ -3,7 +3,7 @@ Description=Bluetooth monitor logger
 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