diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-19 15:05:23 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-19 15:05:40 +0000 |
commit | 393a946d9ce6ff582ac812287fa061a8799ba057 (patch) | |
tree | c8bda45ac0578220326bb2431ef52aed17ebf513 | |
parent | c9774dcfddb414b36e11cb93f3c543429ad5a38f (diff) | |
download | aports-393a946d9ce6ff582ac812287fa061a8799ba057.tar.bz2 aports-393a946d9ce6ff582ac812287fa061a8799ba057.tar.xz |
main/lsyncd: restore lpostcmd patch, add openrc subpkg
-rw-r--r-- | main/lsyncd/APKBUILD | 9 | ||||
-rw-r--r-- | main/lsyncd/lpostcmd.patch | 26 |
2 files changed, 32 insertions, 3 deletions
diff --git a/main/lsyncd/APKBUILD b/main/lsyncd/APKBUILD index 064ddd83d4..616fa4c9d4 100644 --- a/main/lsyncd/APKBUILD +++ b/main/lsyncd/APKBUILD @@ -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" 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', +-} +- |