]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Move rpm stuff into a separate src/rpm/ directory
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 31 Jan 2021 16:16:32 +0000 (17:16 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Feb 2021 19:49:14 +0000 (20:49 +0100)
It is only of interest to rpm-based distros, we can move it out of src/core/
which is pretty busy.

meson.build
src/core/meson.build
src/rpm/macros.systemd.in [moved from src/core/macros.systemd.in with 100% similarity]
src/rpm/meson.build [new file with mode: 0644]
src/rpm/triggers.systemd.in [moved from src/core/triggers.systemd.in with 100% similarity]

index 09d8122091dc55cafda6060257227d4ee89510cb..226dc90f9e7290a8059b34af7f3cb21dc4d7c9b2 100644 (file)
@@ -1746,6 +1746,7 @@ subdir('src/partition')
 subdir('src/portable')
 subdir('src/pstore')
 subdir('src/resolve')
+subdir('src/rpm')
 subdir('src/shutdown')
 subdir('src/sysext')
 subdir('src/systemctl')
index b8089c51ce7dcafc91631351f9dd3808670faf70..a389c906b368609084a171fd8cd9235a56ef8110 100644 (file)
@@ -164,11 +164,9 @@ core_includes = [includes, include_directories('.')]
 
 systemd_sources = files('main.c')
 
-in_files = [['macros.systemd',   rpmmacrosdir],
-            ['system.conf',      pkgsysconfdir],
+in_files = [['system.conf',      pkgsysconfdir],
             ['user.conf',        pkgsysconfdir],
-            ['systemd.pc',       pkgconfigdatadir],
-            ['triggers.systemd', '']]
+            ['systemd.pc',       pkgconfigdatadir]]
 
 foreach item : in_files
         file = item[0]
diff --git a/src/rpm/meson.build b/src/rpm/meson.build
new file mode 100644 (file)
index 0000000..8e5283f
--- /dev/null
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+configure_file(
+        input : 'macros.systemd.in',
+        output : 'macros.systemd',
+        configuration : substs,
+        install_dir : rpmmacrosdir == 'no' ? '' : rpmmacrosdir)
+
+configure_file(
+        input : 'triggers.systemd.in',
+        output : 'triggers.systemd',
+        configuration : substs)
+# This doesn't get installed anywhere, it needs to included in the rpm spec
+# file definition.