diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-09-18 08:48:07 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-09-18 08:48:22 +0000 |
commit | 080e012e1cc56363171c2544a7591918c7be26ad (patch) | |
tree | 4c43095ff118eb7f15f2026eea02e5d8c32257a6 /main | |
parent | e5e8b6436aa316124c7ba1f6146cd67119afcf71 (diff) | |
download | aports-080e012e1cc56363171c2544a7591918c7be26ad.tar.bz2 aports-080e012e1cc56363171c2544a7591918c7be26ad.tar.xz |
main/lsyncd: upgrade to 2.1.5
Diffstat (limited to 'main')
-rw-r--r-- | main/lsyncd/APKBUILD | 22 | ||||
-rw-r--r-- | main/lsyncd/fix-realpath.patch | 26 | ||||
-rw-r--r-- | main/lsyncd/lpostcmd.patch | 31 |
3 files changed, 31 insertions, 48 deletions
diff --git a/main/lsyncd/APKBUILD b/main/lsyncd/APKBUILD index a66e72c925..b7c80baaa3 100644 --- a/main/lsyncd/APKBUILD +++ b/main/lsyncd/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lsyncd -pkgver=2.0.7 -pkgrel=3 +pkgver=2.1.5 +pkgrel=0 pkgdesc="Live Syncing (Mirror) Daemon" url="http://code.google.com/p/lsyncd/" arch="all" @@ -53,15 +53,15 @@ package() { } -md5sums="4ef8787f6e3a402a9a2bcb84c123fb17 lsyncd-2.0.7.tar.gz -a8ad7a0a5faddd8b19f45b1c3086eee3 fix-realpath.patch -a70439e6b21b15cc62ea0fa9f2e95a9b lpostcmd.patch +md5sums="fb10547494ec5ec662fe88343047c364 lsyncd-2.1.5.tar.gz +a14565df7274ebd0b605301ca39ae885 fix-realpath.patch +b84df7c8f645e284357e0b4fc0afaa8a lpostcmd.patch c9e77dddc6dc3eef6f35bf2d23658818 lsyncd.initd" -sha256sums="3c76a6e8acfceea742154afd21f74b220277e54b1ffdb71ee1dc2eb104b0bbde lsyncd-2.0.7.tar.gz -f956ed6243675018ac646e0789f4ddf37a60ad7526cdfdf59f633fd86efb9a68 fix-realpath.patch -7aba1c30ac079ea13ddd362021413d8d9ec027f3b38889b236a7c1efbd72c9ce lpostcmd.patch +sha256sums="4a793056c4ed833edb59436d7711bb65f7e38a4d8d44371cc9dc5eb91fbc461f lsyncd-2.1.5.tar.gz +26454c77bb005c165c10b05b232c587669d35ab98e0ac889a11923106126f98e fix-realpath.patch +b14b2784942f304486ac7451fcd2e15d9eac42e489e224809c4c795a5dadc759 lpostcmd.patch 770b2c123d062ddcbf7c9eb709c56f9dd812cce66bf5e76b88a86609cc9925b0 lsyncd.initd" -sha512sums="4ba99853b7962f40bd6a7cd2b51eebf33b37a9536511d39f5650da04465c67080cc89568537981165c357c76841221c1fcc83b42ee0d8ab4713619f8c008af40 lsyncd-2.0.7.tar.gz -b3cedf4c0a456a7eb1b43c63faf40c7a77d1d6435d8980c15a30139a999d8e2f471f2f2758542408574f99079eb1ea5fa087cfa19e3e38a21bb6f06d69815a06 fix-realpath.patch -c606e915de80b52786ac3368b837632db9fce3297bb7f7abfc2fe6b2b259730e54194c08509d1d00d9851247038ef492591bc7cc75e98c4466518b84fc961ee3 lpostcmd.patch +sha512sums="7be939e979525f8e4687432ffe952b1d09b8a34b4d7f92ebe86b5cddb765dbd602258682612529e9cc51305d6d001e72de9e6da62761397df23ecda30fd6a12b lsyncd-2.1.5.tar.gz +2cebaf59d960321c2eda4ef1e0d850f62eb7eedb7ba8922a5db33a7f78c769d1a52839fbb597ae06ba576632e2abc7b92a6ba2eaf58b71b93bc877db83e25576 fix-realpath.patch +a7c3ae7d3062bd186c2b5576ce0f1134e0fc8f8a9422220d14d5a9ebb2c9fe27ca508fad82c468d51aa262492fc17408e2e0abfcccc311e1e5248e2e92a56020 lpostcmd.patch e283f81c4d8c2c5b7cc333920a7f69f059846eb537a1c8700bfaf9e07f65740e76afe4726348d785c00fae11067fabb0917cacb42193b96d550807cc9b65a445 lsyncd.initd" diff --git a/main/lsyncd/fix-realpath.patch b/main/lsyncd/fix-realpath.patch index 66132f26e4..646a582f8c 100644 --- a/main/lsyncd/fix-realpath.patch +++ b/main/lsyncd/fix-realpath.patch @@ -1,20 +1,22 @@ ---- lsyncd-2.0.7.orig/lsyncd.c -+++ lsyncd-2.0.7/lsyncd.c -@@ -166,17 +166,7 @@ - char * - get_realpath(const char * rpath) { +--- a/lsyncd.c ++++ b/lsyncd.c +@@ -171,19 +171,7 @@ + get_realpath( const char * rpath ) + { // uses c-library to get the absolute path -#ifdef __GLIBC__ - // in case of GLIBC the task is easy. - return realpath(rpath, NULL); + return realpath( rpath, NULL ); -#else -# warning having to use old style realpath() -- // otherwise less so and requires PATH_MAX limit. -- char buf[PATH_MAX]; -- char *asw = realpath(rpath, buf); -- if (!asw) return NULL; -- return s_strdup(asw); +- // otherwise less so and requires PATH_MAX limit +- char buf[ PATH_MAX] ; +- char *asw = realpath( rpath, buf ); +- if( !asw ) +- { return NULL; } +- +- return s_strdup( asw ); -#endif } - /***************************************************************************** + diff --git a/main/lsyncd/lpostcmd.patch b/main/lsyncd/lpostcmd.patch index 46ca7b9785..cf0254573e 100644 --- a/main/lsyncd/lpostcmd.patch +++ b/main/lsyncd/lpostcmd.patch @@ -1,44 +1,25 @@ --- 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, @@ -25,7 +25,7 @@ -- uses rawget to test if "isPostcmd" has been set without -- triggering an error if not. local isPostcmd = rawget(event, "isPostcmd") - if event.isPostcmd then + if isPostcmd then - spawn(event, "/usr/bin/ssh", + spawn(event, "/usr/bin/ssh", config.host, config.postcmd) return -@@ -58,7 +58,7 @@ - return default.collect(agent,exitcode) - end - error("this should never be reached") -- end -+ end, - - -- called before anything else - -- builds the target from host and targetdir -@@ -74,14 +74,5 @@ - end +@@ -75,13 +75,3 @@ return default.rsync.prepare(config) end --} + } - - -sync { -- rsyncpostcmd, +- rsyncpostcmd, - source = "src", - host = "beetle", - targetdir = "/path/to/trg", - postcmd = "/usr/local/bin/restart-servelt.sh", - } - +-} +- |