Skip to content

Commit

Permalink
Introduce _system_version_full for NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch00k committed Sep 10, 2013
1 parent 5806869 commit b3542d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions scripts/functions/requirements/netbsd
Expand Up @@ -7,8 +7,8 @@ requirements_netbsd_lib_installed()

requirements_netbsd_libs_install()
{
typeset _set _set_url _set_md5
_set_base_url="http://ftp.netbsd.org/pub/NetBSD/NetBSD-${_system_version}/${_system_arch/x86_64/amd64}/binary/sets"
typeset _set_base_url _set _set_url _set_md5
_set_base_url="http://ftp.netbsd.org/pub/NetBSD/NetBSD-${_system_version_full}/${_system_arch/x86_64/amd64}/binary/sets"
for _set in "$@"
do
_set_url="${_set_base_url}/${_set}.tgz"
Expand Down Expand Up @@ -42,10 +42,8 @@ requirements_netbsd_custom_lib_installed()

requirements_netbsd_install_custom()
{
typeset _major_version
_major_version="$(echo ${_system_version} | __rvm_awk -F. '{print $1"."$2}')"
__rvm_try_sudo \
PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/${_major_version}/All/" \
PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/${_system_version}/All/" \
pkg_add "$@" || return $?
}

Expand Down
3 changes: 2 additions & 1 deletion scripts/functions/utility_system
Expand Up @@ -156,7 +156,8 @@ __rvm_detect_system()
(NetBSD)
_system_type="BSD"
_system_name="NetBSD"
_system_version="$(uname -r)"
_system_version_full="$(uname -r)"
_system_version="$(echo ${_system_version_full} | \awk -F. '{print $1"."$2}')"
;;
(Darwin)
_system_type="Darwin"
Expand Down

0 comments on commit b3542d9

Please sign in to comment.