base functions for Gentoo systems