ports/60032: New port: ftp/wput - Uploads files or directories to a ftpserver with support of resuming

Nosov Artem chip-set at mail.ru
Mon Dec 8 01:10:22 UTC 2003


>Number:         60032
>Category:       ports
>Synopsis:       New port: ftp/wput - Uploads files or directories to a ftpserver with support of resuming
>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:   Sun Dec 07 17:10:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nosov Artem
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Automatic System Controls
>Environment:
System: FreeBSD 4.8-RELEASE FreeBSD

>Description:

 New port : ftp/wput

 wput is a tiny program that looks like wget and does as the name suggests 
 exactly the opposite: it uploads files or recursivly whole directories to 
 a ftp-server and supports resuming.

>How-To-Repeat:
	
>Fix:


# 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:
#
#	wput
#	wput/files
#	wput/files/patch::configure.in
#	wput/files/patch-src::Makefile.in
#	wput/Makefile
#	wput/distinfo
#	wput/pkg-plist
#	wput/pkg-descr
#
echo c - wput
mkdir -p wput > /dev/null 2>&1
echo c - wput/files
mkdir -p wput/files > /dev/null 2>&1
echo x - wput/files/patch::configure.in
sed 's/^X//' >wput/files/patch::configure.in << 'END-of-wput/files/patch::configure.in'
X--- configure.in.orig	Tue Dec  2 03:49:48 2003
X+++ configure.in	Tue Dec  2 03:50:00 2003
X@@ -9,7 +9,7 @@
X     [AC_MSG_ERROR("You need to get libgnugetopt or a newer GNU libc.")]
X     )]
X )
X-AC_SEARCH_LIBS(getopt_long, gnugetopt, [],
X+AC_SEARCH_LIBS(getopt_long, gnugetopt, [LIBS="-lgnugetopt"],
X     [AC_MSG_ERROR("You need to get libgnugetopt or a newer GNU libc.")]
X )
X AC_CONFIG_FILES([Makefile src/Makefile])
END-of-wput/files/patch::configure.in
echo x - wput/files/patch-src::Makefile.in
sed 's/^X//' >wput/files/patch-src::Makefile.in << 'END-of-wput/files/patch-src::Makefile.in'
X--- src/Makefile.in.orig	Tue Dec  2 03:57:48 2003
X+++ src/Makefile.in	Tue Dec  2 03:58:04 2003
X@@ -4,10 +4,10 @@
X prefix=@prefix@
X bindir=@bindir@
X CC=@CC@
X-CFLAGS= @CFLAGS@
X+CFLAGS= @CFLAGS@ @CPPFLAGS@
X LDFLAGS=@LDFLAGS@
X EXE=../wput
X-LIBS= 
X+LIBS= @LIBS@
X #DEBUG= -DDEBUG
X DEBUG=
X OBJ=wput.o ftp.o utils.o progress.o socket.o
X@@ -17,7 +17,7 @@
X 	
X all: wput
X wput:	$(OBJ)
X-	$(CC) $(LIBS) $(DEBUG) -o $(EXE) $(OBJ)
X+	$(CC) $(LIBS) $(DEBUG) -o $(EXE) $(OBJ) $(LDFLAGS)
X clean:
X 	rm -f *.o wput *~ *.bak
X 	rm -r msvcpp/Debug msvcpp/Release
END-of-wput/files/patch-src::Makefile.in
echo x - wput/Makefile
sed 's/^X//' >wput/Makefile << 'END-of-wput/Makefile'
X# New ports collection makefile for:	wput
X# Date created:				2 December 2003
X# Whom:					Nosov Artem <chip-set at mail.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wput
XPORTVERSION=	0.3.6
XCATEGORIES=	ftp
XMASTER_SITES=	http://itooktheredpill.dyndns.org/wput/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	chip-set at mail.ru
XCOMMENT=	Uploads files or directories to a ftpserver with support of resuming
X
XGNU_CONFIGURE=	yes
XUSE_GETOPT_LONG=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XCONFIGURE_TARGET=       --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
X		LIBS="-L${LOCALBASE}/lib"
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in USAGE.examples TODO
X	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-wput/Makefile
echo x - wput/distinfo
sed 's/^X//' >wput/distinfo << 'END-of-wput/distinfo'
XMD5 (wput-0.3.6.tgz) = f10417823ed61b6f45933203621620cd
END-of-wput/distinfo
echo x - wput/pkg-plist
sed 's/^X//' >wput/pkg-plist << 'END-of-wput/pkg-plist'
Xbin/wput
X%%PORTDOCS%%share/doc/wput/TODO
X%%PORTDOCS%%share/doc/wput/USAGE.examples
X%%PORTDOCS%%@dirrm share/doc/wput
END-of-wput/pkg-plist
echo x - wput/pkg-descr
sed 's/^X//' >wput/pkg-descr << 'END-of-wput/pkg-descr'
Xwput is a tiny program that looks like wget and does as the name suggests 
Xexactly the opposite: it uploads files or recursivly whole directories to 
Xa ftp-server and supports resuming.
X
X- Nosov Artem
Xchip-set at mail.ru
END-of-wput/pkg-descr
exit

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



More information about the freebsd-ports-bugs mailing list