Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184800
Collapse All | Expand All

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

Return to bug 184800