generated from general-packages/pika-pkg-template
Add debian/patches/config.patch
This commit is contained in:
parent
971d324009
commit
29ee164b5f
46
debian/patches/config.patch
vendored
Normal file
46
debian/patches/config.patch
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
From 8cafc17d4ca822ba4bd42ed8bb201680e0f352b7 Mon Sep 17 00:00:00 2001
|
||||
From: ferrreo <harderthanfire@gmail.com>
|
||||
Date: Mon, 2 Dec 2024 20:11:05 +0000
|
||||
Subject: [PATCH 2/2] patch config and usr dir
|
||||
|
||||
---
|
||||
build.zig | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/build.zig b/build.zig
|
||||
index cf25dd2..88dd60b 100644
|
||||
--- a/build.zig
|
||||
+++ b/build.zig
|
||||
@@ -146,8 +146,8 @@ pub fn ServiceInstaller(comptime init_system: InitSystem) type {
|
||||
defer patch_map.deinit();
|
||||
|
||||
try patch_map.put("$DEFAULT_TTY", default_tty_str);
|
||||
- try patch_map.put("$CONFIG_DIRECTORY", config_directory);
|
||||
- try patch_map.put("$PREFIX_DIRECTORY", prefix_directory);
|
||||
+ try patch_map.put("$CONFIG_DIRECTORY", "/etc");
|
||||
+ try patch_map.put("$PREFIX_DIRECTORY", "/usr");
|
||||
try patch_map.put("$EXECUTABLE_NAME", executable_name);
|
||||
|
||||
switch (init_system) {
|
||||
@@ -256,8 +256,8 @@ fn install_ly(allocator: std.mem.Allocator, install_config: bool) !void {
|
||||
defer patch_map.deinit();
|
||||
|
||||
try patch_map.put("$DEFAULT_TTY", default_tty_str);
|
||||
- try patch_map.put("$CONFIG_DIRECTORY", config_directory);
|
||||
- try patch_map.put("$PREFIX_DIRECTORY", prefix_directory);
|
||||
+ try patch_map.put("$CONFIG_DIRECTORY", "/etc");
|
||||
+ try patch_map.put("$PREFIX_DIRECTORY", "/usr");
|
||||
|
||||
const patched_config = try patchFile(allocator, "res/config.ini", patch_map);
|
||||
try installText(patched_config, config_dir, ly_config_directory, "config.ini", .{});
|
||||
@@ -267,7 +267,7 @@ fn install_ly(allocator: std.mem.Allocator, install_config: bool) !void {
|
||||
var patch_map = PatchMap.init(allocator);
|
||||
defer patch_map.deinit();
|
||||
|
||||
- try patch_map.put("$CONFIG_DIRECTORY", config_directory);
|
||||
+ try patch_map.put("$CONFIG_DIRECTORY", "/etc");
|
||||
|
||||
const patched_setup = try patchFile(allocator, "res/setup.sh", patch_map);
|
||||
try installText(patched_setup, config_dir, ly_config_directory, "setup.sh", .{ .mode = 0o755 });
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user