# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="ledblink lets you control the keyboard LEDs." HOMEPAGE="http://www.bitplanet.de/unix/ledblink.html" SRC_URI="http://www.bitplanet.de/files/ledblink-0.85.tar.gz" RESTRICT="nomirror" LICENSE="GPL" SLOT="0" KEYWORDS="x86" IUSE="nonroot" DEPEND="" RDEPEND="" src_compile() { if use nonroot ; then epatch "${FILESDIR}"/ledblink-0.85.nonroot.patch.bz2 fi make || die "make failed" } src_install() { dobin ledblink || die "dobin failed" doman ledblink.1 newinitd "${FILESDIR}"/ledblink-0.85.init ledblink newconfd "${FILESDIR}"/ledblink-0.85.confd ledblink dodoc Changelog README } pkg_postinst() { if use nonroot ; then einfo "You chose the nonroot use flag. You must still make ledblink" einfo "suid root to use it as non-root user:" einfo einfo " chmod 4755 /usr/bin/ledblink" fi }