mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 21:31:10 +02:00
prochunter: drop unmaintained package
This commit is contained in:
parent
4e728fbdba
commit
ee0217cc9d
2 changed files with 0 additions and 83 deletions
|
|
@ -1,8 +0,0 @@
|
|||
<?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>
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit python-r1 linux-mod
|
||||
|
||||
DESCRIPTION="Linux process hunter"
|
||||
HOMEPAGE="https://gitlab.com/nowayout/prochunter"
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/nowayout/prochunter"
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_COMMIT="94f703f71719bd70014f24835fd542e2b8b12ded"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT=0
|
||||
IUSE="kernel_linux"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/psutil[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
if use kernel_linux; then
|
||||
MODULE_NAMES="${PN}(misc:${S}:${S})"
|
||||
BUILD_TARGETS="clean all"
|
||||
|
||||
linux-mod_pkg_setup
|
||||
else
|
||||
die "Could not determine proper ${PN} package"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use kernel_linux; then
|
||||
# Change KMOD_PATH param
|
||||
sed -e "s:KMOD_PATH=\"./prochunter.ko\":KMOD_PATH=\"/lib/modules/${KV_FULL}/misc/prochunter.ko\":" \
|
||||
-i prochunter.py || die "sed failed!"
|
||||
|
||||
# Fix error message "fatal error: linux/sched/signal.h: No such file or directory"
|
||||
# removing "#include <linux/sched/signal.h>" line is not critical
|
||||
# for >=4.10 version of the kernel (https://gitlab.com/nowayout/prochunter/issues/1#note_46894766)
|
||||
if ! ver_test "$(ver_cut 1-2 ${KV_FULL})" -ge "4.10"; then
|
||||
sed -e "/#include <linux\/sched\/signal.h>/d" -i prochunter.c || die "sed failed!"
|
||||
fi
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use kernel_linux; then
|
||||
MAKEOPTS="-j1" linux-mod_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use kernel_linux && linux-mod_src_install
|
||||
|
||||
python_scriptinto /usr/sbin
|
||||
python_foreach_impl python_doscript ${PN}.py
|
||||
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use kernel_linux && linux-mod_pkg_postinst
|
||||
elog "\nSee documentation: https://gitlab.com/nowayout/prochunter/blob/master/README.md#how-to-use\n"
|
||||
}
|
||||
Loading…
Reference in a new issue