wok rev 20001

Add vfsync
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 30 12:39:42 2017 +0200 (2017-07-30)
parents bf23995a4552
children 53b845fd006c
files busybox/stuff/busybox-1.27-ash.u vfsync/receipt
line diff
     1.1 --- a/busybox/stuff/busybox-1.27-ash.u	Sat Jul 29 08:04:42 2017 -0300
     1.2 +++ b/busybox/stuff/busybox-1.27-ash.u	Sun Jul 30 12:39:42 2017 +0200
     1.3 @@ -1,22 +1,17 @@
     1.4  Some SliTaz scripts (cook) need that... 
     1.5  --- busybox-1.27/shell/ash.c
     1.6  +++ busybox-1.27/shell/ash.c
     1.7 -@@ -12632,7 +12632,8 @@
     1.8 +@@ -12632,7 +12632,13 @@
     1.9   	if (strchr(name, '/'))
    1.10   		return name;
    1.11   
    1.12 --	while ((fullname = path_advance(&path, name)) != NULL) {
    1.13 -+	fullname = name;	/* search in . first */
    1.14 -+	do {
    1.15 ++	/* IIRC standards do not say whether . is to be searched. Bash do it. */
    1.16 ++	if (ENABLE_ASH_BASH_COMPAT) {
    1.17 ++		fullname = name;
    1.18 ++		goto try_cur_dir;
    1.19 ++	}
    1.20 +	while ((fullname = path_advance(&path, name)) != NULL) {
    1.21 ++ try_cur_dir:
    1.22   		if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
    1.23   			/*
    1.24   			 * Don't bother freeing here, since it will
    1.25 -@@ -12642,7 +12643,7 @@
    1.26 - 		}
    1.27 - 		if (fullname != name)
    1.28 - 			stunalloc(fullname);
    1.29 --	}
    1.30 -+	} while ((fullname = path_advance(&path, name)) != NULL);
    1.31 - 
    1.32 - 	/* not found in the PATH */
    1.33 - 	ash_msg_and_raise_error("%s: not found", name);
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/vfsync/receipt	Sun Jul 30 12:39:42 2017 +0200
     2.3 @@ -0,0 +1,29 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="vfsync"
     2.7 +VERSION="2017-05-21"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="A secure file synchronization system."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="MIT"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="https://vfsync.org/"
    2.14 +WGET_URL="${WEB_SITE}$TARBALL"
    2.15 +
    2.16 +DEPENDS="libssl libcurl"
    2.17 +BUILD_DEPENDS="openssl-dev curl-dev"
    2.18 +
    2.19 +# Rules to configure and make the package.
    2.20 +compile_rules()
    2.21 +{
    2.22 +	make
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	mkdir -p $fs/usr/bin $install/usr/share/doc
    2.29 +	cp -a $src/vfagent $fs/usr/bin
    2.30 +	cp -a $src/vfsync $fs/usr/bin
    2.31 +	cp -a $src/readme.txt $install/usr/share/doc
    2.32 +}