Skip to content

Commit

Permalink
feat: add manpath configuration file to the container
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed May 21, 2024
1 parent 6f48eff commit f946f9b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 7 deletions.
30 changes: 30 additions & 0 deletions includes.container/etc/man-path.config
Original file line number Diff line number Diff line change
@@ -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
19 changes: 12 additions & 7 deletions recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f946f9b

Please sign in to comment.