Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jul 2013 18:20:12 GMT
From:      Jesse <jessefrgsmith@yahoo.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180351: new port: ftp/u1ftp
Message-ID:  <201307061820.r66IKC4F026397@oldred.freebsd.org>
Resent-Message-ID: <201307061830.r66IU0wZ051716@freefall.freebsd.org>

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

>Number:         180351
>Category:       ports
>Synopsis:       new port: ftp/u1ftp
>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:   Sat Jul 06 18:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Jesse
>Release:        FreeBSD 9.1
>Organization:
RM
>Environment:
>Description:
Please find attached my port of U1ftp, a service which connects users on the local host to the Ubuntu One storage cloud using a FTP proxy.
>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:
#
#	u1ftp/
#	u1ftp/pkg-descr
#	u1ftp/pkg-message
#	u1ftp/Makefile
#	u1ftp/files
#	u1ftp/files/patch-ubuntuone
#	u1ftp/distinfo
#
echo c - u1ftp/
mkdir -p u1ftp/ > /dev/null 2>&1
echo x - u1ftp/pkg-descr
sed 's/^X//' >u1ftp/pkg-descr << '0caef5ded45d3f363f3b3044223cb53c'
XU1ftp is a service which connects the local user to the Ubuntu
XOne cloud storage. U1ftp does this by setting up a local FTP
Xserver as a proxy between the local host and Ubuntu One's servers.
XThis allows us to connect to the local service using only
Xthe FTP protocol.
X
XWWW: https://launchpad.net/u1ftp
0caef5ded45d3f363f3b3044223cb53c
echo x - u1ftp/pkg-message
sed 's/^X//' >u1ftp/pkg-message << '4c93a18a74a24e33021816b100dfc7ec'
XTo run the Ubuntu One client a few configuration steps will be
Xrequired by the host system.
X
X1. The FUSE module must be enabled. This can be accomplished
Xby adding the following line to your /etc/rc.conf file:
Xfusefs_enable="YES"
XYou may also wish to run /usr/local/etc/rc.d/fusefs start
X
X2. Regular user accounts should be able to mount FUSE file systems.
XThis can be enabled by adding the following line to your
X/etc/sysctl.conf file:
Xvfs.usermount=1
XTo enable this feature without a reboot run the command
Xsysctl vfs.usermount=1
X
X3. Should the user still not be able to connect to Ubuntu One
Xplease check the permissions of the virtual device /dev/fuse0
X
4c93a18a74a24e33021816b100dfc7ec
echo x - u1ftp/Makefile
sed 's/^X//' >u1ftp/Makefile << 'f9e00a6768676eb76506ea5c6f1de743'
X# New ports collection makefile for:	u1ftp
X# Date created:				July 6, 2013
X# Whom:					Jesse
X#
X# $FreeBSD: 
X#
X
XPORTNAME=	u1ftp
XPORTVERSION=	0.2
XCATEGORIES=	ftp
XMASTER_SITES=	SF/makeapbi/${PORTNAME}/
X
XMAINTAINER=	jessefrgsmith@yahoo.ca
XCOMMENT=	A proxy service which connects the local user to Ubuntu One.
X
XLICENSE=	GPLv2
XNO_BUILD=	yes
XWRKSRC=		${WRKDIR}/u1ftp
XUSE_PYTHON=	2.7
XPLIST_FILES=	share/${PORTNAME}/${PORTNAME}.zip bin/ubuntuone
XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
X                ${LOCALBASE}/bin/curlftpfs:${PORTSDIR}/sysutils/fusefs-curlftpfs
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's,prefix=/usr/local,prefix=${PREFIX}/share/${PORTNAME},' ${WRKSRC}/ubuntuone
X	
Xdo-install:
X	${MKDIR} -p ${PREFIX}/share/u1ftp
X	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.zip ${PREFIX}/share/u1ftp/${PORTNAME}.zip
X	${INSTALL_DATA} ${WRKSRC}/ubuntuone ${PREFIX}/bin
X	${CHMOD} 755 ${PREFIX}/bin/ubuntuone
X
X.include <bsd.port.post.mk>
f9e00a6768676eb76506ea5c6f1de743
echo c - u1ftp/files
mkdir -p u1ftp/files > /dev/null 2>&1
echo x - u1ftp/files/patch-ubuntuone
sed 's/^X//' >u1ftp/files/patch-ubuntuone << '8fe3e900280c8395256feb84ee43bfe8'
X--- ./ubuntuone.orig	2013-07-05 21:41:16.000000000 -0300
X+++ ./ubuntuone	2013-07-06 12:01:19.000000000 -0300
X@@ -12,7 +12,8 @@
X myid=$(($myid + 1024))
X myuser=`echo "$1" | sed -e 's/@/%40/'`
X prefix=/usr/local
X-python "$prefix"/bin/u1ftp.zip &
X+python "$prefix"/u1ftp.zip &
X mkdir -p ~/Ubuntu\ One
X+sleep 5
X curlftpfs ftp://"$myuser":"$2"@localhost:$myid ~/Ubuntu\ One
X 
8fe3e900280c8395256feb84ee43bfe8
echo x - u1ftp/distinfo
sed 's/^X//' >u1ftp/distinfo << 'd0f1445b6296ada948f2861a6baada5d'
XSHA256 (u1ftp-0.2.tar.gz) = 76af3a10d28fc76c96be9355079fce30b69a5daecb9e24075b94d1b472c9801a
XSIZE (u1ftp-0.2.tar.gz) = 648496
d0f1445b6296ada948f2861a6baada5d
exit



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



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