Skip to content

Commit

Permalink
autobuild: Recognize NetBSD and install packages via pkgin
Browse files Browse the repository at this point in the history
Closes: vedang#170
  • Loading branch information
snimmagadda authored and vedang committed Nov 25, 2022
1 parent 96703b2 commit 997467a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ The following Operating Systems / package managers are supported. *Note*: The pa
- Apline Linux: ~apk~
- FreeBSD: ~pkg~
- OpenBSD: ~pkg_add~
- NetBSD: ~pkgin~
- Arch Linux: ~pacman~
- Gentoo: ~emerge~
- CentOS: ~yum~
Expand Down
13 changes: 13 additions & 0 deletions server/autobuild
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,17 @@ os_freebsd() {
return 0
}

# NetBSD
os_netbsd() {
if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "NetBSD" ]; then
return 1
fi
PKGCMD=pkgin
PKGARGS=install
PACKAGES="autoconf automake poppler-glib png pkgconf"
return 0
}

# OpenBSD
os_openbsd() {
if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "OpenBSD" ]; then
Expand Down Expand Up @@ -485,6 +496,7 @@ os_argument() {
freebsd) os_freebsd "$@";;
arch) os_arch "$@";;
centos) os_centos "$@";;
netbsd) os_netbsd "$@";;
openbsd) os_openbsd "$@";;
fedora) os_fedora "$@";;
debian) os_debian "$@";;
Expand Down Expand Up @@ -514,6 +526,7 @@ os_macos "$@" || \
os_freebsd "$@" || \
os_arch "$@" || \
os_centos "$@" || \
os_netbsd "$@" || \
os_openbsd "$@" || \
os_fedora "$@" || \
os_debian "$@" || \
Expand Down

0 comments on commit 997467a

Please sign in to comment.