From abda7cc378071d7a6ef67dc6b08e7f73cecb0ae2 Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Mon, 30 Dec 2024 02:28:27 +0100 Subject: [PATCH] scripts/systemd/nut.target et al: make it a .in template [#722] Signed-off-by: Jim Klimov --- configure.ac | 1 + scripts/systemd/.gitignore | 1 + scripts/systemd/Makefile.am | 4 ++-- scripts/systemd/{nut.target => nut.target.in} | 0 4 files changed, 4 insertions(+), 2 deletions(-) rename scripts/systemd/{nut.target => nut.target.in} (100%) diff --git a/configure.ac b/configure.ac index c6672cba23..ffcfd9d480 100644 --- a/configure.ac +++ b/configure.ac @@ -5544,6 +5544,7 @@ AC_CONFIG_FILES([ scripts/python/module/setup.py scripts/upsdrvsvcctl/Makefile scripts/systemd/Makefile + scripts/systemd/nut.target scripts/systemd/nut-common-tmpfiles.conf scripts/systemd/nut-driver@.service scripts/systemd/nut-monitor.service diff --git a/scripts/systemd/.gitignore b/scripts/systemd/.gitignore index 560c249b43..e56937b1e7 100644 --- a/scripts/systemd/.gitignore +++ b/scripts/systemd/.gitignore @@ -1,6 +1,7 @@ # Note: nut-common-tmpfiles.conf.in is also generated, by configure script /nut-common-tmpfiles.conf.in /nut-common-tmpfiles.conf +/nut.target /nut-driver.service /nut-driver@.service /nut-monitor.service diff --git a/scripts/systemd/Makefile.am b/scripts/systemd/Makefile.am index e1a5fa5231..577456cb29 100644 --- a/scripts/systemd/Makefile.am +++ b/scripts/systemd/Makefile.am @@ -24,7 +24,7 @@ endif !WITH_LIBSYSTEMD_INHIBITOR systemdtmpfiles_DATA = \ nut-common-tmpfiles.conf -EXTRA_DIST += nut-driver.target nut.target nut-sleep.service +EXTRA_DIST += nut-driver.target nut-sleep.service systemdshutdown_SCRIPTS = nutshutdown @@ -35,7 +35,7 @@ sbin_SCRIPTS = ../upsdrvsvcctl/upsdrvsvcctl else !HAVE_SYSTEMD EXTRA_DIST += \ nut-driver@.service.in nut-monitor.service.in nut-sleep.service \ - nut-server.service.in nutshutdown.in nut-driver.target nut.target \ + nut-server.service.in nutshutdown.in nut-driver.target nut.target.in \ nut-driver-enumerator.path.in nut-driver-enumerator.service.in \ nut-driver-enumerator-daemon-activator.path.in \ nut-driver-enumerator-daemon-activator.service.in \ diff --git a/scripts/systemd/nut.target b/scripts/systemd/nut.target.in similarity index 100% rename from scripts/systemd/nut.target rename to scripts/systemd/nut.target.in