diff options
author | Arvind Sankar <[email protected]> | 2020-07-11 19:35:58 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-07-14 17:33:44 -0700 |
commit | 38e2e9ce8327284b2d516874308300aa96102fe9 (patch) | |
tree | 0761f7f696e4da7888a0c99ffb3a91a63ecefdd4 /etc/default | |
parent | bdb518c13abb9eca8d6f8f1d9e2096dc5163a9e7 (diff) |
Centralize variable substitution
A bunch of places need to edit files to incorporate the configured paths
i.e. bindir, sbindir etc. Move this logic into a common file.
Create arc_summary by copying arc_summary[23] as appropriate at build
time instead of install time.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Arvind Sankar <[email protected]>
Closes #10559
Diffstat (limited to 'etc/default')
-rw-r--r-- | etc/default/Makefile.am | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/etc/default/Makefile.am b/etc/default/Makefile.am index afc3a81f6..0ec868e13 100644 --- a/etc/default/Makefile.am +++ b/etc/default/Makefile.am @@ -1,12 +1,5 @@ -initconfdir = $(DEFAULT_INITCONF_DIR) -initconf_SCRIPTS = zfs - -EXTRA_DIST = \ - zfs.in +include $(top_srcdir)/config/Substfiles.am -$(initconf_SCRIPTS):%:%.in Makefile - $(SED) \ - -e 's,@sysconfdir\@,$(sysconfdir),g' \ - $< >'$@' +initconf_SCRIPTS = zfs -CLEANFILES = $(initconf_SCRIPTS) +SUBSTFILES += $(initconf_SCRIPTS) |