Skip to content
This repository was archived by the owner on Dec 10, 2021. It is now read-only.
/ superb-bootstrap Public archive

NetBSD/pkgin support #12

Merged
merged 3 commits into from
Mar 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packageslist
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
# OBP:openbsd-package-name
# PAC:pacman-package-name
# PTG:portage-package-name
# PIN:pkgin-package-name
# PNG:pkgng-package-name
# SLK:slackpkg-package-name
# XBP:xbps-package-name
25 changes: 17 additions & 8 deletions setup
Original file line number Diff line number Diff line change
@@ -112,6 +112,7 @@ fi
OpenBSD_MARK='OBP'; OpenBSD_PM='pkg_add' ; OpenBSD_COMMAND="$PERMISSION_COMMAND $OpenBSD_PM -I"
Pacman_MARK='PAC'; Pacman_PM='pacman' ; Pacman_COMMAND="$PERMISSION_COMMAND $Pacman_PM --sync --noconfirm --needed"
Portage_MARK='PTG'; Portage_PM='emerge' ; Portage_COMMAND="$PERMISSION_COMMAND $Portage_PM"
PKGIN_MARK='PIN'; PKGIN_PM='pkgin' ; PKGIN_COMMAND="$PERMISSION_COMMAND $PKGIN_PM install -y"
PKGNG_MARK='PNG'; PKGNG_PM='pkg' ; PKGNG_COMMAND="$PERMISSION_COMMAND $PKGNG_PM install -y"
Slackpkg_MARK='SLK'; Slackpkg_PM='slackpkg' ; Slackpkg_COMMAND="$PERMISSION_COMMAND $Slackpkg_PM install"
XBPS_MARK='XBP'; XBPS_PM='xbps-install'; XBPS_COMMAND="$PERMISSION_COMMAND $XBPS_PM --yes"
@@ -126,12 +127,15 @@ case $(uname -s | sed -e 's/[[:upper:]]/\L&/g') in
'darwin'*)
PACKAGEMANAGER_MAIN='Homebrew'
;;
'openbsd'*)
PACKAGEMANAGER_MAIN='OpenBSD'
;;
'freebsd'*)
PACKAGEMANAGER_MAIN='PKGNG'
;;
'netbsd'*)
PACKAGEMANAGER_MAIN='PKGIN'
;;
'openbsd'*)
PACKAGEMANAGER_MAIN='OpenBSD'
;;
*)
for packagemanager_check in 'APT' 'Pacman' 'Portage' 'Slackpkg' 'XBPS' 'Zypper'; do
[ -x $(eval "command -v \"\$${packagemanager_check}_PM\"") ] && {
@@ -204,13 +208,18 @@ superbbootstrap_Pacman() {
}

superbbootstrap_Portage() {
$PERMISSION_COMMAND emerge --sync
$PERMISSION_COMMAND emerge --update --newuse --deep --with-bdeps=y @world
$PERMISSION_COMMAND emerge --sync
$PERMISSION_COMMAND emerge --update --newuse --deep --with-bdeps=y @world
}

superbbootstrap_PKGIN() {
$PERMISSION_COMMAND pkgin update -y
$PERMISSION_COMMAND pkgin upgrade -y
}

superbbootstrap_PKGNG() {
$PERMISSION_COMMAND pkg update -y
$PERMISSION_COMMAND pkg upgrade -y
$PERMISSION_COMMAND pkg update -y
$PERMISSION_COMMAND pkg upgrade -y
}

superbbootstrap_Slackpkg() {
@@ -225,7 +234,7 @@ superbbootstrap_XBPS() {
}

superbbootstrap_Zypper() {
$PERMISSION_COMMAND zypper --non-interactive update
$PERMISSION_COMMAND zypper --non-interactive update
}

superbbootstrap_AUR() {