imported from tree

Signed-off-by: Justin Lecher <jlec@gentoo.org>