Fix pgmon-1.0.1 ebuild
This commit is contained in:
parent
e6d8cba14e
commit
5a228b5c8b
@ -5,17 +5,16 @@ EAPI=8
|
|||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6..13} )
|
PYTHON_COMPAT=( python3_{6..13} )
|
||||||
|
|
||||||
inherit python-single-r1 systemd
|
inherit python-r1
|
||||||
|
|
||||||
DESCRIPTION="PostgreSQL monitoring bridge"
|
DESCRIPTION="PostgreSQL monitoring bridge"
|
||||||
HOMEPAGE="https://code2.shh-dot-com.org/james/pgmon"
|
HOMEPAGE="None"
|
||||||
|
|
||||||
LICENSE="BSD"
|
LICENSE="BSD"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
|
|
||||||
#SRC_URI="https://code2.shh-dot-com.org/james/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://code2.shh-dot-com.org/james/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
SRC_URI="${P}.tar.gz"
|
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
${PYTHON_DEPS}
|
${PYTHON_DEPS}
|
||||||
@ -26,37 +25,31 @@ DEPEND="
|
|||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND=""
|
BDEPEND=""
|
||||||
|
|
||||||
IUSE="-systemd"
|
RESTRICT="fetch"
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}"
|
S="${WORKDIR}/${PN}"
|
||||||
|
|
||||||
pkg_nofetch() {
|
pkg_nofetch() {
|
||||||
einfo "Please download"
|
einfo "Please download"
|
||||||
einfo " - ${P}.tar.bz2"
|
einfo " - ${P}.tgz"
|
||||||
einfo "from ${HOMEPAGE} and place it in your DISTDIR directory."
|
einfo "from ${HOMEPAGE} and place it in your DISTDIR directory."
|
||||||
einfo "The file should be owned by portage:portage"
|
einfo "The file needs to be renamed to ${P}.tar.gz."
|
||||||
}
|
einfo "The file should be owned by portage:portage."
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
# Don't run make install
|
default
|
||||||
#default
|
|
||||||
|
|
||||||
# Install init script
|
# Install init script
|
||||||
newinitd "openrc/pgmon.initd" pgmon
|
newinitd "openrc/pgmon.initd" pgmon
|
||||||
newconfd "openrc/pgmon.confd" pgmon
|
newconfd "openrc/pgmon.confd" pgmon
|
||||||
|
|
||||||
# Install systemd unit
|
# Install systemd unit
|
||||||
if use systemd ; then
|
|
||||||
systemd_dounit "systemd/pgmon.service"
|
systemd_dounit "systemd/pgmon.service"
|
||||||
fi
|
|
||||||
|
|
||||||
# Install script
|
# Install script
|
||||||
python_scriptinto /usr/bin
|
exeinto /usr/bin
|
||||||
python_newscript src/pgmon.py pgmon
|
newexe "pgmon.py" pgmon
|
||||||
|
|
||||||
# Install default config
|
# Install default config
|
||||||
diropts -o root -g root -m 0755
|
diropts -o root -g root -m 0755
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user