+# SPDX-License-Identifier: LGPL-2.1+
+#
+# Copyright © 2017 Zbigniew Jędrzejewski-Szmek
+
#if 0 /// elogind has only two of the parts here in it...
# libcore_la_sources = '''
# audit-fd.c
# dbus-timer.h
# dbus-unit.c
# dbus-unit.h
+# dbus-util.c
+# dbus-util.h
# dbus.c
# dbus.h
# device.c
# 'load-fragment-gperf.gperf',
# input : 'load-fragment-gperf.gperf.m4',
# output: 'load-fragment-gperf.gperf',
-# command : [m4, '-P'] + m4_defines + ['@INPUT@'],
+# command : [meson_apply_m4, config_h, '@INPUT@'],
# capture : true)
#
# load_fragment_gperf_c = custom_target(
# output : 'load-fragment-gperf-nulstr.c',
# command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
# capture : true)
-#
+#
# libcore = static_library(
# 'core',
# libcore_la_sources,
# load_fragment_gperf_c,
# load_fragment_gperf_nulstr_c,
# include_directories : includes,
-# link_with : [libshared_static],
# dependencies : [threads,
+# librt,
# libseccomp,
# libpam,
# libaudit,
# libkmod,
# libapparmor,
+# libselinux,
# libmount])
-#
+#
# systemd_sources = files('main.c')
#
# systemd_shutdown_sources = files('''
#
# in_files = [['macros.systemd', rpmmacrosdir],
# ['triggers.systemd', ''],
-# ['systemd.pc', pkgconfigdatadir]]
+# ['systemd.pc', pkgconfigdatadir],
+# ['system.conf', pkgsysconfdir]]
#
# foreach item : in_files
# file = item[0]
# install_data('org.freedesktop.systemd1.service',
# install_dir : dbussystemservicedir)
#
-# policy_in = configure_file(
-# input : 'org.freedesktop.systemd1.policy.in.in',
-# output : 'org.freedesktop.systemd1.policy.in',
+# policy = configure_file(
+# input : 'org.freedesktop.systemd1.policy.in',
+# output : 'org.freedesktop.systemd1.policy',
# configuration : substs)
+# install_data(policy,
+# install_dir : polkitpolicydir)
#
-# custom_target(
-# 'org.freedesktop.systemd1.policy',
-# input : policy_in,
-# output : 'org.freedesktop.systemd1.policy',
-# command : intltool_command,
-# install : install_polkit,
-# install_dir : polkitpolicydir)
-#endif // 0
-
-# TODO: this might work with meson from git, see
-# https://github.com/mesonbuild/meson/issues/1441#issuecomment-283585493
-#
-# i18n.merge_file(
-# 'org.freedesktop.systemd1.policy',
-# po_dir : po_dir,
-# input : policy_in,
-# output : 'org.freedesktop.systemd1.policy',
-# install : install_polkit,
-# install_dir : polkitpolicydir)
-
-#if 0 /// totally UNNEEDED in elogind
-# install_data('system.conf',
-# 'user.conf',
+# install_data('user.conf',
# install_dir : pkgsysconfdir)
#
# meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))