a newer version of sonar is in the godin overlay: https://github.com/Godin/gentoo-overlay

This commit is contained in:
Manuel Friedli 2014-05-04 23:26:42 +02:00
parent 1d92a6d540
commit ac7c020ecd
3 changed files with 0 additions and 100 deletions

View file

@ -1,3 +0,0 @@
AUX init.sh 480 SHA256 115075e9da99f4f4a74f7b5fc55d2ae4fad0ff52b0622a49a434395b5caf7058 SHA512 70c0d5571da407d81e040609a28fdf4dfa69f0d0b71f126b3fa9314ab2d30250accfe14cf738e1802e58ae8609414a84254e8bcf02a61aa0067f915f46245773 WHIRLPOOL 0fe9d8cfcaaa74e7b158d947757aac593bbcef5767f60b3d7e98ca7a40f505559e859fcae9254f8c857a27098155282227e779f171fec2419f8194ab44aca686
DIST sonarqube-4.1.2.zip 73927521 SHA256 3789f35c18ccb5c4d141140bed31e6b54a68c986c98ee3e7ad0fc56374e96d0c SHA512 e28c9e393066bb4a9088f979e87e0db785f5f685ad66b7e91e637f90127a49c051623080062e10eac5b26414caddfe7a29f12731bcb760ccaed609a835e8bbf8 WHIRLPOOL 98786936a67e7678e402641e17ffbe5ec66541525c29fbe899c53204f89983abf821d1dcba6799a66c287dc64171ccbd13ed1ea31860e57fa7180c8333808edc
EBUILD sonar-bin-4.1.2.ebuild 1486 SHA256 7113d53a4993ebc4d6c22efc56f62f66f9ae93641ca193ef830af945fdedbc14 SHA512 8e1fd730a4bd713d33e005f2f56d5883e933f7d4a6855ec164c3f44deb58594462a199a953164e724d04db5406df75d55ebd5c90075ebb48a5037fb6a895cc52 WHIRLPOOL abfa72b02f0b7b6af971637b949bdcd2a280264a533dbd282ca3c1cb55b0823027d60aa0574d297bd005728176487a56bd88a568b7a21ed7f336642ec4eec42b

View file

@ -1,33 +0,0 @@
#!/sbin/runscript
depend() {
need net
use dns logger
}
RUN_AS=sonar
MACHINE_TYPE=`getconf LONG_BIT`
if [ "${MACHINE_TYPE}" = "64" ]; then
JSW=/opt/sonar/bin/linux-x86-64/sonar.sh
else
JSW=/opt/sonar/bin/linux-x86-32/sonar.sh
fi
checkconfig() {
return 0
}
start() {
checkconfig || return 1
ebegin "Starting ${SVCNAME}"
su $RUN_AS -c "$JSW start"
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
su $RUN_AS -c "$JSW stop"
eend $?
}

View file

@ -1,64 +0,0 @@
EAPI=5
inherit java-pkg-2 user
DESCRIPTION="SonarQube is an open platform to manage code quality."
HOMEPAGE="http://sonarsource.org/"
LICENSE="LGPL-3"
MY_PV="${PV/_alpha/M}"
MY_PV="${MY_PV/_rc/-RC}"
MY_P="sonarqube-${MY_PV}"
SRC_URI="http://dist.sonar.codehaus.org/${MY_P}.zip"
RESTRICT="mirror"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
S="${WORKDIR}/${MY_P}"
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jdk-1.5"
INSTALL_DIR="/opt/sonar"
pkg_setup() {
#enewgroup <name> [gid]
enewgroup sonar
#enewuser <user> [uid] [shell] [homedir] [groups] [params]
enewuser sonar -1 /bin/bash /opt/sonar "sonar"
}
src_unpack() {
unpack ${A}
cd "${S}"
# TODO remove unneded files
# Fix permissions
chmod -R a-x,a+X conf data extensions lib web COPYING
# Fix EOL in configuration files
for i in conf/* ; do
awk '{ sub("\r$", ""); print }' $i > $i.new
mv $i.new $i
done
}
src_install() {
insinto ${INSTALL_DIR}
doins -r bin conf data extensions lib logs web COPYING
newinitd "${FILESDIR}/init.sh" sonar
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"
# Protect Sonar conf on upgrade
echo "CONFIG_PROTECT=\"${INSTALL_DIR}/conf\"" > "${T}/25sonar" || die
doenvd "${T}/25sonar"
}