[gparted] Install gpartedbin into @libexecdir@ (#85)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Install gpartedbin into @libexecdir@ (#85)
- Date: Wed, 10 Mar 2021 17:05:25 +0000 (UTC)
commit c0a7aa438aff4a05fd723629d9aa785d26d63726
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Mon Mar 1 21:05:17 2021 +0000
Install gpartedbin into @libexecdir@ (#85)
Executables which are not intended for execution by users, but by other
programs, should be installed into /usr/libexec [1][2]. gpartedbin
falls into this category. Update it's installation accordingly.
Standard Autotools details: gpartedbin will be installed into
EPREFIX/libexec by default. To install gpartedbin into a different
directory set libexecdir when configuring the build system. Like this
from git:
./autogen.sh --libexecdir=DIR
or like this from tar release:
./configure --libexecdir=DIR
[1] Filesystem Hierarchy Standard, version 3.0,
4.7. /usr/libexec : Binaries run by other programs (optional)
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html
"/usr/libexec includes internal binaries that are not intended to be
executed directly by users or shell scripts.
"
[2] GNU Coding Standards, June 12, 2020,
7.2.5 Variables for Installation Directories
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
"libexecdir
The directory for installing executable programs to be run by other
programs rather than by users. This directory should normally be
/usr/local/libexec, but write it as $(exec_prefix)/libexec. (If you
are using Autoconf, write it as '@libexecdir@'.)
"
Closes #85 - Please install gpartedbin under /usr/libexec instead of
/usr/sbin
Makefile.am | 2 +-
gparted.in | 2 +-
src/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index db28efd5..c2accc26 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,7 @@ endif
bin_SCRIPTS = gparted
CLEANFILES = $(bin_SCRIPTS) $(DESKTOP_IN_FILES) $(polkit_action_in_FILES)
-do_subst = sed -e 's,[@]sbindir[@],$(sbindir),g' \
+do_subst = sed -e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]gksuprog[@],$(GKSUPROG),g' \
-e 's,[@]enable_xhost_root[@],$(ENABLE_XHOST_ROOT),g'
diff --git a/gparted.in b/gparted.in
index d198ad71..185a73f2 100755
--- a/gparted.in
+++ b/gparted.in
@@ -39,7 +39,7 @@ fi
#
# Define base command for executing GParted
#
-BASE_CMD="@sbindir@/gpartedbin $*"
+BASE_CMD="@libexecdir@/gpartedbin $*"
#
# For non-root users try to get authorisation to run GParted as root.
diff --git a/src/Makefile.am b/src/Makefile.am
index 5a7a1827..1234a4a4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,7 @@ AM_CFLAGS = -Wall
AM_CXXFLAGS = -Wall
-sbin_PROGRAMS = gpartedbin
+libexec_PROGRAMS = gpartedbin
gpartedbin_SOURCES = \
BlockSpecial.cc \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]