My personal Gentoo overlay published primarily in order to make x11-terms/cool-retro-term available to the community. It has a number of other ebuilds now - mostly version-bumped or slightly extended stuff from other overlays.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
gentoo-overlay/sys-apps/ksmtuned/ksmtuned-9999.ebuild

53 lines
927 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit linux-info git-r3 autotools epatch
DESCRIPTION="Simple script to tune whether and with what vigor ksm searches for dup pages"
HOMEPAGE="https://github.com/ksmtuned/ksmtuned"
EGIT_REPO_URI="${HOMEPAGE}.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
kernel_check() {
CONFIG_CHECK="KSM"
use kernel_linux && check_extra_config
}
src_prepare() {
cp ${FILESDIR}/*.{am,ac} ${S}
cp ${FILESDIR}/src/*.am ${S}/src
epatch "${FILESDIR}/001-sysconfdir.patch"
eautoreconf
}
src_configure() {
econf
}
src_compile() {
emake
}
src_install() {
dosbin src/ksmctl
newsbin src/ksmtuned.sh.in ksmtuned
newconfd data/sysconfig/ksm ksm
insinto /etc
doins data/ksmtuned.conf
newinitd ${FILESDIR}/initd_ksmtuned ksmtuned
newinitd ${FILESDIR}/initd_ksm ksm
#dodoc TODO
}