This commit is contained in:
Yury Martynov 2019-05-17 07:39:04 +03:00
parent f943b9485c
commit c037f74644
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
4 changed files with 76 additions and 0 deletions

1
net-misc/munin/Manifest Normal file
View file

@ -0,0 +1 @@
DIST munin-0.14.1.tar.gz 751967 BLAKE2B 0217f8c05b56c9645c10001b86328e32372227e30e09cb7d47f53bf9f377ccd96081042ff21701ec801199ad9de9f6368e68416c39781f9ab666ad237ca414dc SHA512 24561ad4888aae7d141ea3f0990091326989dac73aa0999eaaf7589eda0ae1c56a0f993d47b0cb21bc4f6d1f308985f4630dd81696b40cfc2434f6ed8fcbaad5

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1 @@
munin-9999.ebuild

View file

@ -0,0 +1,66 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6} )
inherit eutils python-single-r1
DESCRIPTION="Online hash checker for Virustotal and other services"
HOMEPAGE="https://github.com/Neo23x0/munin"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Neo23x0/munin"
else
SRC_URI="https://github.com/Neo23x0/munin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~mips ~x86"
fi
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
>=dev-python/colorama-0.3.9[${PYTHON_USEDEP}]
dev-python/future[${PYTHON_USEDEP}]
>=dev-python/selenium-3.9.0[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pymisp[${PYTHON_USEDEP}]
dev-python/ipy[${PYTHON_USEDEP}]"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
# Update warning messages
sed -e "s: munin.ini : /etc/${PN}/munin.ini :" \
-i *.py || die "sed filed!"
python_fix_shebang "${S}"
eapply_user
}
src_install() {
insinto /usr/share/${PN}
for x in lib *.py; do
doins -r ${x}
done
# The Gentoo repo have more packages using same name
for x in munin-checker munin-checker-host; do
make_wrapper "${x}" \
"python3 /usr/share/${PN}/${x//-checker/}.py -i /etc/${PN}/${PN}.ini"
done
insinto /etc/${PN}
doins ${PN}.ini
dodoc README.md
python_optimize "${D}"/usr/share/${PN}
}