chiark / gitweb /
build-sys: configure the list of system users, files and directories
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 28 Nov 2014 14:59:59 +0000 (15:59 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 1 Dec 2014 04:50:19 +0000 (23:50 -0500)
Choose which system users defined in sysusers.d/systemd.conf and files
or directories in tmpfiles.d/systemd.conf, should be provided depending
on comile-time configuration.

Makefile.am
configure.ac
sysusers.d/.gitignore
sysusers.d/systemd.conf.m4 [moved from sysusers.d/systemd.conf with 77% similarity]
tmpfiles.d/.gitignore
tmpfiles.d/systemd.conf.m4 [moved from tmpfiles.d/systemd.conf with 96% similarity]

index cd81a77754be3af56e236839c5e42656efc1f789..38d320fc3b8889e5cb098a98f9fab7026b060b0d 100644 (file)
@@ -5856,6 +5856,10 @@ src/%: src/%.m4
        $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
 
+sysusers.d/%: sysusers.d/%.m4
+       $(AM_V_at)$(MKDIR_P) $(dir $@)
+       $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
+
 tmpfiles.d/%: tmpfiles.d/%.m4
        $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
index 928ac2e9958ec30c14fa7d83ef3a226295301fec..356a3c3d67d007b00d3ce1d0032ca38e4c5f55a4 100644 (file)
@@ -984,6 +984,7 @@ have_timesyncd=no
 AC_ARG_ENABLE(timesyncd, AS_HELP_STRING([--disable-timesyncd], [disable timesync daemon]))
 if test "x$enable_timesyncd" != "xno"; then
         have_timesyncd=yes
+        M4_DEFINES="$M4_DEFINES -DENABLE_TIMESYNCD"
 fi
 AM_CONDITIONAL(ENABLE_TIMESYNCD, [test "$have_timesyncd" = "yes"])
 
@@ -1073,6 +1074,7 @@ AC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd])
 AS_IF([test "x$enable_networkd" != "xno"], [
         AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
         have_networkd=yes
+        M4_DEFINES="$M4_DEFINES -DENABLE_NETWORKD"
 ])
 AM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
 
index f7957a9889dfb2d27cd792f53044312af544a829..bb3aaaf821950e6a0eb99e7c3922a56bb2e41f67 100644 (file)
@@ -1 +1,2 @@
 /basic.conf
+/systemd.conf
similarity index 77%
rename from sysusers.d/systemd.conf
rename to sysusers.d/systemd.conf.m4
index 95437b8544982cd68e48d655f445dd97f952d27b..23175de1f5608776251b2fe22b3c14a70680aca0 100644 (file)
@@ -6,7 +6,15 @@
 #  (at your option) any later version.
 
 g systemd-journal   - -
+m4_ifdef(`ENABLE_KDBUS',
 u systemd-bus-proxy - "systemd Bus Proxy"
+)m4_dnl
+m4_ifdef(`ENABLE_NETWORKD',
 u systemd-network   - "systemd Network Management"
+)m4_dnl
+m4_ifdef(`ENABLE_RESOLVED',
 u systemd-resolve   - "systemd Resolver"
+)m4_dnl
+m4_ifdef(`ENABLE_TIMESYNCD',
 u systemd-timesync  - "systemd Time Synchronization"
+)m4_dnl
index eb323154ff851f129bb8df37b88a7a8b12de85dc..4f0ecaa9c33e64cdb29983050ff97cea5a5f6907 100644 (file)
@@ -1 +1,2 @@
-etc.conf
+/etc.conf
+/systemd.conf
similarity index 96%
rename from tmpfiles.d/systemd.conf
rename to tmpfiles.d/systemd.conf.m4
index 9ca5ad2bc806c38523ca19d60ceffaae8dc279dc..ad05f43334f56af48331d68cf4f098d17dfbc41f 100644 (file)
@@ -16,9 +16,11 @@ d /run/systemd/sessions 0755 root root -
 d /run/systemd/users 0755 root root -
 d /run/systemd/machines 0755 root root -
 d /run/systemd/shutdown 0755 root root -
+m4_ifdef(`ENABLE_NETWORKD',
 d /run/systemd/netif 0755 systemd-network systemd-network -
 d /run/systemd/netif/links 0755 systemd-network systemd-network -
 d /run/systemd/netif/leases 0755 systemd-network systemd-network -
+)m4_dnl
 
 d /run/log 0755 root root -