]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/journal-remote/meson.build
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / journal-remote / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
4
5 systemd_journal_upload_sources = files('''
6 journal-upload.h
7 journal-upload.c
8 journal-upload-journal.c
9 '''.split())
10
11 systemd_journal_remote_sources = files('''
12 journal-remote-parse.h
13 journal-remote-parse.c
14 journal-remote-write.h
15 journal-remote-write.c
16 journal-remote.h
17 journal-remote.c
18 microhttpd-util.h
19 microhttpd-util.c
20 '''.split())
21
22 systemd_journal_gatewayd_sources = files('''
23 journal-gatewayd.c
24 microhttpd-util.h
25 microhttpd-util.c
26 '''.split())
27
28 if conf.get('ENABLE_REMOTE') ==1 and conf.get('HAVE_LIBCURL') == 1
29 journal_upload_conf = configure_file(
30 input : 'journal-upload.conf.in',
31 output : 'journal-upload.conf',
32 configuration : substs)
33 install_data(journal_upload_conf,
34 install_dir : pkgsysconfdir)
35 endif
36
37 if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1
38 journal_remote_conf = configure_file(
39 input : 'journal-remote.conf.in',
40 output : 'journal-remote.conf',
41 configuration : substs)
42 install_data(journal_remote_conf,
43 install_dir : pkgsysconfdir)
44
45 install_data('browse.html',
46 install_dir : join_paths(pkgdatadir, 'gatewayd'))
47
48 meson.add_install_script('sh', '-c',
49 mkdir_p.format('/var/log/journal/remote'))
50 meson.add_install_script('sh', '-c',
51 '''chown 0:0 $DESTDIR/var/log/journal/remote &&
52 chmod 755 $DESTDIR/var/log/journal/remote || :''')
53 endif