tyton: live ebuild

This commit is contained in:
blshkv 2019-02-13 14:23:32 +08:00
parent c5ce3f860e
commit 30878cd013
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F

View file

@ -0,0 +1,35 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-mod linux-info git-r3
DESCRIPTION="Kernel-Mode Rootkit Hunter"
HOMEPAGE="https://github.com/nbulischeck/tyton/"
EGIT_REPO_URI="https://github.com/nbulischeck/tyton.git"
EGIT_BRANCH="procfs-status"
LICENSE="GPL-3"
SLOT="0"
#https://github.com/nbulischeck/tyton/issues/19
#KEYWORDS="~amd64 ~x86"
IUSE=""
#S="${WORKDIR}/${PN}-${HASH_COMMIT}"
MODULE_NAMES="tyton(misc:${S}:${S})"
CONFIG_CHECK="NETFILTER_FAMILY_ARP"
#BUILD_PARAMS="-j1"
src_prepare() {
#change target from a current to selected kernel
sed -i "s#/lib/modules/\$(shell uname -r)#/lib/modules/${KV_FULL}#" Makefile
default
}
pkg_setup() {
linux-mod_pkg_setup
}