aboutsummaryrefslogtreecommitdiffstats
path: root/testing/inotify-tools-inc/APKBUILD
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-05-10 21:46:06 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-05-22 11:46:51 +0000
commit7ee2363baf3fda4d5e66ae285a658b73d1fdd281 (patch)
tree3de1b280a31f1234feef7279ef773a079c7261bb /testing/inotify-tools-inc/APKBUILD
parent2e9499059aa562faaa34380d892b5b122e65e305 (diff)
downloadaports-7ee2363baf3fda4d5e66ae285a658b73d1fdd281.tar.bz2
aports-7ee2363baf3fda4d5e66ae285a658b73d1fdd281.tar.xz
testing/inotify-tools-inc: new aport (with --include regex)
This is inotify-tools patched to add --include & --includei regexes I've been testing it watching for a specific file. The --exclude regexes still work too.
Diffstat (limited to 'testing/inotify-tools-inc/APKBUILD')
-rw-r--r--testing/inotify-tools-inc/APKBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/inotify-tools-inc/APKBUILD b/testing/inotify-tools-inc/APKBUILD
new file mode 100644
index 0000000000..78e6220ce4
--- /dev/null
+++ b/testing/inotify-tools-inc/APKBUILD
@@ -0,0 +1,59 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname="inotify-tools-inc"
+_realname="${pkgname%*-inc}"
+pkgver=3.14
+pkgrel=0
+pkgdesc="inotify-tools patched to add --include regex"
+url="http://github.com/rvoicilas/inotify-tools"
+arch="all"
+license="GPL2"
+replaces="inotify-tools"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/downloads/rvoicilas/$_realname/$_realname-$pkgver.tar.gz
+ add-include-regex.patch
+ "
+
+_builddir="$srcdir"/$_realname-$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"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+ # post-install message
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname"
+ cat > $pkgdir/usr/share/doc/$pkgname/example.sh <<EOF
+#!/bin/sh
+## watch for a specific file recursively ##
+inotifywait -mr -e modify /path/to/watch --include="(my.file)$" |
+while read path action file; do
+ echo "The file '$file' appeared in directory '$path' via '$action'"
+done
+EOF
+}
+
+md5sums="b43d95a0fa8c45f8bab3aec9672cf30c inotify-tools-3.14.tar.gz
+72f3ffd0d57ddb2b6b38faaa3b751ca8 add-include-regex.patch"
+sha256sums="222bcca8893d7bf8a1ce207fb39ceead5233b5015623d099392e95197676c92f inotify-tools-3.14.tar.gz
+5b193b9b5cbd16d4aca9ce843a8493191cbf825598978a2602180fc28d56ffd7 add-include-regex.patch"
+sha512sums="6074d510e89bba5da0d7c4d86f2562c662868666ba0a7ea5d73e53c010a0050dd1fc01959b22cffdb9b8a35bd1b0b43c04d02d6f19927520f05889e8a9297dfb inotify-tools-3.14.tar.gz
+b858b79dcfb2967d0c8d31ecbc17f4f36064218d2276fdafcdc6c8e51c9db2645fa102f88f1401b78f79a1b2ddbe400ea3e691bf93d084ecb312a170f69bda24 add-include-regex.patch"