# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="INotify based cron daemon" HOMEPAGE="http://incron.aiken.cz/" SRC_URI="http://inotify.aiken.cz/download/incron/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="${DEPEND}" src_compile() { if [ -r /proc/config.gz ]; then FLAG=`gzcat /proc/config.gz|grep INOTIFY=y|wc -l` if [ "${FLAG}" != "1" ]; then die "You do not have the INOTIFY kernel feature" fi else die "Cannot determine if you have INOTIFY enabled" fi epatch ${FILESDIR}/incron-0.4.0-gentoo.patch emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }