--- /usr/portage/app-i18n/fbterm/fbterm-1.7-r1.ebuild 2015-08-24 22:01:02.000000000 +0800 +++ fbterm-1.7-r1.ebuild 2015-11-22 19:29:21.936480769 +0800 @@ -3,7 +3,7 @@ # $Id$ EAPI="5" -inherit autotools-utils +inherit autotools-utils fcaps DESCRIPTION="Fast terminal emulator for the Linux framebuffer" HOMEPAGE="https://fbterm.googlecode.com/" @@ -12,10 +12,9 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="caps gpm video_cards_vesa" +IUSE="gpm video_cards_vesa" -RDEPEND="caps? ( sys-libs/libcap ) - gpm? ( sys-libs/gpm ) +RDEPEND="gpm? ( sys-libs/gpm ) video_cards_vesa? ( dev-libs/libx86 ) media-libs/fontconfig media-libs/freetype:2" @@ -39,14 +38,11 @@ autotools-utils_src_install $(type -P tic) -o "${ED}/usr/share/terminfo/" \ "${S}"/terminfo/fbterm || die "Failed to generate terminfo database" - if use caps; then - setcap "cap_sys_tty_config+ep" "${ED}"/usr/bin/fbterm - else - fperms u+s /usr/bin/fbterm - fi + use filecaps || fperms u+s /usr/bin/fbterm } pkg_postinst() { + fcaps "cap_sys_tty_config+ep" usr/bin/fbterm einfo einfo " ${PN} won't work with vga16fb. You have to use other native" einfo " framebuffer drivers or vesa driver."