inherit toolchain-funcs eutils DESCRIPTION="A daemon for virtual console terminals." HOMEPAGE="http://riemann.fmi.uni-sofia.bg/ngetty" SRC_URI="http://riemann.fmi.uni-sofia.bg/ngetty/ngetty-1.1.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~amd64" src_compile() { emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die 'emake failed' } src_install() { DESTTREE="/" dosbin {ngetty,ngetty-argv,ngetty-helper} || die 'dosbin failed' doman ngetty.8 || die 'doman failed' dodoc {CHANGES,README,README.upstart} || die 'dodoc failed' dosym ngetty.8 /usr/share/man/man8/ngetty-argv.8 || die 'dosym failed' dosym ngetty.8 /usr/share/man/man8/ngetty-helper.8 || die 'dosym failed' dodir /etc/ngetty || die 'dodir failed' insinto /etc/ngetty || die 'insinto failed' doins {Conf,sample.Conf,contrib/setup,Version} || 'doins failed' fperms 600 /etc/ngetty/Conf || die 'fperms Conf failed' fperms 744 /etc/ngetty/setup || doe 'fperms setup failed' } pkg_postinst() { ewarn "Don't forget to add a line to your /etc/inittab like" ewarn " ng:2345:respawn:/sbin/ngetty 1 2 3 4 5 6" ewarn "and to comment out any other getty running on those terminals." }