1 # SPDX-License-Identifier: LGPL-2.1+
3 systemd_journal_upload_sources = files('''
6 journal-upload-journal.c
9 libsystemd_journal_remote_sources = files('''
10 journal-remote-parse.h
11 journal-remote-parse.c
12 journal-remote-write.h
13 journal-remote-write.c
18 if conf.get('HAVE_MICROHTTPD') == 1
19 libsystemd_journal_remote_sources += files('''
25 libsystemd_journal_remote = static_library(
26 'systemd-journal-remote',
27 libsystemd_journal_remote_sources,
28 include_directories : includes,
29 dependencies : [threads,
36 systemd_journal_remote_sources = files('''
40 systemd_journal_gatewayd_sources = files('''
46 if conf.get('ENABLE_REMOTE') ==1 and conf.get('HAVE_LIBCURL') == 1
47 journal_upload_conf = configure_file(
48 input : 'journal-upload.conf.in',
49 output : 'journal-upload.conf',
50 configuration : substs)
51 install_data(journal_upload_conf,
52 install_dir : pkgsysconfdir)
55 if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1
56 journal_remote_conf = configure_file(
57 input : 'journal-remote.conf.in',
58 output : 'journal-remote.conf',
59 configuration : substs)
60 install_data(journal_remote_conf,
61 install_dir : pkgsysconfdir)
63 install_data('browse.html',
64 install_dir : join_paths(pkgdatadir, 'gatewayd'))
66 meson.add_install_script('sh', '-c',
67 mkdir_p.format('/var/log/journal/remote'))
68 meson.add_install_script('sh', '-c',
69 '''chown 0:0 $DESTDIR/var/log/journal/remote &&
70 chmod 755 $DESTDIR/var/log/journal/remote || :''')