diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/metadata/proteanos.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh index acc80a3..17198e7 100644 --- a/lib/metadata/proteanos.sh +++ b/lib/metadata/proteanos.sh @@ -110,3 +110,53 @@ _ob_get_system_plat_proteanos() _ob_return 0 return ${?} } + +_ob_get_system_path_proteanos() +{ + _ob_local _obgsppro_path_id + + _obgsppro_path_id="${1}" + shift 1 + + case "${_obgsppro_path_id}" in + 'package-source') + # source version + if [ ${#} -eq 2 ]; then + printf '/usr/src/%s_%s' "${1}" "${2}" + else + _ob_return 125 + return ${?} + fi + ;; + 'package-docs') + # source version + if [ ${#} -eq 2 ]; then + printf '/usr/share/doc/%s' "${1}" + else + _ob_return 125 + return ${?} + fi + ;; + 'buildflags') + # arch + if [ ${#} -eq 1 ]; then + printf '/usr/share/opkbuild/buildflags/%s' "${1}" + else + _ob_return 125 + return ${?} + fi + ;; + 'platconf') + # source version plat + if [ ${#} -eq 3 ]; then + printf '/usr/share/platconf/%s/%s' "${3}" "${1}" + else + _ob_return 125 + return ${?} + fi + ;; + esac + + _ob_return 0 + return ${?} +} |