depot/third_party/nixpkgs/pkgs/os-specific/linux/ksmbd-tools/0001-skip-installing-example-configuration.patch
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

38 lines
1,012 B
Diff

From 592de67191a3969fcccef6293740c7142793d461 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
Date: Wed, 1 Nov 2023 21:54:05 +0100
Subject: [PATCH] skip installing example configuration
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This requires root if prefix dir is pointed to /etc,
which we cannot do in nix builds.
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
---
meson.build | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/meson.build b/meson.build
index 5f5935f..8373013 100644
--- a/meson.build
+++ b/meson.build
@@ -114,10 +114,10 @@ else
runstatedir = rundir
endif
-install_data(
- sources: 'ksmbd.conf.example',
- install_dir: get_option('sysconfdir') / 'ksmbd',
-)
+#install_data(
+# sources: 'ksmbd.conf.example',
+# install_dir: get_option('sysconfdir') / 'ksmbd',
+#)
systemdsystemunitdir = get_option('systemdsystemunitdir')
if systemdsystemunitdir == ''
--
2.42.0