1
0
Fork 0

Add OS OpenBSD

This commit is contained in:
Alex Kotov 2024-10-21 03:22:05 +04:00
parent b7f1404754
commit 8bf5a450a9
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 71 additions and 38 deletions

View file

@ -78,6 +78,12 @@ so they are not in `/var/lib/portage/world`:
Other
-----
### OpenBSD
```
doas ln -s /etc /usr/local/etc
```
### Gentoo
#### Non-graphical

View file

@ -1,46 +1,57 @@
install_file common root root 644 '/etc/htoprc'
install_file common root root 644 '/etc/tmux.conf'
if [ "$PREFIX" = 'openbsd' ]; then
ROOTWHEEL='wheel'
else
ROOTWHEEL='root'
fi
install_file common root $ROOTWHEEL 644 '/etc/htoprc'
install_file common root $ROOTWHEEL 644 '/etc/tmux.conf'
echo
install_dir root root 755 '/etc/vim'
install_file common root root 644 '/etc/vim/vimrc.local'
install_dir root $ROOTWHEEL 755 '/etc/vim'
install_file common root $ROOTWHEEL 644 '/etc/vim/vimrc.local'
echo
install_dir root root 755 '/etc/fish'
install_dir root root 755 '/etc/fish/conf.d'
install_dir root root 755 '/etc/fish/functions'
install_file common root root 644 '/etc/fish/config.fish'
install_file common root root 644 '/etc/fish/conf.d/rvm.fish'
install_file common root root 644 '/etc/fish/functions/fish_prompt.fish'
install_file common root root 644 '/etc/fish/functions/prompt_user_host.fish'
install_file common root root 644 '/etc/fish/functions/rvm.fish'
install_dir root $ROOTWHEEL 755 '/etc/fish'
install_dir root $ROOTWHEEL 755 '/etc/fish/conf.d'
install_dir root $ROOTWHEEL 755 '/etc/fish/functions'
install_file common root $ROOTWHEEL 644 '/etc/fish/config.fish'
install_file common root $ROOTWHEEL 644 '/etc/fish/conf.d/rvm.fish'
install_file common root $ROOTWHEEL 644 '/etc/fish/functions/fish_prompt.fish'
install_file common root $ROOTWHEEL 644 '/etc/fish/functions/prompt_user_host.fish'
install_file common root $ROOTWHEEL 644 '/etc/fish/functions/rvm.fish'
if [ "$PREFIX" = 'gentoo' ]; then
echo
install_file gentoo root root 644 '/etc/dracut.conf'
install_file gentoo root root 644 '/etc/dracut.conf'
echo
install_file gentoo root root 644 '/etc/conf.d/display-manager'
install_file gentoo root root 644 '/etc/default/grub'
install_file gentoo root root 644 '/etc/env.d/70less'
install_file gentoo root root 644 '/etc/env.d/90xsession'
install_file gentoo root root 644 '/etc/pam.d/lightdm'
install_file gentoo root root 644 '/etc/profile.d/less.sh'
install_file gentoo root portage 644 '/var/lib/portage/world'
install_file gentoo root root 644 '/etc/conf.d/display-manager'
install_file gentoo root root 644 '/etc/default/grub'
install_file gentoo root root 644 '/etc/env.d/70less'
install_file gentoo root root 644 '/etc/env.d/90xsession'
install_file gentoo root root 644 '/etc/pam.d/lightdm'
install_file gentoo root root 644 '/etc/profile.d/less.sh'
install_file gentoo root portage 644 '/var/lib/portage/world'
echo
install_dir root root 755 '/etc/portage/package.accept_keywords'
install_dir root root 755 '/etc/portage/package.license'
install_dir root root 755 '/etc/portage/package.mask'
install_dir root root 755 '/etc/portage/package.use'
install_dir root root 755 '/etc/portage/repos.conf'
install_file gentoo root root 644 '/etc/portage/make.conf'
install_file gentoo root root 644 '/etc/portage/package.accept_keywords/misc'
install_file gentoo root root 644 '/etc/portage/package.license/firmware'
install_file gentoo root root 644 '/etc/portage/package.license/media'
install_file gentoo root root 644 '/etc/portage/package.license/misc'
install_file gentoo root root 644 '/etc/portage/package.mask/binsrc'
install_file gentoo root root 644 '/etc/portage/package.mask/bloat'
install_file gentoo root root 644 '/etc/portage/package.use/desktop'
install_file gentoo root root 644 '/etc/portage/package.use/kernel'
install_file gentoo root root 644 '/etc/portage/package.use/media'
install_file gentoo root root 644 '/etc/portage/package.use/toolchains'
install_file gentoo root root 644 '/etc/portage/package.use/zz-autounmask'
install_file gentoo root root 644 '/etc/portage/repos.conf/gentoo.conf'
install_dir root root 755 '/etc/portage/package.accept_keywords'
install_dir root root 755 '/etc/portage/package.license'
install_dir root root 755 '/etc/portage/package.mask'
install_dir root root 755 '/etc/portage/package.use'
install_dir root root 755 '/etc/portage/repos.conf'
install_file gentoo root root 644 '/etc/portage/make.conf'
install_file gentoo root root 644 '/etc/portage/package.accept_keywords/misc'
install_file gentoo root root 644 '/etc/portage/package.license/firmware'
install_file gentoo root root 644 '/etc/portage/package.license/media'
install_file gentoo root root 644 '/etc/portage/package.license/misc'
install_file gentoo root root 644 '/etc/portage/package.mask/binsrc'
install_file gentoo root root 644 '/etc/portage/package.mask/bloat'
install_file gentoo root root 644 '/etc/portage/package.use/desktop'
install_file gentoo root root 644 '/etc/portage/package.use/kernel'
install_file gentoo root root 644 '/etc/portage/package.use/media'
install_file gentoo root root 644 '/etc/portage/package.use/toolchains'
install_file gentoo root root 644 '/etc/portage/package.use/zz-autounmask'
install_file gentoo root root 644 '/etc/portage/repos.conf/gentoo.conf'
fi
if [ "$PREFIX" = 'openbsd' ]; then
echo
install_file openbsd root wheel 644 '/etc/man.conf'
fi

16
openbsd/etc/man.conf Executable file
View file

@ -0,0 +1,16 @@
# $OpenBSD: man.conf,v 1.2 2015/03/27 21:17:16 schwarze Exp $
# man(1)/apropos(1)/makewhatis(8) configuration, see man.conf(5).
# Default search path for manual pages.
# Copy these three lines, then add, delete, or reorder as desired.
manpath /usr/local/share/fish/man
manpath /usr/share/man
manpath /usr/X11R6/man
manpath /usr/local/man
# Options for terminal output.
output width 78
output indent 5
# Option for PostScript and PDF output.
output paper letter