Commit 393a946d authored by Leonardo Arena's avatar Leonardo Arena

main/lsyncd: restore lpostcmd patch, add openrc subpkg

parent c9774dcf
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lsyncd
pkgver=2.2.3
pkgrel=0
pkgrel=1
_luaver=5.3
pkgdesc="Live Syncing (Mirror) Daemon"
url="https://github.com/axkibe/lsyncd"
......@@ -11,11 +11,13 @@ license="GPL-2.0-or-later"
depends="rsync"
makedepends="$depends_dev cmake lua$_luaver lua$_luaver-dev"
options="!check" # needs passwordless ssh access to localhost
subpackages="$pkgname-doc"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/axkibe/lsyncd/archive/release-$pkgver.tar.gz
fix-realpath.patch
fix-mandir.patch
$pkgname.initd"
lpostcmd.patch
$pkgname.initd
"
builddir="$srcdir"/lsyncd-release-$pkgver
build() {
......@@ -43,4 +45,5 @@ package() {
sha512sums="2193a342f8aa7d8cfb55378c9c59ca61d2d8e4026263fd6e6560c730c712cef1f189305a3f9bca58f5b9c9ffae5af12e1d75e5355d5bdae86a47ad9595b8169a lsyncd-2.2.3.tar.gz
2cebaf59d960321c2eda4ef1e0d850f62eb7eedb7ba8922a5db33a7f78c769d1a52839fbb597ae06ba576632e2abc7b92a6ba2eaf58b71b93bc877db83e25576 fix-realpath.patch
6283f973768467942a69cb4fd835cfef81ffd1d9acccdea21b1f40730f67d5ff0e8db33772f28be2a6abb352c9596a01dbf215aa228072f7439b69ad8c691c61 fix-mandir.patch
047ee8b2fae169e444c81e9b3ce0ef38713a114877cc38f6aee0594cd64c7b7d99d22ac81fe5e6ac87767956e8757731374a179800ec57fe664f058788ba482b lpostcmd.patch
441b76ec944d9d74100dfca55efe871e9092b37cd49ec79a2a94e281dc0326b4def1645a827f7d3edcddc95d6e74c99621b62991396fb3693b1832c42fd86cdc lsyncd.initd"
--- 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',
-}
-
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment