mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
sonarqube-bin-8.7.0.41497.ebuild
This commit is contained in:
parent
62a27a9f80
commit
cc411ded72
3 changed files with 74 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
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
|
||||
DIST sonarqube-8.7.0.41497.zip 255910597 BLAKE2B 2f90ecc153b07580acf3c1c97a600c4f77061b8e3c92d104469e43576459f0342afa6305bd74e3baf225fe6ef178ac5014751c17438d48f7dfe45b5e67aca46f SHA512 a0c5a5e4b2766c1c1db6e6512e1096c3d558bf740b43a88f95587a0a2598ad36095c570cd999f5812a5e4542788a8cb3aa3a860859f816fd4095397ebd4845be
|
||||
|
|
|
|||
71
dev-util/sonarqube-bin/sonarqube-bin-8.7.0.41497.ebuild
Normal file
71
dev-util/sonarqube-bin/sonarqube-bin-8.7.0.41497.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"
|
||||
}
|
||||
|
|
@ -19,6 +19,8 @@ dev-util/recaf-bin
|
|||
=dev-util/redasm-2*
|
||||
~dev-util/unicorn-1.0.2_rc3
|
||||
|
||||
dev-util/sonarqube-bin
|
||||
|
||||
# Gentoo
|
||||
~dev-util/opencl-headers-2020.03.13-r1
|
||||
dev-lang/vala:0.42
|
||||
|
|
|
|||
Loading…
Reference in a new issue