Fixed repoman issues. Example configs should not be imposed as production configs btw.

This commit is contained in:
grepwood 2020-05-10 16:01:22 +02:00
parent e21b48b6d7
commit 944648157a
3 changed files with 11 additions and 11 deletions

View File

@ -5,6 +5,8 @@ EAPI=7
inherit acct-group
KEYWORDS="~*"
DESCRIPTION="Sensu program group"
ACCT_GROUP_ID=499
SLOT="0"

View File

@ -1,10 +1,12 @@
# Copyright 2019 Gentoo Authors
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
KEYWORDS="~*"
DESCRIPTION="Sensu Monitoring Framework"
ACCT_USER_ID=60
ACCT_USER_GROUPS=( sensu )

View File

@ -147,32 +147,28 @@ src_unpack() {
local BUILD_SIGNATURE="-X github.com/sensu/sensu-go/version.Version=${PV} -X github.com/sensu/sensu-go/version.BuildDate=${TODAY}"
if use agent; then
go build -ldflags "${BUILD_SIGNATURE}" -o bin/sensu-agent ./cmd/sensu-agent >/dev/null
cp "${DISTDIR}"/"${PN}"_"${PV}"_agent.yml "${S}"/agent.yml
cp "${DISTDIR}"/"${PN}"_"${PV}"_agent.yml "${S}"/agent.yml.example
fi
if use backend; then
go build -ldflags "${BUILD_SIGNATURE}" -o bin/sensu-backend ./cmd/sensu-backend >/dev/null
cp "${DISTDIR}"/"${PN}"_"${PV}"_backend.yml "${S}"/backend.yml
cp "${DISTDIR}"/"${PN}"_"${PV}"_backend.yml "${S}"/backend.yml.example
fi
go build -ldflags "${BUILD_SIGNATURE}" -o bin/sensuctl ./cmd/sensuctl >/dev/null
}
src_install() {
if use agent; then
exeinto /etc/init.d
doexe "${FILESDIR}"/init.d/sensu-agent
insinto /etc/conf.d
doins "${FILESDIR}"/conf.d/sensu-agent
doinitd "${FILESDIR}"/init.d/sensu-agent
doconfd "${FILESDIR}"/conf.d/sensu-agent
insinto /etc/sensu
doins agent.yml
doins agent.yml.example
dosbin "${PN}-go-${PV}"/bin/sensu-agent
fi
if use backend; then
exeinto /etc/init.d
doexe "${FILESDIR}"/init.d/sensu-backend
insinto /etc/conf.d
doins "${FILESDIR}"/conf.d/sensu-backend
insinto /etc/sensu
doins backend.yml
doins backend.yml.example
dosbin "${PN}-go-${PV}"/bin/sensu-backend
fi
dosbin "${PN}-go-${PV}"/bin/sensuctl