# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # $Header: EAPI="6" inherit eutils git-r3 linux-info mount-boot DESCRIPTION="argononed: A replacement daemon for the Argon One Raspberry Pi case" HOMEPAGE="https://gitlab.com/DarkElvenAngel/argononed" EGIT_REPO_URI="https://gitlab.com/DarkElvenAngel/argononed.git" EGIT_BRANCH="0.3.x" EGIT_COMMIT="6302f1af0e65d6be5abf9855b8b1aeb12f5fe81d" LICENSE="GPL-3" SLOT="0" KEYWORDS="~arm ~arm64" IUSE="" DEPEND="dev-vcs/git sys-devel/gcc >=sys-apps/dtc-1.6.0 >=sys-devel/make-4.3" RDEPEND="${DEPEND}" pkg_setup() { if ! linux_config_exists; then eerror "Kernel configuration file doesn't exist." elif ! linux_chkconfig_present CONFIG_BCM2835_DEVGPIOMEM; then eerror "WARNING : CONFIG_BCM2835_DEVGPIOMEM not enabled in kernel." elif ! linux_chkconfig_present CONFIG_BCM_VCIO; then eerror "WARNING : CONFIG_BCM_VCIO not enabled in kernel." elif ! linux_chkconfig_present CONFIG_I2C_BCM2835; then eerror "WARNING : CONFIG_I2C_BCM2835 not enables in kernel." elif ! linux_chkconfig_present CONFIG_I2C; then eerror "WARNING : CONFIG_I2C not enables in kernel." fi } src_configure() { export USE_SYSFS_TEMP=/sys/class/hwmon/hwmon0/temp1_input ./configure --prefix=/usr } pkg_postinst() { einfo einfo "NOTE: You should enable argononed daemon with rc-update enable argononed now" || die "Enable daemon failed !" einfo }