From 1182eb9b444e97d2d83042eab00d97762a6e6db2 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 9 Dec 2023 22:00:43 +0000 Subject: [PATCH] Patch the example config file to use /bin/ksh instead of bash. Remove RDEP on shells/bash. Set default background so that the terminal cursor is visible. --- wayland/havoc/Makefile | 3 +-- wayland/havoc/patches/patch-havoc_cfg | 8 ++++++++ wayland/havoc/patches/patch-main_c | 9 +++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/wayland/havoc/Makefile b/wayland/havoc/Makefile index 04d839c8d40..83bb15e6640 100644 --- a/wayland/havoc/Makefile +++ b/wayland/havoc/Makefile @@ -3,6 +3,7 @@ COMMENT = minimal terminal emulator for wayland GH_ACCOUNT = ii8 GH_PROJECT = havoc GH_TAGNAME = 0.4.0 +REVISION = 0 CATEGORIES = wayland HOMEPAGE = https://github.com/ii8/havoc @@ -21,8 +22,6 @@ LIB_DEPENDS = devel/epoll-shim \ wayland/wayland \ x11/xkbcommon -RUN_DEPENDS = shells/bash - ALL_TARGET = post-install: diff --git a/wayland/havoc/patches/patch-havoc_cfg b/wayland/havoc/patches/patch-havoc_cfg index d42f7b1186b..492e6d7911d 100644 --- a/wayland/havoc/patches/patch-havoc_cfg +++ b/wayland/havoc/patches/patch-havoc_cfg @@ -1,6 +1,14 @@ Index: havoc.cfg --- havoc.cfg.orig +++ havoc.cfg +@@ -1,6 +1,6 @@ + [child] + # program to run in child process +-program=bash ++program=/bin/ksh + + [window] + # opacity of background from 0 (fully transparent) to 255 (fully opaque) @@ -11,7 +11,7 @@ margin=no [terminal] diff --git a/wayland/havoc/patches/patch-main_c b/wayland/havoc/patches/patch-main_c index 7548c62c6c9..3a24d9c87c8 100644 --- a/wayland/havoc/patches/patch-main_c +++ b/wayland/havoc/patches/patch-main_c @@ -15,6 +15,15 @@ Index: main.c #include #include +@@ -182,7 +188,7 @@ static struct { + [TSM_COLOR_LIGHT_CYAN] = { 0, 255, 255 }, + [TSM_COLOR_WHITE] = { 255, 255, 255 }, + [TSM_COLOR_FOREGROUND] = { 229, 229, 229 }, +- [TSM_COLOR_BACKGROUND] = { 0, 0, 0 }, ++ [TSM_COLOR_BACKGROUND] = { 0, 0, 1 }, + }, + .opt.app_id = "havoc" + }; @@ -191,7 +197,7 @@ static void wcb(struct tsm_vte *vte, const char *u8, s { assert(len <= PIPE_BUF);