]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
f1b98127 ZJS |
3 | systemd_journal_upload_sources = files( |
4 | 'journal-upload.h', | |
5 | 'journal-upload.c', | |
2f492a73 ZJS |
6 | 'journal-upload-journal.c', |
7 | ) | |
f1b98127 ZJS |
8 | |
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', | |
14 | 'journal-remote.h', | |
2f492a73 ZJS |
15 | 'journal-remote.c', |
16 | ) | |
63e2ebcd ZJS |
17 | |
18 | if conf.get('HAVE_MICROHTTPD') == 1 | |
c5abccfa YW |
19 | libsystemd_journal_remote_sources += files( |
20 | 'microhttpd-util.h', | |
2f492a73 ZJS |
21 | 'microhttpd-util.c', |
22 | ) | |
63e2ebcd ZJS |
23 | endif |
24 | ||
c064d8db ZJS |
25 | libsystemd_journal_remote = static_library( |
26 | 'systemd-journal-remote', | |
63e2ebcd | 27 | libsystemd_journal_remote_sources, |
8d40961c | 28 | include_directories : journal_includes, |
035b0f8f | 29 | link_with : libjournal_core, |
c064d8db ZJS |
30 | dependencies : [threads, |
31 | libmicrohttpd, | |
32 | libgnutls, | |
33 | libxz, | |
34 | liblz4], | |
03f7ddf0 | 35 | build_by_default : false) |
c064d8db | 36 | |
f1b98127 | 37 | systemd_journal_remote_sources = files('journal-remote-main.c') |
5c23128d | 38 | |
f1b98127 ZJS |
39 | systemd_journal_gatewayd_sources = files( |
40 | 'journal-gatewayd.c', | |
41 | 'microhttpd-util.h', | |
2f492a73 ZJS |
42 | 'microhttpd-util.c', |
43 | ) | |
5c23128d | 44 | |
8e6c71bc ZJS |
45 | in_files = [ |
46 | ['journal-upload.conf', | |
47 | conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_LIBCURL') == 1 and install_sysconfdir_samples], | |
48 | ['journal-remote.conf', | |
49 | conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1 and install_sysconfdir_samples]] | |
5c23128d | 50 | |
8e6c71bc ZJS |
51 | foreach tuple : in_files |
52 | file = tuple[0] | |
53 | custom_target( | |
54 | file, | |
55 | input : file + '.in', | |
56 | output: file, | |
8f04a1ca | 57 | command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], |
8e6c71bc ZJS |
58 | install : tuple[1], |
59 | install_dir : pkgsysconfdir) | |
60 | endforeach | |
5c23128d | 61 | |
8e6c71bc | 62 | if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1 |
1c9f1314 | 63 | install_data('browse.html', |
fce9abb2 | 64 | install_dir : pkgdatadir / 'gatewayd') |
a3e34ac8 | 65 | |
6ed5ef98 ZJS |
66 | if get_option('create-log-dirs') |
67 | meson.add_install_script('sh', '-c', | |
68 | mkdir_p.format('/var/log/journal/remote')) | |
69 | meson.add_install_script('sh', '-c', | |
70 | '''chown 0:0 $DESTDIR/var/log/journal/remote && | |
71 | chmod 755 $DESTDIR/var/log/journal/remote || :''') | |
72 | endif | |
1c9f1314 | 73 | endif |
e025c9df YW |
74 | |
75 | ############################################################ | |
76 | ||
77 | fuzzers += [ | |
bbec46c8 | 78 | [files('fuzz-journal-remote.c'), |
e025c9df | 79 | [libsystemd_journal_remote, |
035b0f8f DDM |
80 | libshared], |
81 | [], | |
82 | [journal_includes]], | |
e025c9df | 83 | ] |