]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/journal-remote/meson.build
tree-wide: beautify remaining copyright statements
[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 libsystemd_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 '''.split())
19
20 if conf.get('HAVE_MICROHTTPD') == 1
21 libsystemd_journal_remote_sources += files('''
22 microhttpd-util.h
23 microhttpd-util.c
24 '''.split())
25 endif
26
27 libsystemd_journal_remote = static_library(
28 'systemd-journal-remote',
29 libsystemd_journal_remote_sources,
30 include_directories : includes,
31 dependencies : [threads,
32 libmicrohttpd,
33 libgnutls,
34 libxz,
35 liblz4],
36 install : false)
37
38 systemd_journal_remote_sources = files('''
39 journal-remote-main.c
40 '''.split())
41
42 systemd_journal_gatewayd_sources = files('''
43 journal-gatewayd.c
44 microhttpd-util.h
45 microhttpd-util.c
46 '''.split())
47
48 if conf.get('ENABLE_REMOTE') ==1 and conf.get('HAVE_LIBCURL') == 1
49 journal_upload_conf = configure_file(
50 input : 'journal-upload.conf.in',
51 output : 'journal-upload.conf',
52 configuration : substs)
53 install_data(journal_upload_conf,
54 install_dir : pkgsysconfdir)
55 endif
56
57 if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1
58 journal_remote_conf = configure_file(
59 input : 'journal-remote.conf.in',
60 output : 'journal-remote.conf',
61 configuration : substs)
62 install_data(journal_remote_conf,
63 install_dir : pkgsysconfdir)
64
65 install_data('browse.html',
66 install_dir : join_paths(pkgdatadir, 'gatewayd'))
67
68 meson.add_install_script('sh', '-c',
69 mkdir_p.format('/var/log/journal/remote'))
70 meson.add_install_script('sh', '-c',
71 '''chown 0:0 $DESTDIR/var/log/journal/remote &&
72 chmod 755 $DESTDIR/var/log/journal/remote || :''')
73 endif