diff --git a/README.md b/README.md index 92a7f07..b046317 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/files.sh b/files.sh index 2f701bd..193c5e1 100644 --- a/files.sh +++ b/files.sh @@ -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 diff --git a/openbsd/etc/man.conf b/openbsd/etc/man.conf new file mode 100755 index 0000000..a894072 --- /dev/null +++ b/openbsd/etc/man.conf @@ -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