mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-02 03:30:48 +02:00
sonarqube-bin-8.4.1.35646.ebuild
This commit is contained in:
parent
3fb8deb445
commit
2a5d129b2a
6 changed files with 144 additions and 1 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DIST sonarqube-7.9.3.zip 209531101 BLAKE2B 5014574208ef97d98f0a262079bd153dffb5107dd2202da752d9ef3bab50325cdb27a53e3d9444a7792211821be452e82a85fbc89112000ee1de5a0159be4272 SHA512 7226eae35c9d6bec5df38f7aa14455ec73630a0ec32880b048fcf6166165e067c956590d7deda162f4bfbb73350ff840df393063031df50a3d76f1406905876a
|
||||
DIST sonarqube-8.3.1.34397.zip 229395147 BLAKE2B 059ef674fe92606f71c4bfa495caa17608516b8a94a77ba0d0ad574f8414d0afab3a85218ec57d29373ad56f362ea25a355c16bc814ed69de078a69da1e02c6a SHA512 d4d986c2acf0ea04143c0f228096598bbc4b5904da390044360f340805467faf28765410827c6a07d6dfe29cb802cd193710ad4274c9473cc5e46c238961ed93
|
||||
DIST sonarqube-8.4.1.35646.zip 231722436 BLAKE2B bf9399c5982cae16abefd5e458a4a1b4625980b1f1da2d5e1527bdfb507a5e18d228bff42581da5ce07e9bb6c6a099de549bc4382fd6dee35438c9e4edb113aa SHA512 01bfd26cd71f97181b37439507a9d8d342c13313ce38d506c104d8f16de2271600a91145dd486fce062b9129b1d60755727c3d82e4838cc66c80a25d9e9080a6
|
||||
|
|
|
|||
71
dev-util/sonarqube-bin/sonarqube-bin-8.4.1.35646.ebuild
Normal file
71
dev-util/sonarqube-bin/sonarqube-bin-8.4.1.35646.ebuild
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="SonarQube Community Edition is an open platform to manage code quality"
|
||||
HOMEPAGE="https://www.sonarqube.org/"
|
||||
LICENSE="LGPL-3"
|
||||
MY_PV="${PV/_alpha/M}"
|
||||
MY_PV="${MY_PV/_rc/-RC}"
|
||||
MY_P="sonarqube-${MY_PV}"
|
||||
SRC_URI="https://binaries.sonarsource.com/Distribution/sonarqube/${MY_P}.zip"
|
||||
RESTRICT="mirror"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="systemd"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DEPEND="acct-group/sonar
|
||||
acct-user/sonar
|
||||
app-arch/unzip"
|
||||
RDEPEND=">=virtual/jdk-1.8"
|
||||
|
||||
INSTALL_DIR="/opt/sonar"
|
||||
|
||||
QA_FLAGS_IGNORED="/opt/sonar/bin/linux-x86-64/wrapper
|
||||
/opt/sonar/bin/linux-x86-64/lib/libwrapper.so"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
# TODO remove unneeded files
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto ${INSTALL_DIR}
|
||||
doins -r bin conf data elasticsearch extensions lib logs temp web COPYING
|
||||
insinto ${INSTALL_DIR}/bin
|
||||
doins "${FILESDIR}"/linux-multiarch.sh
|
||||
|
||||
newconfd "${FILESDIR}/sonar.conf" sonar
|
||||
newinitd "${FILESDIR}/sonar.init" sonar
|
||||
|
||||
if use systemd; then
|
||||
systemd_dounit "${FILESDIR}"/sonar.service
|
||||
fi
|
||||
|
||||
fowners -R sonar:sonar ${INSTALL_DIR}
|
||||
|
||||
# fperms 755 "${INSTALL_DIR}/bin/linux-x86-32/sonar.sh"
|
||||
# fperms 755 "${INSTALL_DIR}/bin/linux-x86-32/wrapper"
|
||||
|
||||
fperms 755 "${INSTALL_DIR}/bin/linux-x86-64/sonar.sh"
|
||||
fperms 755 "${INSTALL_DIR}/bin/linux-x86-64/wrapper"
|
||||
|
||||
fperms 755 "${INSTALL_DIR}/bin/linux-multiarch.sh"
|
||||
|
||||
fperms -R 755 "${INSTALL_DIR}/elasticsearch"
|
||||
|
||||
# Protect Sonar conf on upgrade
|
||||
echo "CONFIG_PROTECT=\"${INSTALL_DIR}/conf\"" > "${T}/25sonar" || die
|
||||
doenvd "${T}/25sonar"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Please complete the upgrade using the following guideline:"
|
||||
einfo "https://docs.sonarqube.org/display/SONAR/Upgrading"
|
||||
}
|
||||
|
|
@ -1 +1,2 @@
|
|||
DIST sonar-scanner-cli-4.3.0.2102-linux.zip 42393648 BLAKE2B 5183571ddbd5af50a9746272d22f62b2482a82e05aa95966ae9d49308903b346dbfb2bd217c75d5df8bf81f67468963d0c461eea2b4d2de4d9fff3cc34ad81e8 SHA512 b24f15d2425560084928ec5fb18253b67b3c640c341766f036510332337d5e4d90f747b0ac2c0fc71064f4bea39064235094825be62bcdf8ab230a596f9212ae
|
||||
DIST sonar-scanner-cli-4.4.0.2170-linux.zip 42394020 BLAKE2B 0e6e75a246f94400347b23d98480eea4e06058c4f085ab4ac7b3148755cf24a4481ba3fe9dee07572a82dad1840118e9d1c90188d4832d033e506bf061ef3fe7 SHA512 08107612f77eba584dcad6d939d092b3934e382f32075c26687ab013402e2634cf4b6e3b3635d842e2a9120c9612d39051ca8c62b09303f47aa6ea21f6251bb5
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
--- a/sonar-scanner-4.0.0.1744-linux/bin/sonar-scanner.orig 2020-06-23 05:32:56.000000000 +0800
|
||||
+++ b/sonar-scanner-4.0.0.1744-linux/bin/sonar-scanner 2020-08-05 11:27:23.466043258 +0800
|
||||
@@ -37,7 +37,7 @@
|
||||
exit 1
|
||||
fi
|
||||
|
||||
-use_embedded_jre=true
|
||||
+use_embedded_jre=false
|
||||
if [ "$use_embedded_jre" = true ]; then
|
||||
export JAVA_HOME="$sonar_scanner_home/jre"
|
||||
fi
|
||||
|
|
@ -32,7 +32,7 @@ src_unpack() {
|
|||
|
||||
src_prepare() {
|
||||
if ! use embedded_jre; then
|
||||
epatch "${FILESDIR}/${PN}-system_jre.patch"
|
||||
eapply -p2 "${FILESDIR}/${PN}-system_jre.patch"
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
|
|
|
|||
59
dev-util/sonarscanner-bin/sonarscanner-bin-4.4.0.2170.ebuild
Normal file
59
dev-util/sonarscanner-bin/sonarscanner-bin-4.4.0.2170.ebuild
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="SonarQube Command-Line Scanner"
|
||||
HOMEPAGE="https://www.sonarqube.org/"
|
||||
LICENSE="LGPL-3"
|
||||
MY_PV="${PV/_alpha/M}"
|
||||
MY_PV="${MY_PV/_rc/-RC}"
|
||||
MY_P="sonar-scanner-cli-${MY_PV}-linux"
|
||||
SRC_URI="https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/${MY_P}.zip"
|
||||
RESTRICT="mirror"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="embedded_jre"
|
||||
|
||||
S="${WORKDIR}/sonar-scanner-${MY_PV}-linux"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND="!embedded_jre? ( >=virtual/jre-1.8 )"
|
||||
|
||||
INSTALL_DIR="/opt/sonar-scanner"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
# TODO remove unneeded files
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if ! use embedded_jre; then
|
||||
eapply -p2 "${FILESDIR}/${PN}-system_jre2.patch"
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto ${INSTALL_DIR}
|
||||
|
||||
if use embedded_jre; then
|
||||
doins -r bin conf jre lib
|
||||
fperms -R 755 "${INSTALL_DIR}/jre/bin"
|
||||
else
|
||||
doins -r bin conf lib
|
||||
fi
|
||||
|
||||
fperms -R 755 "${INSTALL_DIR}/bin"
|
||||
|
||||
dosym ${INSTALL_DIR}/bin/sonar-scanner /usr/bin/sonar-scanner
|
||||
dosym ${INSTALL_DIR}/bin/sonar-scanner-debug /usr/bin/sonar-scanner-debug
|
||||
|
||||
# Protect Sonar conf on upgrade
|
||||
echo "CONFIG_PROTECT=\"${INSTALL_DIR}/conf\"" > "${T}/25sonarcli" || die
|
||||
doenvd "${T}/25sonarcli"
|
||||
}
|
||||
Loading…
Reference in a new issue