aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsyncd/lpostcmd.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-06-19 15:05:23 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-06-19 15:05:40 +0000
commit393a946d9ce6ff582ac812287fa061a8799ba057 (patch)
treec8bda45ac0578220326bb2431ef52aed17ebf513 /main/lsyncd/lpostcmd.patch
parentc9774dcfddb414b36e11cb93f3c543429ad5a38f (diff)
downloadaports-393a946d9ce6ff582ac812287fa061a8799ba057.tar.bz2
aports-393a946d9ce6ff582ac812287fa061a8799ba057.tar.xz
main/lsyncd: restore lpostcmd patch, add openrc subpkg
Diffstat (limited to 'main/lsyncd/lpostcmd.patch')
-rw-r--r--main/lsyncd/lpostcmd.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/lsyncd/lpostcmd.patch b/main/lsyncd/lpostcmd.patch
new file mode 100644
index 0000000000..dfa8f9da8c
--- /dev/null
+++ b/main/lsyncd/lpostcmd.patch
@@ -0,0 +1,26 @@
+--- a/examples/lpostcmd.lua
++++ b/examples/lpostcmd.lua
+@@ -6,7 +6,7 @@
+ -- after every successfullycompleted rsync operation.
+ -- for example to restart servlets on the target host or so.
+
+-local rsyncpostcmd = {
++rsyncpostcmd = {
+
+ -- based on default rsync.
+ default.rsync,
+@@ -105,14 +105,3 @@
+ return default.rsync.prepare(config, level, skipTarget)
+ end
+ }
+-
+-
+-sync {
+- rsyncpostcmd,
+- delay = 3,
+- source = '/path/to/src',
+- host = 'localhost',
+- targetdir = '/path/to/trg',
+- postcmd = '/usr/local/bin/dopostcmd',
+-}
+-