aboutsummaryrefslogtreecommitdiffstats
path: root/testing/incron
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-15 12:37:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-15 12:41:36 +0000
commit25f93960b78c58569aeb56ec7fd1bd354425f280 (patch)
tree5b0af2a2f407c345616720375674e9e9a9482f92 /testing/incron
parent1f38fcbfe526213426a6440200d354562ab47a0e (diff)
downloadaports-25f93960b78c58569aeb56ec7fd1bd354425f280.tar.bz2
aports-25f93960b78c58569aeb56ec7fd1bd354425f280.tar.xz
testing/incron: new aport
Inotify cron system http://inotify.aiken.cz fixes #2443
Diffstat (limited to 'testing/incron')
-rw-r--r--testing/incron/APKBUILD52
-rw-r--r--testing/incron/fix-headers.patch10
-rw-r--r--testing/incron/incrond.initd13
3 files changed, 75 insertions, 0 deletions
diff --git a/testing/incron/APKBUILD b/testing/incron/APKBUILD
new file mode 100644
index 0000000000..c7d46d8844
--- /dev/null
+++ b/testing/incron/APKBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=incron
+pkgver=0.5.10
+pkgrel=0
+pkgdesc="Inotify cron system"
+url="http://inotify.aiken.cz"
+arch="all"
+license="GPLv2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev argp-standalone"
+install=""
+subpackages="$pkgname-doc"
+options="suid"
+source="http://inotify.aiken.cz/download/incron/incron-$pkgver.tar.bz2
+ fix-headers.patch
+ incrond.initd
+ "
+
+_builddir="$srcdir"/incron-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make PREFIX=/usr || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
+ install -Dm755 "$srcdir"/incrond.initd "$pkgdir"/etc/init.d/incrond \
+ || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="038190dc64568883a206f3d58269b850 incron-0.5.10.tar.bz2
+2f732aef8ae8b49a0427e1d0d3c5281d fix-headers.patch
+78800a76ecb841a861719863446c8a25 incrond.initd"
+sha256sums="852695df1d0c8a1ad182d41c8f8ce1417ac34e7fb6cd01e9c9c6d493c42e759f incron-0.5.10.tar.bz2
+aa69fa1ebfd48e6fba9921f136ac77b68f9b34e6f60b2296c35bdd5b60e5d7ec fix-headers.patch
+3a1cbd481fe461f738f78652b88a59eb7680ca3bb2b92d214dbc42cb0b0d3997 incrond.initd"
+sha512sums="5d9ae4d4e3929ba16ad06652f21ef319041e13f9b15000d08053a973bef706b5d0137b9235c29049aed1673a2f41379b2b677eeedefacaf68308ad54405e4bfd incron-0.5.10.tar.bz2
+ab25665b6b736b81bfa84b1092608e0f2c15484a2e920b1859827bd870d04a894760020be6ab27226ff8cb75bab1ef8dc34d006a4531fc658e32137374412c9c fix-headers.patch
+ce029a2c7bb7c9691430e315e7a762ecf59fdce3924edd5bc1b50eabccadcdf5637fbf00230112eec9bff4e21ef8e20d684e41775a9c7c54a17fb101d342ceff incrond.initd"
diff --git a/testing/incron/fix-headers.patch b/testing/incron/fix-headers.patch
new file mode 100644
index 0000000000..64771ffd12
--- /dev/null
+++ b/testing/incron/fix-headers.patch
@@ -0,0 +1,10 @@
+--- ./icd-main.cpp.orig
++++ ./icd-main.cpp
+@@ -24,6 +24,7 @@
+ #include <dirent.h>
+ #include <syslog.h>
+ #include <errno.h>
++#include <unistd.h>
+ #include <sys/poll.h>
+ #include <sys/stat.h>
+ #include <cstdio>
diff --git a/testing/incron/incrond.initd b/testing/incron/incrond.initd
new file mode 100644
index 0000000000..3f3992a2ac
--- /dev/null
+++ b/testing/incron/incrond.initd
@@ -0,0 +1,13 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/incron/files/incrond.init,v 1.1 2011/01/31 15:14:12 idl0r Exp $
+
+command=/usr/sbin/incrond
+pidfile=/var/run/incrond.pid
+command_args="-f /etc/incron.conf"
+
+depend() {
+ use clock logger
+ need localmount
+}