Fixed repoman issues. Example configs should not be imposed as production configs btw.
This commit is contained in:
parent
e21b48b6d7
commit
944648157a
@ -5,6 +5,8 @@ EAPI=7
|
|||||||
|
|
||||||
inherit acct-group
|
inherit acct-group
|
||||||
|
|
||||||
|
KEYWORDS="~*"
|
||||||
|
|
||||||
DESCRIPTION="Sensu program group"
|
DESCRIPTION="Sensu program group"
|
||||||
ACCT_GROUP_ID=499
|
ACCT_GROUP_ID=499
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# Copyright 2019 Gentoo Authors
|
# Copyright 2020 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
inherit acct-user
|
inherit acct-user
|
||||||
|
|
||||||
|
KEYWORDS="~*"
|
||||||
|
|
||||||
DESCRIPTION="Sensu Monitoring Framework"
|
DESCRIPTION="Sensu Monitoring Framework"
|
||||||
ACCT_USER_ID=60
|
ACCT_USER_ID=60
|
||||||
ACCT_USER_GROUPS=( sensu )
|
ACCT_USER_GROUPS=( sensu )
|
||||||
|
@ -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}"
|
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
|
if use agent; then
|
||||||
go build -ldflags "${BUILD_SIGNATURE}" -o bin/sensu-agent ./cmd/sensu-agent >/dev/null
|
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
|
fi
|
||||||
if use backend; then
|
if use backend; then
|
||||||
go build -ldflags "${BUILD_SIGNATURE}" -o bin/sensu-backend ./cmd/sensu-backend >/dev/null
|
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
|
fi
|
||||||
go build -ldflags "${BUILD_SIGNATURE}" -o bin/sensuctl ./cmd/sensuctl >/dev/null
|
go build -ldflags "${BUILD_SIGNATURE}" -o bin/sensuctl ./cmd/sensuctl >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
if use agent; then
|
if use agent; then
|
||||||
exeinto /etc/init.d
|
doinitd "${FILESDIR}"/init.d/sensu-agent
|
||||||
doexe "${FILESDIR}"/init.d/sensu-agent
|
doconfd "${FILESDIR}"/conf.d/sensu-agent
|
||||||
insinto /etc/conf.d
|
|
||||||
doins "${FILESDIR}"/conf.d/sensu-agent
|
|
||||||
insinto /etc/sensu
|
insinto /etc/sensu
|
||||||
doins agent.yml
|
doins agent.yml.example
|
||||||
dosbin "${PN}-go-${PV}"/bin/sensu-agent
|
dosbin "${PN}-go-${PV}"/bin/sensu-agent
|
||||||
fi
|
fi
|
||||||
if use backend; then
|
if use backend; then
|
||||||
exeinto /etc/init.d
|
|
||||||
doexe "${FILESDIR}"/init.d/sensu-backend
|
doexe "${FILESDIR}"/init.d/sensu-backend
|
||||||
insinto /etc/conf.d
|
|
||||||
doins "${FILESDIR}"/conf.d/sensu-backend
|
doins "${FILESDIR}"/conf.d/sensu-backend
|
||||||
insinto /etc/sensu
|
insinto /etc/sensu
|
||||||
doins backend.yml
|
doins backend.yml.example
|
||||||
dosbin "${PN}-go-${PV}"/bin/sensu-backend
|
dosbin "${PN}-go-${PV}"/bin/sensu-backend
|
||||||
fi
|
fi
|
||||||
dosbin "${PN}-go-${PV}"/bin/sensuctl
|
dosbin "${PN}-go-${PV}"/bin/sensuctl
|
||||||
|
Loading…
Reference in New Issue
Block a user