[arch-commits] Commit in opensearch-dashboards-security-plugin/repos/community-x86_64 (2 files)
Date: Thursday, September 1, 2022 @ 21:00:57 Author: hashworks Revision: 1290452 archrelease: copy trunk to community-x86_64 Added: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1290451, opensearch-dashboards-security-plugin/trunk/PKGBUILD) Deleted: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 108 ++--- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2022-09-01 21:00:53 UTC (rev 1290451) +++ PKGBUILD2022-09-01 21:00:57 UTC (rev 1290452) @@ -1,54 +0,0 @@ -# Maintainer: Justin Kromlinger - -pkgname='opensearch-dashboards-security-plugin' -_pluginname='security-dashboards-plugin' -pkgver=2.1.0.0 -_dashboardsver=2.1.0 -pkgrel=1 -pkgdesc='OpenSearch Dashboards Security Plugin' -url='https://opensearch.org/docs/latest/security-plugin' -arch=('x86_64') -license=('Apache') -depends=("opensearch-dashboards=${_dashboardsver}") -makedepends=('yarn' 'python' 'git') -options=('!strip' 'emptydirs') -source=( - "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; - "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; -) -sha256sums=('SKIP' -'SKIP') - -prepare() { - nodeVersion="$(node -v)" - # Yes, you support this version. You just don't know it yet. - sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ -"${_pluginname}/package.json" \ -"OpenSearch-Dashboards/package.json" -} - -build() { - mv "${_pluginname}" "OpenSearch-Dashboards/plugins" - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - yarn osd bootstrap - yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP -} - -check() { - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - #yarn test:jest_server # integration tests - yarn test:jest_ui -} - -package() { - cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" - - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete -} - -# vim: ts=2 sw=2 et: Copied: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1290451, opensearch-dashboards-security-plugin/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2022-09-01 21:00:57 UTC (rev 1290452) @@ -0,0 +1,54 @@ +# Maintainer: Justin Kromlinger + +pkgname='opensearch-dashboards-security-plugin' +_pluginname='security-dashboards-plugin' +pkgver=2.2.1.0 +_dashboardsver=2.2.1 +pkgrel=1 +pkgdesc='OpenSearch Dashboards Security Plugin' +url='https://opensearch.org/docs/latest/security-plugin' +arch=('x86_64') +license=('Apache') +depends=("opensearch-dashboards=${_dashboardsver}") +makedepends=('yarn' 'python' 'git') +options=('!strip' 'emptydirs') +source=( + "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; + "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; +) +sha256sums=('SKIP' +'SKIP') + +prepare() { + nodeVersion="$(node -v)" + # Yes, you support this version. You just don't know it yet. + sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ +"${_pluginname}/package.json" \ +"OpenSearch-Dashboards/package.json" +} + +build() { + mv "${_pluginname}" "OpenSearch-Dashboards/plugins" + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + yarn osd bootstrap + yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP +} + +check() { + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + #yarn test:jest_server # integration tests + yarn test:jest_ui +} + +package() { + cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in opensearch-dashboards-security-plugin/repos/community-x86_64 (2 files)
Date: Monday, July 11, 2022 @ 09:15:33 Author: artafinde Revision: 1249521 archrelease: copy trunk to community-x86_64 Added: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1249520, opensearch-dashboards-security-plugin/trunk/PKGBUILD) Deleted: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 108 ++--- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2022-07-11 09:15:28 UTC (rev 1249520) +++ PKGBUILD2022-07-11 09:15:33 UTC (rev 1249521) @@ -1,54 +0,0 @@ -# Maintainer: Justin Kromlinger - -pkgname='opensearch-dashboards-security-plugin' -_pluginname='security-dashboards-plugin' -pkgver=2.0.1.0 -_dashboardsver=2.0.1 -pkgrel=1 -pkgdesc='OpenSearch Dashboards Security Plugin' -url='https://opensearch.org/docs/latest/security-plugin' -arch=('x86_64') -license=('Apache') -depends=("opensearch-dashboards=${_dashboardsver}") -makedepends=('yarn' 'python' 'git') -options=('!strip' 'emptydirs') -source=( - "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; - "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; -) -sha256sums=('SKIP' -'SKIP') - -prepare() { - nodeVersion="$(node -v)" - # Yes, you support this version. You just don't know it yet. - sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ -"${_pluginname}/package.json" \ -"OpenSearch-Dashboards/package.json" -} - -build() { - mv "${_pluginname}" "OpenSearch-Dashboards/plugins" - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - yarn osd bootstrap - yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP -} - -check() { - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - #yarn test:jest_server # integration tests - yarn test:jest_ui -} - -package() { - cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" - - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete -} - -# vim: ts=2 sw=2 et: Copied: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1249520, opensearch-dashboards-security-plugin/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2022-07-11 09:15:33 UTC (rev 1249521) @@ -0,0 +1,54 @@ +# Maintainer: Justin Kromlinger + +pkgname='opensearch-dashboards-security-plugin' +_pluginname='security-dashboards-plugin' +pkgver=2.1.0.0 +_dashboardsver=2.1.0 +pkgrel=1 +pkgdesc='OpenSearch Dashboards Security Plugin' +url='https://opensearch.org/docs/latest/security-plugin' +arch=('x86_64') +license=('Apache') +depends=("opensearch-dashboards=${_dashboardsver}") +makedepends=('yarn' 'python' 'git') +options=('!strip' 'emptydirs') +source=( + "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; + "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; +) +sha256sums=('SKIP' +'SKIP') + +prepare() { + nodeVersion="$(node -v)" + # Yes, you support this version. You just don't know it yet. + sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ +"${_pluginname}/package.json" \ +"OpenSearch-Dashboards/package.json" +} + +build() { + mv "${_pluginname}" "OpenSearch-Dashboards/plugins" + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + yarn osd bootstrap + yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP +} + +check() { + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + #yarn test:jest_server # integration tests + yarn test:jest_ui +} + +package() { + cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in opensearch-dashboards-security-plugin/repos/community-x86_64 (2 files)
Date: Tuesday, June 21, 2022 @ 08:48:01 Author: hashworks Revision: 1238790 archrelease: copy trunk to community-x86_64 Added: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1238789, opensearch-dashboards-security-plugin/trunk/PKGBUILD) Deleted: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 108 ++--- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2022-06-21 08:47:58 UTC (rev 1238789) +++ PKGBUILD2022-06-21 08:48:01 UTC (rev 1238790) @@ -1,54 +0,0 @@ -# Maintainer: Justin Kromlinger - -pkgname='opensearch-dashboards-security-plugin' -_pluginname='security-dashboards-plugin' -pkgver=2.0.0.0 -_dashboardsver=2.0.0 -pkgrel=1 -pkgdesc='OpenSearch Dashboards Security Plugin' -url='https://opensearch.org/docs/latest/security-plugin' -arch=('x86_64') -license=('Apache') -depends=("opensearch-dashboards=${_dashboardsver}") -makedepends=('yarn' 'python' 'git') -options=('!strip' 'emptydirs') -source=( - "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; - "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; -) -sha256sums=('SKIP' -'SKIP') - -prepare() { - nodeVersion="$(node -v)" - # Yes, you support this version. You just don't know it yet. - sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ -"${_pluginname}/package.json" \ -"OpenSearch-Dashboards/package.json" -} - -build() { - mv "${_pluginname}" "OpenSearch-Dashboards/plugins" - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - yarn osd bootstrap - yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP -} - -check() { - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - #yarn test:jest_server # integration tests - yarn test:jest_ui -} - -package() { - cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" - - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete -} - -# vim: ts=2 sw=2 et: Copied: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1238789, opensearch-dashboards-security-plugin/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2022-06-21 08:48:01 UTC (rev 1238790) @@ -0,0 +1,54 @@ +# Maintainer: Justin Kromlinger + +pkgname='opensearch-dashboards-security-plugin' +_pluginname='security-dashboards-plugin' +pkgver=2.0.1.0 +_dashboardsver=2.0.1 +pkgrel=1 +pkgdesc='OpenSearch Dashboards Security Plugin' +url='https://opensearch.org/docs/latest/security-plugin' +arch=('x86_64') +license=('Apache') +depends=("opensearch-dashboards=${_dashboardsver}") +makedepends=('yarn' 'python' 'git') +options=('!strip' 'emptydirs') +source=( + "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; + "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; +) +sha256sums=('SKIP' +'SKIP') + +prepare() { + nodeVersion="$(node -v)" + # Yes, you support this version. You just don't know it yet. + sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ +"${_pluginname}/package.json" \ +"OpenSearch-Dashboards/package.json" +} + +build() { + mv "${_pluginname}" "OpenSearch-Dashboards/plugins" + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + yarn osd bootstrap + yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP +} + +check() { + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + #yarn test:jest_server # integration tests + yarn test:jest_ui +} + +package() { + cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in opensearch-dashboards-security-plugin/repos/community-x86_64 (2 files)
Date: Saturday, May 28, 2022 @ 03:04:03 Author: hashworks Revision: 1210938 archrelease: copy trunk to community-x86_64 Added: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1210937, opensearch-dashboards-security-plugin/trunk/PKGBUILD) Deleted: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 108 ++--- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2022-05-28 03:04:00 UTC (rev 1210937) +++ PKGBUILD2022-05-28 03:04:03 UTC (rev 1210938) @@ -1,54 +0,0 @@ -# Maintainer: Justin Kromlinger - -pkgname='opensearch-dashboards-security-plugin' -_pluginname='security-dashboards-plugin' -pkgver=1.3.2.0 -_dashboardsver=1.3.2 -pkgrel=1 -pkgdesc='OpenSearch Dashboards Security Plugin' -url='https://opensearch.org/docs/latest/security-plugin' -arch=('x86_64') -license=('Apache') -depends=("opensearch-dashboards=${_dashboardsver}") -makedepends=('yarn' 'python' 'git') -options=('!strip' 'emptydirs') -source=( - "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; - "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; -) -sha256sums=('SKIP' -'SKIP') - -prepare() { - nodeVersion="$(node -v)" - # Yes, you support this version. You just don't know it yet. - sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ -"${_pluginname}/package.json" \ -"OpenSearch-Dashboards/package.json" -} - -build() { - mv "${_pluginname}" "OpenSearch-Dashboards/plugins" - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - yarn osd bootstrap - yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP -} - -check() { - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - #yarn test:jest_server # integration tests - yarn test:jest_ui -} - -package() { - cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" - - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete -} - -# vim: ts=2 sw=2 et: Copied: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1210937, opensearch-dashboards-security-plugin/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2022-05-28 03:04:03 UTC (rev 1210938) @@ -0,0 +1,54 @@ +# Maintainer: Justin Kromlinger + +pkgname='opensearch-dashboards-security-plugin' +_pluginname='security-dashboards-plugin' +pkgver=2.0.0.0 +_dashboardsver=2.0.0 +pkgrel=1 +pkgdesc='OpenSearch Dashboards Security Plugin' +url='https://opensearch.org/docs/latest/security-plugin' +arch=('x86_64') +license=('Apache') +depends=("opensearch-dashboards=${_dashboardsver}") +makedepends=('yarn' 'python' 'git') +options=('!strip' 'emptydirs') +source=( + "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; + "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; +) +sha256sums=('SKIP' +'SKIP') + +prepare() { + nodeVersion="$(node -v)" + # Yes, you support this version. You just don't know it yet. + sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ +"${_pluginname}/package.json" \ +"OpenSearch-Dashboards/package.json" +} + +build() { + mv "${_pluginname}" "OpenSearch-Dashboards/plugins" + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + yarn osd bootstrap + yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP +} + +check() { + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + #yarn test:jest_server # integration tests + yarn test:jest_ui +} + +package() { + cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in opensearch-dashboards-security-plugin/repos/community-x86_64 (2 files)
Date: Wednesday, May 11, 2022 @ 19:32:55 Author: hashworks Revision: 1198377 archrelease: copy trunk to community-x86_64 Added: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1198376, opensearch-dashboards-security-plugin/trunk/PKGBUILD) Deleted: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 110 + 1 file changed, 54 insertions(+), 56 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2022-05-11 19:32:52 UTC (rev 1198376) +++ PKGBUILD2022-05-11 19:32:55 UTC (rev 1198377) @@ -1,56 +0,0 @@ -# Maintainer: Justin Kromlinger - -pkgname='opensearch-dashboards-security-plugin' -_pluginname='security-dashboards-plugin' -pkgver=1.2.0.0 -_dashboardsver=1.2.0 -pkgrel=1 -pkgdesc='OpenSearch Dashboards Security Plugin' -url='https://opensearch.org/docs/latest/security-plugin' -arch=('x86_64') -license=('Apache') -depends=('opensearch-dashboards') -makedepends=('yarn' 'python' 'git') -options=('!strip' 'emptydirs') -source=( - "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; - "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; -) -sha256sums=( - 'SKIP' - 'SKIP' -) - -prepare() { - nodeVersion="$(node -v)" - # Yes, you support this version. You just don't know it yet. - sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ -"${_pluginname}/package.json" \ -"OpenSearch-Dashboards/package.json" -} - -build() { - mv "${_pluginname}" "OpenSearch-Dashboards/plugins" - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - yarn osd bootstrap - yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP -} - -check() { - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - #yarn test:jest_server # integration tests - yarn test:jest_ui -} - -package() { - cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" - - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete -} - -# vim: ts=2 sw=2 et: Copied: opensearch-dashboards-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1198376, opensearch-dashboards-security-plugin/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2022-05-11 19:32:55 UTC (rev 1198377) @@ -0,0 +1,54 @@ +# Maintainer: Justin Kromlinger + +pkgname='opensearch-dashboards-security-plugin' +_pluginname='security-dashboards-plugin' +pkgver=1.3.2.0 +_dashboardsver=1.3.2 +pkgrel=1 +pkgdesc='OpenSearch Dashboards Security Plugin' +url='https://opensearch.org/docs/latest/security-plugin' +arch=('x86_64') +license=('Apache') +depends=("opensearch-dashboards=${_dashboardsver}") +makedepends=('yarn' 'python' 'git') +options=('!strip' 'emptydirs') +source=( + "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}; + "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}; +) +sha256sums=('SKIP' +'SKIP') + +prepare() { + nodeVersion="$(node -v)" + # Yes, you support this version. You just don't know it yet. + sed -i "s/\"node\": \"[0-9\.]*\",/\"node\": \"${nodeVersion:1}\",/" \ +"${_pluginname}/package.json" \ +"OpenSearch-Dashboards/package.json" +} + +build() { + mv "${_pluginname}" "OpenSearch-Dashboards/plugins" + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + yarn osd bootstrap + yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP +} + +check() { + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + #yarn test:jest_server # integration tests + yarn test:jest_ui +} + +package() { + cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}" + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete +} + +# vim: ts=2 sw=2 et: