All of lore.kernel.org
 help / color / mirror / Atom feed
From: Salvatore Bonaccorso <carnil@debian.org>
To: linux-nfs@vger.kernel.org
Cc: NeilBrown <neilb@suse.de>, Scott Mayhew <smayhew@redhat.com>,
	Steve Dickson <steved@redhat.com>,
	Salvatore Bonaccorso <carnil@debian.org>
Subject: [PATCH 2/2] systemd generators: Install depending on location for systemd unit files
Date: Sun, 28 Jun 2020 21:10:02 +0200	[thread overview]
Message-ID: <20200628191002.136918-3-carnil@debian.org> (raw)
In-Reply-To: <20200628191002.136918-1-carnil@debian.org>

While it is possible to configure the systemd unit files directory on
configure time with --with-systemd=unit-dir-path, this path is not taken
into account for installing the systemd unit generators, as they are
installed unconditionally in /usr/lib/systemd/system-generators.

Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
---
 systemd/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/systemd/Makefile.am b/systemd/Makefile.am
index f089c8831902..9ee4f1c8f967 100644
--- a/systemd/Makefile.am
+++ b/systemd/Makefile.am
@@ -45,7 +45,7 @@ man5_MANS	= nfs.conf.man
 man7_MANS	= nfs.systemd.man
 EXTRA_DIST = $(unit_files) $(man5_MANS) $(man7_MANS)
 
-generator_dir = /usr/lib/systemd/system-generators
+generator_dir = $(unitdir)/../system-generators
 
 EXTRA_PROGRAMS	= nfs-server-generator rpc-pipefs-generator
 genexecdir = $(generator_dir)
-- 
2.27.0


  parent reply	other threads:[~2020-06-28 19:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28 19:10 [PATCH 0/2] Allow to to install systemd generators dependend on --with-systemd unit-dir-path location Salvatore Bonaccorso
2020-06-28 19:10 ` [PATCH 1/2] systemd/Makefile: Drop exlicit setting of unit_dir Salvatore Bonaccorso
2020-06-28 19:10 ` Salvatore Bonaccorso [this message]
2021-09-06 18:50 ` [PATCH 0/2] Allow to to install systemd generators dependend on --with-systemd unit-dir-path location Salvatore Bonaccorso
2021-09-20 16:50   ` Steve Dickson
2021-09-23 16:33 ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200628191002.136918-3-carnil@debian.org \
    --to=carnil@debian.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=smayhew@redhat.com \
    --cc=steved@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.