# HG changeset patch # User Pascal Bellard # Date 1501411182 -7200 # Node ID c0f288d8f56bfe06c63283b3993014529210713b # Parent bf23995a455265996ba7d963b80c62c0d0a6d486 Add vfsync diff -r bf23995a4552 -r c0f288d8f56b busybox/stuff/busybox-1.27-ash.u --- a/busybox/stuff/busybox-1.27-ash.u Sat Jul 29 08:04:42 2017 -0300 +++ b/busybox/stuff/busybox-1.27-ash.u Sun Jul 30 12:39:42 2017 +0200 @@ -1,22 +1,17 @@ Some SliTaz scripts (cook) need that... --- busybox-1.27/shell/ash.c +++ busybox-1.27/shell/ash.c -@@ -12632,7 +12632,8 @@ +@@ -12632,7 +12632,13 @@ if (strchr(name, '/')) return name; -- while ((fullname = path_advance(&path, name)) != NULL) { -+ fullname = name; /* search in . first */ -+ do { ++ /* IIRC standards do not say whether . is to be searched. Bash do it. */ ++ if (ENABLE_ASH_BASH_COMPAT) { ++ fullname = name; ++ goto try_cur_dir; ++ } + while ((fullname = path_advance(&path, name)) != NULL) { ++ try_cur_dir: if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { /* * Don't bother freeing here, since it will -@@ -12642,7 +12643,7 @@ - } - if (fullname != name) - stunalloc(fullname); -- } -+ } while ((fullname = path_advance(&path, name)) != NULL); - - /* not found in the PATH */ - ash_msg_and_raise_error("%s: not found", name); diff -r bf23995a4552 -r c0f288d8f56b vfsync/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vfsync/receipt Sun Jul 30 12:39:42 2017 +0200 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="vfsync" +VERSION="2017-05-21" +CATEGORY="network" +SHORT_DESC="A secure file synchronization system." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="https://vfsync.org/" +WGET_URL="${WEB_SITE}$TARBALL" + +DEPENDS="libssl libcurl" +BUILD_DEPENDS="openssl-dev curl-dev" + +# Rules to configure and make the package. +compile_rules() +{ + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $install/usr/share/doc + cp -a $src/vfagent $fs/usr/bin + cp -a $src/vfsync $fs/usr/bin + cp -a $src/readme.txt $install/usr/share/doc +}