diff -Nur sys-process/incron-old/ChangeLog sys-process/incron/ChangeLog --- sys-process/incron-old/ChangeLog 1969-12-31 19:00:00.000000000 -0500 +++ sys-process/incron/ChangeLog 2007-07-07 11:23:37.000000000 -0400 @@ -0,0 +1,9 @@ +# ChangeLog for sys-process/incron +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*incron-0.5.6 (07 Jul 2007) + +07 Jul 2007; Ryan Reich incron-0.5.6.ebuild, Manifest, +files/fcrontabs, files/incron, files/incron-periodic-fcrontabs, +files/digest-incron-0.5.6: Created ebuild. diff -Nur sys-process/incron-old/files/digest-incron-0.5.6 sys-process/incron/files/digest-incron-0.5.6 --- sys-process/incron-old/files/digest-incron-0.5.6 1969-12-31 19:00:00.000000000 -0500 +++ sys-process/incron/files/digest-incron-0.5.6 2007-07-07 00:32:42.000000000 -0400 @@ -0,0 +1,3 @@ +MD5 03875dbd6578ff1ad54e59d17218c562 incron-0.5.6.tar.bz2 113815 +RMD160 c9b44a310f69cd06d87b6a10a2c81f130bdd7808 incron-0.5.6.tar.bz2 113815 +SHA256 845f8b0736e7f7555d0a15eb63bd4841dd363ccb2976a09957535c9c4e991942 incron-0.5.6.tar.bz2 113815 diff -Nur sys-process/incron-old/files/fcrontabs sys-process/incron/files/fcrontabs --- sys-process/incron-old/files/fcrontabs 1969-12-31 19:00:00.000000000 -0500 +++ sys-process/incron/files/fcrontabs 2007-07-07 12:31:27.000000000 -0400 @@ -0,0 +1,7 @@ +/etc/crontab IN_CLOSE_WRITE,IN_NO_LOOP check_system_crontabs -s 0 +/etc/fcrontab IN_CLOSE_WRITE,IN_NO_LOOP check_system_crontabs -s 0 +/etc/cron.d IN_MOVE,IN_CREATE,IN_DELETE,IN_CLOSE_WRITE,IN_ATTRIB,IN_NO_LOOP check_system_crontabs -s 0 +/etc/cron.hourly IN_MOVE,IN_CREATE,IN_DELETE,IN_CLOSE_WRITE,IN_ATTRIB,IN_NO_LOOP /usr/sbin/incron-periodic-fcrontabs $@/$# +/etc/cron.daily IN_MOVE,IN_CREATE,IN_DELETE,IN_CLOSE_WRITE,IN_ATTRIB,IN_NO_LOOP /usr/sbin/incron-periodic-fcrontabs $@/$# +/etc/cron.weekly IN_MOVE,IN_CREATE,IN_DELETE,IN_CLOSE_WRITE,IN_ATTRIB,IN_NO_LOOP /usr/sbin/incron-periodic-fcrontabs $@/$# +/etc/cron.monthly IN_MOVE,IN_CREATE,IN_DELETE,IN_CLOSE_WRITE,IN_ATTRIB,IN_NO_LOOP /usr/sbin/incron-periodic-fcrontabs $@/$# diff -Nur sys-process/incron-old/files/incron sys-process/incron/files/incron --- sys-process/incron-old/files/incron 1969-12-31 19:00:00.000000000 -0500 +++ sys-process/incron/files/incron 2007-07-07 02:47:40.000000000 -0400 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + use logger +} + +start() { + ebegin "Starting incrond" + start-stop-daemon --start --exec /usr/sbin/incrond --pidfile /var/run/incrond.pid + eend $? +} + +stop () { + ebegin "Stopping incrond" + start-stop-daemon --stop --exec /usr/sbin/incrond --pidfile /var/run/incrond.pid + eend $? +} diff -Nur sys-process/incron-old/files/incron-periodic-fcrontabs sys-process/incron/files/incron-periodic-fcrontabs --- sys-process/incron-old/files/incron-periodic-fcrontabs 1969-12-31 19:00:00.000000000 -0500 +++ sys-process/incron/files/incron-periodic-fcrontabs 2007-07-09 21:29:30.000000000 -0400 @@ -0,0 +1,35 @@ +#!/bin/bash -x +# A little script to make fcrontabs out of a script in +# /etc/cron.{hour,dai,week,month}ly. Expects to be called with the full path. + +# Ignore hidden files, which could be, e.g. swap files for VIM. +if [[ $1 == .* ]]; then + exit 0 +fi + +SCRIPT="$1" +DIR="${SCRIPT%/*}" +FILE="${SCRIPT#$DIR/}" +PERIOD="${DIR#*/cron.}" + +# Might as well make sure that we are running this on the correct kind of file +shopt -s extglob +if ! [[ $PERIOD == @(hourly|daily|weekly|monthly) ]]; then + exit 0 +fi + +hourly=h +daily=d +weekly=w +monthly=m + +FCRONTAB="/etc/cron.d/$FILE.$PERIOD" + +if [ -x $SCRIPT ]; then + # New executable file means we need a new cron job + echo "@ 1${!PERIOD} $SCRIPT" >$FCRONTAB +else + # If the script is not executable, there shouldn't be a job pointing to + # it. + [ -e $FCRONTAB ] && rm $FCRONTAB +fi diff -Nur sys-process/incron-old/incron-0.5.6.ebuild sys-process/incron/incron-0.5.6.ebuild --- sys-process/incron-old/incron-0.5.6.ebuild 1969-12-31 19:00:00.000000000 -0500 +++ sys-process/incron/incron-0.5.6.ebuild 2007-07-07 11:14:27.000000000 -0400 @@ -0,0 +1,47 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-info +DESCRIPTION="incron is a cron-like daemon which runs commands based on file and +directory access rather than time." +HOMEPAGE="http://inotify.aiken.cz/?section=incron&page=about" +SRC_URI="http://inotify.aiken.cz/download/incron/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +# gcc supplies sys/inotify.h, and gcc actually means g++ +DEPEND=">=sys-libs/glibc-2.5 + >=sys-devel/gcc-4.0" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="INOTIFY" +ERROR_CFG="You must have CONFIG_INOTIFY enabled in your kernel!" + +src_compile() { + emake CXXFLAGS="${CXXFLAGS}" || die "emake failed" +} + +src_install() { + mkdir -p "${D}"usr/{,s}bin "${D}"etc/init.d + emake \ + PREFIX="${D}"usr \ + USERDATADIR="${D}"var/spool/incron \ + SYSDATADIR="${D}"etc/incron.d \ + CFGDIR="${D}"etc \ + MANPATH="${D}"usr/share/man \ + install || die "emake install failed" + install -o root -g root -m 755 "${FILESDIR}/incron" "${D}"etc/init.d + install -o root -g root -m 755 "${FILESDIR}/incron-periodic-fcrontabs" \ + "${D}"usr/sbin + install -o root -g root -m 644 "${FILESDIR}/fcrontabs" "${D}"etc/incron.d +} + +pkg_postinst() { + einfo "Check out /etc/incron.conf.example and move it to /etc/incron.conf" + einfo "after you've changed it to your liking." + einfo "" + einfo "Also check out /etc/incron.d and make sure that you will use the" + einfo "incrontabs there" +} diff -Nur sys-process/incron-old/Manifest sys-process/incron/Manifest --- sys-process/incron-old/Manifest 1969-12-31 19:00:00.000000000 -0500 +++ sys-process/incron/Manifest 2007-07-09 21:29:38.000000000 -0400 @@ -0,0 +1,24 @@ +AUX fcrontabs 728 RMD160 22763b9f75e6d63ba88276765f4cf0e46ae8d78a SHA1 642242843d8b1c910dc0834cc39c5a18837bfc9b SHA256 5237be9abe123cdaa7e497fe0323ecd6e7880df46c94241c461e460cc0411f33 +MD5 8db484fa437eb20f2251194628ead7ef files/fcrontabs 728 +RMD160 22763b9f75e6d63ba88276765f4cf0e46ae8d78a files/fcrontabs 728 +SHA256 5237be9abe123cdaa7e497fe0323ecd6e7880df46c94241c461e460cc0411f33 files/fcrontabs 728 +AUX incron 429 RMD160 e41741277529c408b7d3dc0402ed8a06d4625f21 SHA1 3a2db238b1ee2802b95976f9e121c3aab3265bf0 SHA256 7533a5544e32d3f7d57a8d9cf85992faf5e391c9e4fa420f78996701d6494d63 +MD5 695aa2b0da96ce186fe6744e22c2927f files/incron 429 +RMD160 e41741277529c408b7d3dc0402ed8a06d4625f21 files/incron 429 +SHA256 7533a5544e32d3f7d57a8d9cf85992faf5e391c9e4fa420f78996701d6494d63 files/incron 429 +AUX incron-periodic-fcrontabs 810 RMD160 41d78548fb98f4c55ad633f822a8978088d23b3a SHA1 47121d878c2f16362bd80b2c579fbed655b5abc1 SHA256 3349670972f2bb5526c50b42e6d3db1ab126ee6713ba3a17ac55a54ed72cffa0 +MD5 83b9fe760d0edcb744776aa6a654dbca files/incron-periodic-fcrontabs 810 +RMD160 41d78548fb98f4c55ad633f822a8978088d23b3a files/incron-periodic-fcrontabs 810 +SHA256 3349670972f2bb5526c50b42e6d3db1ab126ee6713ba3a17ac55a54ed72cffa0 files/incron-periodic-fcrontabs 810 +DIST incron-0.5.6.tar.bz2 113815 RMD160 c9b44a310f69cd06d87b6a10a2c81f130bdd7808 SHA1 f2a8aa232856e25000bcfbefda1e3b2ae313e735 SHA256 845f8b0736e7f7555d0a15eb63bd4841dd363ccb2976a09957535c9c4e991942 +EBUILD incron-0.5.6.ebuild 1482 RMD160 2f7fcb1f00f5e62857aaae48ea112dcb14f5d676 SHA1 a5b4b24ef834ee253effae1a84febc943785215f SHA256 b9e4f94ac59732f61b2fda1a3be6ada8ae71652fdae313c435e4372868568066 +MD5 ee707d8e5c3100076a7001ac9f4ad41e incron-0.5.6.ebuild 1482 +RMD160 2f7fcb1f00f5e62857aaae48ea112dcb14f5d676 incron-0.5.6.ebuild 1482 +SHA256 b9e4f94ac59732f61b2fda1a3be6ada8ae71652fdae313c435e4372868568066 incron-0.5.6.ebuild 1482 +MISC ChangeLog 333 RMD160 9bcf71e839540575b1978442a0ed8f7d22066ae0 SHA1 f016b6787d547dce5c06062326c6448f8fe6eac7 SHA256 dab32a0d0c8eb898c7077ba0f02fe04f307d45e82fbdf7f5f5e775c776faa473 +MD5 068cb34766fcdf6d52f4b23eed93221c ChangeLog 333 +RMD160 9bcf71e839540575b1978442a0ed8f7d22066ae0 ChangeLog 333 +SHA256 dab32a0d0c8eb898c7077ba0f02fe04f307d45e82fbdf7f5f5e775c776faa473 ChangeLog 333 +MD5 742090723751a52e582dcbc02d732b94 files/digest-incron-0.5.6 241 +RMD160 9dce25b0a41c7ad38a93a4f4b4a4993a11d9c25a files/digest-incron-0.5.6 241 +SHA256 2a5cb146e834586d5f54e0115107a78b3e3c44b956be97a547f7cd448ef75ab7 files/digest-incron-0.5.6 241