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