[Midnightbsd-cvs] mports: mports/ftp: Add ftpcopy port.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Nov 14 16:00:09 EST 2007


Log Message:
-----------
Add ftpcopy port.  Used by some of the Tools scripts for mports.

Modified Files:
--------------
    mports/ftp:
        Makefile (r1.17 -> r1.18)

Added Files:
-----------
    mports/ftp/ftpcopy:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/ftp/ftpcopy/files:
        patch-aa (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/ftp/Makefile,v
retrieving revision 1.17
retrieving revision 1.18
diff -L ftp/Makefile -L ftp/Makefile -u -r1.17 -r1.18
--- ftp/Makefile
+++ ftp/Makefile
@@ -4,6 +4,7 @@
     COMMENT = File Transfer Protocol 
 
     SUBDIR += curl
+    SUBDIR += ftpcopy
     SUBDIR += gnustep-ftp
     SUBDIR += greed
     SUBDIR += kwebget
--- /dev/null
+++ ftp/ftpcopy/pkg-descr
@@ -0,0 +1,13 @@
+Two command line ftp tools.
+
+ftpcopy is a simple FTP client written to copy files or directories
+(recursively) from a FTP server. It's main purpose is to mirror FTP sites which
+support the MLSD/MLST commands or which employ the EPLF directory listing
+format, although it also supports the traditional listing format (/bin/ls). 
+
+ftpls is a FTP client which generates directory listings, either in plain text
+or HTML format. 
+
+The tools only support passive mode FTP, intentionally.
+
+WWW: http://www.ohse.de/uwe/ftpcopy.html
--- /dev/null
+++ ftp/ftpcopy/pkg-plist
@@ -0,0 +1,11 @@
+ at comment $MidnightBSD: mports/ftp/ftpcopy/pkg-plist,v 1.1 2007/11/14 21:00:07 laffer1 Exp $
+bin/ftpcp
+bin/ftpcopy
+bin/ftpls
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/THANKS
+%%PORTDOCS%%%%DOCSDIR%%/ftpcopy.html
+%%PORTDOCS%%%%DOCSDIR%%/ftpls.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- /dev/null
+++ ftp/ftpcopy/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for:	ftpcopy
+# Date created:				14 Nov 2007
+# Whom:					Lucas Holt <luke at midnightbsd.org>
+#
+# $MidnightBSD: mports/ftp/ftpcopy/Makefile,v 1.1 2007/11/14 21:00:07 laffer1 Exp $
+# $FreeBSD: ports/ftp/ftpcopy/Makefile,v 1.24 2004/08/13 16:52:19 krion Exp $
+#
+
+PORTNAME=	ftpcopy
+PORTVERSION=	0.6.7
+CATEGORIES=	ftp ipv6
+MASTER_SITES=	http://www.ohse.de/uwe/ftpcopy/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Command line ftp tools for listing and mirroring
+LICENSE=	gpl2
+
+USE_PERL5_BUILD=	yes
+
+WRKSRC=		${WRKDIR}/web/${DISTNAME}
+
+NO_SIZE=	yes
+MAN1=		ftpcopy.1 ftpcp.1 ftpls.1
+
+pre-build:
+	${ECHO} "${CC}" >${WRKSRC}/src/conf-cc
+	${ECHO} "${CPPFLAGS} ${CFLAGS}" >${WRKSRC}/src/conf-cflags
+	${ECHO} "${LDFLAGS}" >${WRKSRC}/src/conf-ldflags
+
+do-install:
+	cd ${WRKSRC}/compile && \
+		${INSTALL_PROGRAM} ftpcopy ftpls ${PREFIX}/bin && \
+		${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1 && \
+		${INSTALL_SCRIPT} ftpcp ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR} && \
+	cd ${WRKSRC}/compile && \
+		${INSTALL_DATA} ChangeLog NEWS \
+			README THANKS ftpcopy.html ftpls.html ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ ftp/ftpcopy/distinfo
@@ -0,0 +1,2 @@
+MD5 (ftpcopy-0.6.7.tar.gz) = 78d5245970803230f0f22f0f040a58ef
+SHA256 (ftpcopy-0.6.7.tar.gz) = ab5369e1873c50b3370f40bf6cd02b7fb858e05e77eea4c9fda0c025629f2ca3
--- /dev/null
+++ ftp/ftpcopy/files/patch-aa
@@ -0,0 +1,11 @@
+--- src/typesize.sh.orig	Tue Jul 27 13:24:17 2004
++++ src/typesize.sh	Thu Aug 19 18:30:43 2004
+@@ -21,7 +21,7 @@
+ 	:
+       else
+ 	x=$?
+-	p=`echo $i | sed 's/ /_/g' | tr "[a-z]]" "[A-Z]"`
++	p=`echo $i | sed 's/ /_/g' | env LC_COLLATE=C tr "[:lower:]" "[:upper:]"`
+ 	echo "#define SIZEOF_$p $x /* systype-info */"
+       fi
+     fi


More information about the Midnightbsd-cvs mailing list