-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: Install dring to libexec and edit templates at install time.
Executables are typically installed under bin/, sbin/ or libexec, rather than lib/. The problem was noticed when trying to use Jami with a Guix relocatable pack, which only wraps executables found under the above locations. Since dring is a daemon and should not be run directly by users under normal circumstances, the convention is to use the libexec directory, according to the File Hierchy Standard 3.0. Also tackled in this change is the substitution of the Autoconf variables at installation time rather than configuration time, as per the GNU Coding Standards. The following solution is taken from https://github.com/gentoo/eudev/pull/183/commits, which in turn is adapted from the Autoconf manual (c.f.: info "(autoconf)Installation Directory Variables"). * bin/Makefile.am (ringlibdir): Delete variable. * bin/dbus/Makefile.am (do_subst): New variable. (cx.ring.Ring.service): Derive from the cx.ring.Ring.service.in template. [HAVE_WIN32]: (ringlib_PROGRAMS): Rename to ... (bin_PROGRAMS): ... this. [HAVE_OSX, RING_DBUS]: Likewise. * bin/dbus/cx.ring.Ring.service.in (Exec): Adust. * globals.mk (ringlibdir): Delete variable. * configure.ac [with_dbus] <AC_CONFIG_FILES>: Remove bin/dbus/cx.ring.Ring.service. Also remove the LIBDIR variable, no longer used. Fix indentation. Thanks to Vladimir Stoiakin for providing feedback on this change. Change-Id: I845bf2bd590a9457e70ca173027217b8f164d713
- Loading branch information
Maxim Cournoyer
committed
Jun 22, 2021
1 parent
4bb6741
commit 2afa99f
Showing
5 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[D-BUS Service] | ||
Name=cx.ring.Ring | ||
Exec=@LIBDIR@/ring/dring | ||
Exec=@libexec@/dring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters