From f946f9b1a68c2dc45222d4286d79839a0481dc62 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Mon, 20 May 2024 22:27:51 +0530 Subject: [PATCH] feat: add manpath configuration file to the container Signed-off-by: K.B.Dharun Krishna --- includes.container/etc/man-path.config | 30 ++++++++++++++++++++++++++ recipe.yml | 19 ++++++++++------ 2 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 includes.container/etc/man-path.config diff --git a/includes.container/etc/man-path.config b/includes.container/etc/man-path.config new file mode 100644 index 0000000..b7d79a6 --- /dev/null +++ b/includes.container/etc/man-path.config @@ -0,0 +1,30 @@ +MANDATORY_MANPATH /usr/man +MANDATORY_MANPATH /usr/share/man +MANDATORY_MANPATH /usr/local/share/man +MANDATORY_MANPATH /run/host/usr/man +MANDATORY_MANPATH /run/host/usr/share/man +MANDATORY_MANPATH /run/host/usr/local/share/man + +MANPATH_MAP /bin /usr/share/man +MANPATH_MAP /usr/bin /usr/share/man +MANPATH_MAP /sbin /usr/share/man +MANPATH_MAP /usr/sbin /usr/share/man +MANPATH_MAP /usr/local/bin /usr/local/man +MANPATH_MAP /usr/local/bin /usr/local/share/man +MANPATH_MAP /usr/local/sbin /usr/local/man +MANPATH_MAP /usr/local/sbin /usr/local/share/man +MANPATH_MAP /usr/X11R6/bin /usr/X11R6/man +MANPATH_MAP /usr/bin/X11 /usr/X11R6/man +MANPATH_MAP /usr/games /usr/share/man +MANPATH_MAP /opt/bin /opt/man +MANPATH_MAP /opt/sbin /opt/man + +MANDB_MAP /usr/man /var/cache/man/fsstnd +MANDB_MAP /usr/share/man /var/cache/man +MANDB_MAP /usr/local/man /var/cache/man/oldlocal +MANDB_MAP /usr/local/share/man /var/cache/man/local +MANDB_MAP /usr/X11R6/man /var/cache/man/X11R6 +MANDB_MAP /opt/man /var/cache/man/opt +MANDB_MAP /snap/man /var/cache/man/snap + +SECTION 1 n l 8 3 0 2 3type 3posix 3pm 3perl 3am 5 4 9 6 7 diff --git a/recipe.yml b/recipe.yml index c0640f5..0bcfdeb 100644 --- a/recipe.yml +++ b/recipe.yml @@ -34,10 +34,15 @@ stages: - name: cleanup type: shell commands: - - apt autoremove -y - - apt clean - - rm -rf /var/cache/* - - rm -rf /tmp/* - - rm -rf /var/tmp/* - - rm -rf /sources - - mkdir -p /var/cache/apt/archives/partial + - apt autoremove -y + - apt clean + - rm -rf /var/cache/* + - rm -rf /tmp/* + - rm -rf /var/tmp/* + - rm -rf /sources + - mkdir -p /var/cache/apt/archives/partial + + - name: add-manpath-config + type: shell + commands: + - mv /etc/man-path.config /etc/manpath.config