]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/journal-remote/meson.build
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / journal-remote / meson.build
CommitLineData
3a726fcd
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
96b2fb93 3# Copyright © 2017 Zbigniew Jędrzejewski-Szmek
3a726fcd 4
5c23128d 5systemd_journal_upload_sources = files('''
37efbbd8
ZJS
6 journal-upload.h
7 journal-upload.c
8 journal-upload-journal.c
5c23128d
ZJS
9'''.split())
10
63e2ebcd
ZJS
11libsystemd_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
20if conf.get('HAVE_MICROHTTPD') == 1
21 libsystemd_journal_remote_sources += files('''
22 microhttpd-util.h
23 microhttpd-util.c
24'''.split())
25endif
26
c064d8db
ZJS
27libsystemd_journal_remote = static_library(
28 'systemd-journal-remote',
63e2ebcd 29 libsystemd_journal_remote_sources,
c064d8db
ZJS
30 include_directories : includes,
31 dependencies : [threads,
32 libmicrohttpd,
33 libgnutls,
34 libxz,
35 liblz4],
36 install : false)
37
5c23128d 38systemd_journal_remote_sources = files('''
c064d8db 39 journal-remote-main.c
5c23128d
ZJS
40'''.split())
41
42systemd_journal_gatewayd_sources = files('''
37efbbd8
ZJS
43 journal-gatewayd.c
44 microhttpd-util.h
45 microhttpd-util.c
5c23128d
ZJS
46'''.split())
47
349cc4a5 48if conf.get('ENABLE_REMOTE') ==1 and conf.get('HAVE_LIBCURL') == 1
37efbbd8
ZJS
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)
5c23128d
ZJS
55endif
56
349cc4a5 57if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1
37efbbd8
ZJS
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)
5c23128d 64
1c9f1314 65 install_data('browse.html',
66 install_dir : join_paths(pkgdatadir, 'gatewayd'))
a3e34ac8 67
1c9f1314 68 meson.add_install_script('sh', '-c',
69 mkdir_p.format('/var/log/journal/remote'))
70 meson.add_install_script('sh', '-c',
f83f8c70
ZJS
71 '''chown 0:0 $DESTDIR/var/log/journal/remote &&
72 chmod 755 $DESTDIR/var/log/journal/remote || :''')
1c9f1314 73endif