Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 2006 06:31:37 +0200 (CEST)
From:      Petr Holub <hopet@ics.muni.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/98610: New port: ftp/bbftp
Message-ID:  <200606070431.k574Vbji070883@evenstar.ics.muni.cz>
Resent-Message-ID: <200606070440.k574eIQB088697@freefall.freebsd.org>

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

>Number:         98610
>Category:       ports
>Synopsis:       New port: ftp/bbftp
>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:   Wed Jun 07 04:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Petr Holub
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
Masaryk University
>Environment:
System: FreeBSD evenstar.ics.muni.cz 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386


>Description:
	bbftp - Multiple stream file transfer protocol optimized for large files.
>How-To-Repeat:

>Fix:

--- bbftp.shar begins here ---
# 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:
#
#	bbftp
#	bbftp/Makefile
#	bbftp/distinfo
#	bbftp/pkg-descr
#	bbftp/files
#	bbftp/files/bbftp.patch
#	bbftp/files/bbftpd.in
#	bbftp/pkg-plist
#
echo c - bbftp
mkdir -p bbftp > /dev/null 2>&1
echo x - bbftp/Makefile
sed 's/^X//' >bbftp/Makefile << 'END-of-bbftp/Makefile'
X# New ports collection makefile for:	bbftp
X# Date created:				6 June 2006
X# Whom:					Petr Holub <hopet@ics.muni.cz>
X#
X# $FreeBSD: ports/x11/xcalib/Makefile,v 1.3 2005/10/22 19:58:24 ehaupt Exp $
X#
X
XPORTNAME=	bbftp
XPORTVERSION=	3.0.2
XCATEGORIES=	ftp
XMASTER_SITES=	http://doc.in2p3.fr/bbftp/dist/ \
X		http://ftp.riken.go.jp/pub/net/bbftp/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	hopet@ics.muni.cz
XCOMMENT=	Multiple stream file transfer protocol optimized for large files
X
XUSE_GMAKE=	yes
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XEXTRA_PATCHES=  ${FILESDIR}/bbftp.patch
X
XUSE_RC_SUBR=	bbftpd
X
XDOC_FILES=
X
XMAN1=		bbftp.1 bbftpd.1
XMANCOMPRESSED=	no
X
Xdo-configure:
X	cd ${WRKSRC}/bbftpc && ./configure --prefix=${PREFIX} ${CONFIGURE_ARGS}
X	cd ${WRKSRC}/bbftpd && ./configure --prefix=${PREFIX} ${CONFIGURE_ARGS}
X
Xdo-build:
X	cd ${WRKSRC}/bbftpc && ${GMAKE}
X	cd ${WRKSRC}/bbftpd && ${GMAKE}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bbftpc/bbftp ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/bbftpd/bbftpd ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/doc/bbftp.1 ${PREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc/bbftpd.1 ${PREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-bbftp/Makefile
echo x - bbftp/distinfo
sed 's/^X//' >bbftp/distinfo << 'END-of-bbftp/distinfo'
XMD5 (bbftp-3.0.2.tar.gz) = 8acd5509b1769fa71f03d1d4e71f198c
XSHA256 (bbftp-3.0.2.tar.gz) = 539ef20f90778783890f81cf6b4cd434bb6c47c392ec824caf92f6ca1005cc72
XSIZE (bbftp-3.0.2.tar.gz) = 344495
END-of-bbftp/distinfo
echo x - bbftp/pkg-descr
sed 's/^X//' >bbftp/pkg-descr << 'END-of-bbftp/pkg-descr'
XbbFTP is a file transfer software. It implements its own transfer protocol,
Xwhich is optimized for large files (larger than 2GB) and secure as it does not
Xread the password in a file and encrypts the connection information.  bbFTP
Xmain features are:
X
X    * Encoded username and password at connection
X    * SSH and Certificate authentication modules
X    * Multi-stream transfer
X    * Big windows as defined in RFC1323
X    * On-the-fly data compression
X    * Automatic retry
X    * Customizable time-outs
X    * Transfer simulation
X    * AFS authentication integration
X    * RFIO interface 
X
XbbFTP is open-source software, released under the GNU General Public License.
XIt was written by Gilles Farrache at IN2P3 Computing Center in Lyon, France. 
X
XWWW: http://doc.in2p3.fr/bbftp/index.html
X
X- Petr
Xhopet@ics.muni.cz
END-of-bbftp/pkg-descr
echo c - bbftp/files
mkdir -p bbftp/files > /dev/null 2>&1
echo x - bbftp/files/bbftp.patch
sed 's/^X//' >bbftp/files/bbftp.patch << 'END-of-bbftp/files/bbftp.patch'
Xdiff -ru bbftpc/bbftp_socket.c bbftp/bbftpc/bbftp_socket.c
X--- bbftpc/bbftp_socket.c	Wed May  7 14:59:17 2003
X+++ bbftpc/bbftp_socket.c	Tue Jun  6 23:53:25 2006
X@@ -28,10 +28,10 @@
X #include <errno.h>
X #include <fcntl.h>
X #include <netinet/in.h>
X+#include <sys/types.h>
X #include <netinet/tcp.h>
X #include <syslog.h>
X #include <sys/socket.h>
X-#include <sys/types.h>
X #include <unistd.h>
X #include <utime.h>
X 
Xdiff -ru bbftpc/bbftp_utils.c bbftp/bbftpc/bbftp_utils.c
X--- bbftpc/bbftp_utils.c	Mon Jun 30 14:41:40 2003
X+++ bbftpc/bbftp_utils.c	Tue Jun  6 23:55:14 2006
X@@ -44,6 +44,7 @@
X #ifdef HAVE_BYTESWAP_H
X #include <byteswap.h>
X #endif
X+#include <sys/time.h>
X 
X extern  int     incontrolsock ;
X extern  int     outcontrolsock ;
Xdiff -ru bbftpc/setsignals.c bbftp/bbftpc/setsignals.c
X--- bbftpc/setsignals.c	Wed Apr 17 10:44:24 2002
X+++ bbftpc/setsignals.c	Tue Jun  6 23:55:59 2006
X@@ -129,9 +129,6 @@
X     if ( sigaction(SIGTSTP,&sga,0) < 0 ) {
X         printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGTSTP : %s \n",strerror(errno)) ;
X     }
X-    if ( sigaction(SIGPOLL,&sga,0) < 0 ) {
X-        printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGPOLL : %s \n",strerror(errno)) ;
X-    }
X     if ( sigaction(SIGPROF,&sga,0) < 0 ) {
X         printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGPROF : %s \n",strerror(errno)) ;
X     }
Xdiff -ru bbftpd/bbftpd.c bbftp/bbftpd/bbftpd.c
X--- bbftpd/bbftpd.c	Thu Jul 24 15:27:55 2003
X+++ bbftpd/bbftpd.c	Tue Jun  6 23:56:46 2006
X@@ -61,6 +61,7 @@
X #include <limits.h>
X #include <netdb.h>
X #include <netinet/in.h>
X+#include <sys/types.h>
X #include <netinet/tcp.h>
X #include <pwd.h>
X #include <signal.h>
Xdiff -ru bbftpd/bbftpd_daemon.c bbftp/bbftpd/bbftpd_daemon.c
X--- bbftpd/bbftpd_daemon.c	Wed Jun 11 17:17:51 2003
X+++ bbftpd/bbftpd_daemon.c	Tue Jun  6 23:57:11 2006
X@@ -43,6 +43,7 @@
X *****************************************************************************/
X #include <netdb.h>
X #include <netinet/in.h>
X+#include <sys/types.h>
X #include <netinet/tcp.h>
X #include <stdio.h>
X #include <syslog.h>
Xdiff -ru bbftpd/bbftpd_login.c bbftp/bbftpd/bbftpd_login.c
X--- bbftpd/bbftpd_login.c	Mon Feb 24 10:26:59 2003
X+++ bbftpd/bbftpd_login.c	Tue Jun  6 23:59:34 2006
X@@ -47,7 +47,6 @@
X                                      
X  *****************************************************************************/
X 
X-#include <crypt.h>
X #include <errno.h>
X #include <netinet/in.h>
X #include <pwd.h>
X@@ -287,6 +286,7 @@
X     PAM_BAIL;
X     retcode = pam_acct_mgmt(pamh, 0);
X     PAM_BAIL;
X+#define PAM_ESTABLISH_CRED 1
X #ifdef PAM_ESTABLISH_CRED
X     retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED);
X #else
Xdiff -ru bbftpd/bbftpd_signals.c bbftp/bbftpd/bbftpd_signals.c
X--- bbftpd/bbftpd_signals.c	Tue Mar 11 13:34:36 2003
X+++ bbftpd/bbftpd_signals.c	Wed Jun  7 00:00:47 2006
X@@ -268,7 +268,7 @@
X         */ 
X         if ( unlinkfile == 1 ) unlink(realfilename) ;
X         clean_child() ;
X-        exit() ;
X+        exit(0) ;
X     } else {
X         exit(EINTR) ;
X     }
X@@ -358,10 +358,6 @@
X     }
X     if ( sigaction(SIGTSTP,&sga,0) < 0 ) {
X         syslog(BBFTPD_ERR,"Error sigaction SIGTSTP : %s",strerror(errno)) ;
X-        return(-1) ;
X-    }
X-    if ( sigaction(SIGPOLL,&sga,0) < 0 ) {
X-        syslog(BBFTPD_ERR,"Error sigaction SIGPOLL : %s",strerror(errno)) ;
X         return(-1) ;
X     }
X     if ( sigaction(SIGPROF,&sga,0) < 0 ) {
Xdiff -ru bbftpd/bbftpd_socket.c bbftp/bbftpd/bbftpd_socket.c
X--- bbftpd/bbftpd_socket.c	Wed Mar  5 12:23:37 2003
X+++ bbftpd/bbftpd_socket.c	Wed Jun  7 00:01:04 2006
X@@ -30,10 +30,10 @@
X #include <errno.h>
X #include <fcntl.h>
X #include <netinet/in.h>
X+#include <sys/types.h>
X #include <netinet/tcp.h>
X #include <syslog.h>
X #include <sys/socket.h>
X-#include <sys/types.h>
X #include <unistd.h>
X #include <utime.h>
X 
Xdiff -ru bbftpd/createreceivesock.c bbftp/bbftpd/createreceivesock.c
X--- bbftpd/createreceivesock.c	Wed Apr 17 10:45:10 2002
X+++ bbftpd/createreceivesock.c	Wed Jun  7 00:01:20 2006
X@@ -52,10 +52,10 @@
X #include <errno.h>
X #include <fcntl.h>
X #include <netinet/in.h>
X+#include <sys/types.h>
X #include <netinet/tcp.h>
X #include <syslog.h>
X #include <sys/socket.h>
X-#include <sys/types.h>
X #include <unistd.h>
X 
X #include <common.h>
Xdiff -ru bbftpd/signals_routines.c bbftp/bbftpd/signals_routines.c
X--- bbftpd/signals_routines.c	Wed Apr 17 10:45:10 2002
X+++ bbftpd/signals_routines.c	Wed Jun  7 00:01:40 2006
X@@ -192,7 +192,7 @@
X         */ 
X         if ( unlinkfile == 1 ) unlink(currentfilename) ;
X         clean_child() ;
X-        exit() ;
X+        exit(0) ;
X     } else {
X         exit(EINTR) ;
X     }
END-of-bbftp/files/bbftp.patch
echo x - bbftp/files/bbftpd.in
sed 's/^X//' >bbftp/files/bbftpd.in << 'END-of-bbftp/files/bbftpd.in'
X#!/bin/sh
X
X# PROVIDE: bbftpd
X# REQUIRE: LOGIN
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# bbftp_enable (bool):   Set to NO by default.
X#               Set it to YES to enable bbftpd.
X#
X
X. %%RC_SUBR%%
X
Xname="bbftpd"
Xrcvar=${name}_enable
X
Xcommand=%%PREFIX%%/bin/${name}
Xpidfile=/var/run/${name}.pid
X
Xload_rc_config $name
X
X: ${bbftp_enable="NO"}
X
Xcommand_args="-b"
X
Xrun_rc_command "$1"
END-of-bbftp/files/bbftpd.in
echo x - bbftp/pkg-plist
sed 's/^X//' >bbftp/pkg-plist << 'END-of-bbftp/pkg-plist'
Xbin/bbftp
Xbin/bbftpd
END-of-bbftp/pkg-plist
exit
--- bbftp.shar ends here ---


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



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