Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 17:09:27 GMT
From:      Jesse <jessefrgsmith@yahoo.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179778: new port: net/fish-sync -- network file sync tool
Message-ID:  <201306201709.r5KH9R1K038529@oldred.freebsd.org>
Resent-Message-ID: <201306201710.r5KHA0dt078960@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179778
>Category:       ports
>Synopsis:       new port: net/fish-sync -- network file sync tool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 20 17:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Jesse
>Release:        FreeBSD 9.1
>Organization:
RM
>Environment:
>Description:
Attached is a new port for a program called fish-Sync. The fish-sync application acts as a front-end to rsync and OpenSSH, allowing users to easily share files from multiple directories between multiple computers. Only one of the machines in each swarm needs to have fish-sync installed, all other machines simply need OpenSSH.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	fish-sync/
#	fish-sync/files
#	fish-sync/files/patch-source__sync_thread.cpp
#	fish-sync/files/patch-source__ssh.cpp
#	fish-sync/files/patch-source__Makefile
#	fish-sync/files/patch-source__options.cpp
#	fish-sync/pkg-descr
#	fish-sync/Makefile
#	fish-sync/distinfo
#
echo c - fish-sync/
mkdir -p fish-sync/ > /dev/null 2>&1
echo c - fish-sync/files
mkdir -p fish-sync/files > /dev/null 2>&1
echo x - fish-sync/files/patch-source__sync_thread.cpp
sed 's/^X//' >fish-sync/files/patch-source__sync_thread.cpp << '162f7ee29fea072367fe078730f9e8d3'
X--- ./source/sync_thread.cpp.orig	2012-05-27 12:25:40.000000000 -0300
X+++ ./source/sync_thread.cpp	2013-06-20 08:44:05.000000000 -0300
X@@ -1,6 +1,7 @@
X #include <pthread.h>
X #include <stdio.h>
X #include <stdlib.h>
X+#include <signal.h>
X #include <sys/types.h>
X #include <sys/wait.h>
X #include "log.h"
162f7ee29fea072367fe078730f9e8d3
echo x - fish-sync/files/patch-source__ssh.cpp
sed 's/^X//' >fish-sync/files/patch-source__ssh.cpp << '90e322f1ce9f1c150f29628e0ca8a8e0'
X--- ./source/ssh.cpp.orig	2013-06-20 08:50:58.000000000 -0300
X+++ ./source/ssh.cpp	2013-06-20 08:51:59.000000000 -0300
X@@ -148,6 +148,8 @@
X                                    sizeof(char));
X    if (! key_location)
X        return FALSE;
X+
X+   sprintf(key_location, "%s/%s", my_options->config_dir, FISH_KEY);
X    
X    full_command = (char *) calloc( strlen(to_host->remote_host) +
X                                    strlen(to_host->user) +
90e322f1ce9f1c150f29628e0ca8a8e0
echo x - fish-sync/files/patch-source__Makefile
sed 's/^X//' >fish-sync/files/patch-source__Makefile << '270d2f2f24dcf69e5326129a669e5776'
X--- ./source/Makefile.orig	2012-05-13 22:58:56.000000000 -0300
X+++ ./source/Makefile	2013-06-20 08:44:05.000000000 -0300
X@@ -1,6 +1,6 @@
X PREFIX ?= /usr
X CXX ?= g++
X-CFLAGS = -Wno-write-strings -pthread -DVERSION=\"$(VERSION)\" # -DDEBUG 
X+CFLAGS = -Wno-write-strings -pthread -DVERSION=\"$(VERSION)\" -DDEBUG 
X LFLAGS = -pthread
X MODULES = options.o main.o log.o ssh.o rsync.o sync_thread.o
X HEADERS = options.h log.h ssh.h rsync.h sync_thread.h
270d2f2f24dcf69e5326129a669e5776
echo x - fish-sync/files/patch-source__options.cpp
sed 's/^X//' >fish-sync/files/patch-source__options.cpp << '392d229e42cc63fc27926a64e23a1658'
X--- ./source/options.cpp.orig	2012-05-27 12:25:58.000000000 -0300
X+++ ./source/options.cpp	2013-06-20 08:44:05.000000000 -0300
X@@ -111,15 +111,15 @@
X              if (my_options->ssh) free(my_options->ssh);
X              my_options->ssh = strdup(temp_value);
X          }
X-         else if (! strncasecmp(buffer, "copyid", 9) )
X+         else if (! strncasecmp(buffer, "copyid", 6) )
X          {
X-             sscanf(& (buffer[10]), "%s", temp_value);
X+             sscanf(& (buffer[7]), "%s", temp_value);
X              if (my_options->sshcopyid) free(my_options->sshcopyid);
X              my_options->sshcopyid = strdup(temp_value);
X          }
X-         else if (! strncasecmp(buffer, "keygen", 9) )
X+         else if (! strncasecmp(buffer, "keygen", 6) )
X          {
X-             sscanf(& (buffer[10]), "%s", temp_value);
X+             sscanf(& (buffer[7]), "%s", temp_value);
X              if (my_options->sshkeygen) free(my_options->sshkeygen);
X              my_options->sshkeygen = strdup(temp_value);
X          }
392d229e42cc63fc27926a64e23a1658
echo x - fish-sync/pkg-descr
sed 's/^X//' >fish-sync/pkg-descr << '0343596782353ca170884e71feff26d0'
XFish Sync is a file syncing application. It can transfer multiple folders
Xbetween multiple machines, keeping these folders synchronized. The Fish
XSync program does not have to be install on every machine in the group
Xof peers, only one machine which initiates the synchornization process.
X
XTransfers are conducted using OpenSSH and rsync, making Fish Sync both
Xrelatively secure and lightweight in its network traffic.
X
XWWW: http://fishsync.sourceforge.net/
0343596782353ca170884e71feff26d0
echo x - fish-sync/Makefile
sed 's/^X//' >fish-sync/Makefile << '57e50ac67fbe8a147d385c6ffb5992a3'
X# New ports collection makefile for:	fish-sync
X# Date created:				June 2013
X# Whom:					Jesse
X#
X# $FreeBSD: 
X#
X
XPORTNAME=	fish-sync
XPORTVERSION=	0.4
XCATEGORIES=	net
XMASTER_SITES=	SF/fishsync/fish
XDISTNAME=	fish-${PORTVERSION}
XMAINTAINER=	jessefrgsmith@yahoo.ca
XCOMMENT=	A distributed file synchronization utility.
XLICENSE=	GPLv2
XWRKSRC=	${WRKDIR}/Fish
XPLIST_FILES=	bin/${PORTNAME} 
XUSE_GMAKE=	yes
X
X.include <bsd.port.pre.mk>
X
XRUN_DEPENDS=	${LOCALBASE}/bin/sshpass:${PORTSDIR}/security/sshpass \
X		${LOCALBASE}/bin/sshfs:${PORTSDIR}/sysutils/fusefs-sshfs \
X		${LOCALBASE}/bin/rsync:${PORTSDIR}/net/rsync \
X		${LOCALBASE}/bin/ssh-copy-id:${PORTSDIR}/security/ssh-copy-id
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/fish ${PREFIX}/bin/fish-sync
X
X.include <bsd.port.post.mk>
57e50ac67fbe8a147d385c6ffb5992a3
echo x - fish-sync/distinfo
sed 's/^X//' >fish-sync/distinfo << '7760e5ce7ec605862d501dcc4ac11506'
XSHA256 (fish-0.4.tar.gz) = b0286bde586f1bef0a03364361b47d67ab580acabae10beb1d38befbe62f35af
XSIZE (fish-0.4.tar.gz) = 54658
7760e5ce7ec605862d501dcc4ac11506
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306201709.r5KH9R1K038529>