Skip to content

Instantly share code, notes, and snippets.

@jaypeche
Created April 22, 2023 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaypeche/c63827b2d45e9f8ea75efdd2961a9201 to your computer and use it in GitHub Desktop.
Save jaypeche/c63827b2d45e9f8ea75efdd2961a9201 to your computer and use it in GitHub Desktop.
# 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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment