[arch-commits] Commit in opensearch-security-plugin/repos (2 files)

Leonidas Spyropoulos artafinde at gemini.archlinux.org
Wed Jan 19 02:01:33 UTC 2022


    Date: Wednesday, January 19, 2022 @ 02:01:32
  Author: artafinde
Revision: 1110277

archrelease: copy trunk to community-testing-x86_64

Added:
  opensearch-security-plugin/repos/community-testing-x86_64/
  opensearch-security-plugin/repos/community-testing-x86_64/PKGBUILD
    (from rev 1110276, opensearch-security-plugin/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: opensearch-security-plugin/repos/community-testing-x86_64/PKGBUILD (from rev 1110276, opensearch-security-plugin/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-01-19 02:01:32 UTC (rev 1110277)
@@ -0,0 +1,34 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-security-plugin
+pkgver=1.2.4.0
+pkgrel=1
+pkgdesc="OpenSearch Security Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/security-plugin"
+license=('Apache')
+depends=('bash')
+depends=('opensearch')
+makedepends=('java-environment=11' 'unzip' 'maven' 'git')
+source=("git+https://github.com/opensearch-project/security.git#tag=${pkgver}")
+sha256sums=('SKIP')
+
+prepare() {
+  cd "security"
+  sed -i "s|^    <version>${pkgver}-SNAPSHOT</version>$|    <version>${pkgver}</version>|" pom.xml
+  sed -i 's|^        <opensearch.version>\([0-9\.]*\)-SNAPSHOT</opensearch.version>$|        <opensearch.version>\1</opensearch.version>|' pom.xml
+}
+
+build() {
+  cd "security"
+  # TODO: Tests take forever and fail, find a way to skip integration tests
+  mvn clean package -Padvanced -DskipTests
+}
+
+package() {
+  install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-security"
+  cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-security"
+  unzip "${srcdir}/security/target/releases/opensearch-security-${pkgver}.zip"
+
+  install -Dm644 "${srcdir}/security/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}



More information about the arch-commits mailing list