mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 13:51:00 +02:00
proposing update for #363
This commit is contained in:
parent
36b02f473b
commit
a3ddeca3c4
4 changed files with 43 additions and 5 deletions
|
|
@ -1,4 +1 @@
|
|||
AUX linux-multiarch.sh 239 BLAKE2B 021a0d76dece1cec52818b9e84d24631aea40c792956e39822b29af7e598948baacbfd0b2f38c54e0d607b8572b64a32a9e9b9ac060f4d9b5b8f46e0f3ead696 SHA512 7797af4a694cf231a5f45b123cd4750244f812c5a7ced617560fa78bc29afe7aa9d4187147dd4ef063ab7b34b536997455cc30f3a7b740aa5b6d12166abb88fe
|
||||
AUX sonar.service 177 BLAKE2B 5d98db7e2c0739c1e8ba7a0fdf02311b1ee63e62d9155cafe6073ddfabb571a2de6614b08de4d88b7fbfe871ac8586f398fce2b81a0af72ed835b62979816fa3 SHA512 b005fa411eb45842f54d1cb17a109d1416eddd19e42513bcb9e96e3d0439f1e9466340c78564ac72dfaded3d206799c0d0d1dbb88b51ffaafd6910af7b98ed58
|
||||
DIST sonarqube-7.2.1.zip 158122606 BLAKE2B 49ccc9a453242d0d38b2ac85bad8aeb573edbf8dae583abe5345fd30d9f8248dfdb3d8a82d30a0c7ac5e31843d4cfb1dabe1d8121a6bdd27d352837644a7a790 SHA512 7034679e82df1dc87e2999e2ead4629c7348f432e7bf050664e492ce7cf4ca9103243837361a38a38c653355e386aafff0bb4ccf607157bd3895efc806a00cb2
|
||||
EBUILD sonarqube-bin-7.2.1.ebuild 1700 BLAKE2B cf9f806f5b236ad33b9ac2e82e5db61da81844fa3d74ba26f950dc4318365a66165eacc709e69b2d0b9ba1f5312b331e281b546cc78608abbac33c763e5046f0 SHA512 eddb8d4670cd12180cdac84afa0ce97cb6682d31938261d40d5a3298192e3ad2c3796331dec328a8713408e2a9627965ab8e2f64d3ab2430c700bf8ef768776d
|
||||
|
|
|
|||
7
dev-util/sonarqube-bin/files/sonar.conf
Normal file
7
dev-util/sonarqube-bin/files/sonar.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Config file for sonar init script
|
||||
USER="sonar"
|
||||
GROUP="sonar"
|
||||
APP_DIR="/opt/sonar"
|
||||
29
dev-util/sonarqube-bin/files/sonar.init
Normal file
29
dev-util/sonarqube-bin/files/sonar.init
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
run_dir="/opt/sonar"
|
||||
command="/opt/sonar/bin/linux-multiarch.sh"
|
||||
pidfile="$run_dir/sonarr.pid"
|
||||
etc_dir="/etc/sonarqube"
|
||||
log_dir="/var/log/sonarqube"
|
||||
log_file="sonarr.log"
|
||||
|
||||
start() {
|
||||
ebegin "Starting SonarQube"
|
||||
|
||||
start-stop-daemon --start --background --make-pidfile --pidfile ${pidfile} \
|
||||
-u ${USER} -g ${GROUP} --exec ${command} -- --daemon \
|
||||
--log=${log_dir}/${log_file}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping SonarQube"
|
||||
start-stop-daemon --stop --pidfile ${pidfile} --retry 15
|
||||
eend $?
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ SRC_URI="https://sonarsource.bintray.com/Distribution/sonarqube/${MY_P}.zip"
|
|||
RESTRICT="mirror"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE=""
|
||||
IUSE="systemd"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
|
|
@ -44,7 +44,12 @@ src_install() {
|
|||
insinto ${INSTALL_DIR}/bin
|
||||
doins "${FILESDIR}"/linux-multiarch.sh
|
||||
|
||||
systemd_dounit "${FILESDIR}"/sonar.service
|
||||
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}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue