From dd639ffee81a497c365c0ca6cb579a3e6af48fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 30 Oct 2024 10:40:34 +0100 Subject: [PATCH 1/3] Update version in meson.build --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index b5ffe4c..ec20d47 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('systemd-netlogd', 'c', - version : '1.4.1', + version : '1.4.2', license : 'LGPL-2.1-or-later', default_options: [ 'c_std=gnu11', From 1d295ff677d396f20760e9663b0c381a87c2a995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 30 Oct 2024 10:47:31 +0100 Subject: [PATCH 2/3] Drop duplication from meson.build --- meson.build | 9 +++------ units/meson.build | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index ec20d47..4ee0bca 100644 --- a/meson.build +++ b/meson.build @@ -13,11 +13,8 @@ project('systemd-netlogd', 'c', conf = configuration_data() conf.set_quoted('PACKAGE_VERSION', meson.project_version()) conf.set_quoted('PACKAGE_STRING', meson.project_name() + ' ' + meson.project_version()) - -substs = configuration_data() -substs.set('PACKAGE_URL', 'https://github.com/systemd/systemd-netlogd') -substs.set('PACKAGE_VERSION', meson.project_version()) -substs.set('PKGPREFIX', get_option('prefix')) +conf.set('PACKAGE_URL', 'https://github.com/systemd/systemd-netlogd') +conf.set('PKGPREFIX', get_option('prefix')) conf.set_quoted('PKGSYSCONFDIR', get_option('sysconfdir')) ##################################################################### @@ -159,7 +156,7 @@ endif systemd_netlogd_conf = configure_file( input : 'conf/netlogd.conf.in', output : 'netlogd.conf', - configuration : substs) + configuration : conf) install_data(systemd_netlogd_conf, install_dir : get_option('sysconfdir')) diff --git a/units/meson.build b/units/meson.build index bfc107e..2cd13a4 100644 --- a/units/meson.build +++ b/units/meson.build @@ -1,6 +1,6 @@ systemd_netlogd_conf = configure_file( input : 'systemd-netlogd.service.in', output : 'systemd-netlogd.service', - configuration : substs) + configuration : conf) install_data(systemd_netlogd_conf, install_dir : get_option('prefix') / 'system') From 60f9729f434de11c7e19a1cffe43898119303979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 30 Oct 2024 10:49:59 +0100 Subject: [PATCH 3/3] Print build feature relevant to netlogd in version --- src/netlog/systemd-netlogd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/netlog/systemd-netlogd.c b/src/netlog/systemd-netlogd.c index 6beac09..18c0231 100644 --- a/src/netlog/systemd-netlogd.c +++ b/src/netlog/systemd-netlogd.c @@ -105,7 +105,11 @@ static int parse_argv(int argc, char *argv[]) { case ARG_VERSION: puts(PACKAGE_STRING); - puts(SYSTEMD_FEATURES); +#ifdef HAVE_OPENSSL + puts("+OPENSSL"); +#else + puts("-OPENSSL"); +#endif return 0; case ARG_CURSOR: