]> git.ipfire.org Git - thirdparty/systemd.git/blame - sysctl.d/meson.build
core: use empty_to_null() where we can
[thirdparty/systemd.git] / sysctl.d / meson.build
CommitLineData
3a726fcd
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
3# Copyright 2017 Zbigniew Jędrzejewski-Szmek
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9#
10# systemd is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public License
16# along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
5c23128d 18install_data(
37efbbd8
ZJS
19 '50-default.conf',
20 install_dir : sysctldir)
5c23128d
ZJS
21
22in_files = []
23
349cc4a5 24if conf.get('ENABLE_COREDUMP') == 1
37efbbd8 25 in_files += ['50-coredump.conf']
5c23128d
ZJS
26endif
27
28foreach file : in_files
37efbbd8
ZJS
29 gen = configure_file(
30 input : file + '.in',
31 output : file,
32 configuration : substs)
33 install_data(gen,
34 install_dir : sysctldir)
5c23128d 35endforeach
94e75a54
ZJS
36
37meson.add_install_script('sh', '-c',
e17e5ba9 38 mkdir_p.format(join_paths(sysconfdir, 'sysctl.d')))