aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/bbftp/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-06-08 02:38:09 +0800
committerpav <pav@FreeBSD.org>2006-06-08 02:38:09 +0800
commiteb28b8e1525feb4b6bedba15f11d76271320eef4 (patch)
tree1a919e4f37586659cc32a3377309e797e7ddeb47 /ftp/bbftp/files
parent695747169ebaae0c74834926a68e8af5213f28be (diff)
downloadfreebsd-ports-gnome-eb28b8e1525feb4b6bedba15f11d76271320eef4.tar.gz
freebsd-ports-gnome-eb28b8e1525feb4b6bedba15f11d76271320eef4.tar.zst
freebsd-ports-gnome-eb28b8e1525feb4b6bedba15f11d76271320eef4.zip
bbFTP is a file transfer software. It implements its own transfer protocol,
which is optimized for large files (larger than 2GB) and secure as it does not read the password in a file and encrypts the connection information. bbFTP main features are: * Encoded username and password at connection * SSH and Certificate authentication modules * Multi-stream transfer * Big windows as defined in RFC1323 * On-the-fly data compression * Automatic retry * Customizable time-outs * Transfer simulation * AFS authentication integration * RFIO interface bbFTP is open-source software, released under the GNU General Public License. It was written by Gilles Farrache at IN2P3 Computing Center in Lyon, France. WWW: http://doc.in2p3.fr/bbftp/index.html PR: ports/98610 Submitted by: Petr Holub <hopet@ics.muni.cz>
Diffstat (limited to 'ftp/bbftp/files')
-rw-r--r--ftp/bbftp/files/bbftp.patch145
-rw-r--r--ftp/bbftp/files/bbftpd.in27
2 files changed, 172 insertions, 0 deletions
diff --git a/ftp/bbftp/files/bbftp.patch b/ftp/bbftp/files/bbftp.patch
new file mode 100644
index 000000000000..cfe1c9a39f82
--- /dev/null
+++ b/ftp/bbftp/files/bbftp.patch
@@ -0,0 +1,145 @@
+diff -ru bbftpc/bbftp_socket.c bbftp/bbftpc/bbftp_socket.c
+--- bbftpc/bbftp_socket.c Wed May 7 14:59:17 2003
++++ bbftpc/bbftp_socket.c Tue Jun 6 23:53:25 2006
+@@ -28,10 +28,10 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <netinet/in.h>
++#include <sys/types.h>
+ #include <netinet/tcp.h>
+ #include <syslog.h>
+ #include <sys/socket.h>
+-#include <sys/types.h>
+ #include <unistd.h>
+ #include <utime.h>
+
+diff -ru bbftpc/bbftp_utils.c bbftp/bbftpc/bbftp_utils.c
+--- bbftpc/bbftp_utils.c Mon Jun 30 14:41:40 2003
++++ bbftpc/bbftp_utils.c Tue Jun 6 23:55:14 2006
+@@ -44,6 +44,7 @@
+ #ifdef HAVE_BYTESWAP_H
+ #include <byteswap.h>
+ #endif
++#include <sys/time.h>
+
+ extern int incontrolsock ;
+ extern int outcontrolsock ;
+diff -ru bbftpc/setsignals.c bbftp/bbftpc/setsignals.c
+--- bbftpc/setsignals.c Wed Apr 17 10:44:24 2002
++++ bbftpc/setsignals.c Tue Jun 6 23:55:59 2006
+@@ -129,9 +129,6 @@
+ if ( sigaction(SIGTSTP,&sga,0) < 0 ) {
+ printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGTSTP : %s \n",strerror(errno)) ;
+ }
+- if ( sigaction(SIGPOLL,&sga,0) < 0 ) {
+- printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGPOLL : %s \n",strerror(errno)) ;
+- }
+ if ( sigaction(SIGPROF,&sga,0) < 0 ) {
+ printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGPROF : %s \n",strerror(errno)) ;
+ }
+diff -ru bbftpd/bbftpd.c bbftp/bbftpd/bbftpd.c
+--- bbftpd/bbftpd.c Thu Jul 24 15:27:55 2003
++++ bbftpd/bbftpd.c Tue Jun 6 23:56:46 2006
+@@ -61,6 +61,7 @@
+ #include <limits.h>
+ #include <netdb.h>
+ #include <netinet/in.h>
++#include <sys/types.h>
+ #include <netinet/tcp.h>
+ #include <pwd.h>
+ #include <signal.h>
+diff -ru bbftpd/bbftpd_daemon.c bbftp/bbftpd/bbftpd_daemon.c
+--- bbftpd/bbftpd_daemon.c Wed Jun 11 17:17:51 2003
++++ bbftpd/bbftpd_daemon.c Tue Jun 6 23:57:11 2006
+@@ -43,6 +43,7 @@
+ *****************************************************************************/
+ #include <netdb.h>
+ #include <netinet/in.h>
++#include <sys/types.h>
+ #include <netinet/tcp.h>
+ #include <stdio.h>
+ #include <syslog.h>
+diff -ru bbftpd/bbftpd_login.c bbftp/bbftpd/bbftpd_login.c
+--- bbftpd/bbftpd_login.c Mon Feb 24 10:26:59 2003
++++ bbftpd/bbftpd_login.c Tue Jun 6 23:59:34 2006
+@@ -47,7 +47,6 @@
+
+ *****************************************************************************/
+
+-#include <crypt.h>
+ #include <errno.h>
+ #include <netinet/in.h>
+ #include <pwd.h>
+@@ -287,6 +286,7 @@
+ PAM_BAIL;
+ retcode = pam_acct_mgmt(pamh, 0);
+ PAM_BAIL;
++#define PAM_ESTABLISH_CRED 1
+ #ifdef PAM_ESTABLISH_CRED
+ retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED);
+ #else
+diff -ru bbftpd/bbftpd_signals.c bbftp/bbftpd/bbftpd_signals.c
+--- bbftpd/bbftpd_signals.c Tue Mar 11 13:34:36 2003
++++ bbftpd/bbftpd_signals.c Wed Jun 7 00:00:47 2006
+@@ -268,7 +268,7 @@
+ */
+ if ( unlinkfile == 1 ) unlink(realfilename) ;
+ clean_child() ;
+- exit() ;
++ exit(0) ;
+ } else {
+ exit(EINTR) ;
+ }
+@@ -358,10 +358,6 @@
+ }
+ if ( sigaction(SIGTSTP,&sga,0) < 0 ) {
+ syslog(BBFTPD_ERR,"Error sigaction SIGTSTP : %s",strerror(errno)) ;
+- return(-1) ;
+- }
+- if ( sigaction(SIGPOLL,&sga,0) < 0 ) {
+- syslog(BBFTPD_ERR,"Error sigaction SIGPOLL : %s",strerror(errno)) ;
+ return(-1) ;
+ }
+ if ( sigaction(SIGPROF,&sga,0) < 0 ) {
+diff -ru bbftpd/bbftpd_socket.c bbftp/bbftpd/bbftpd_socket.c
+--- bbftpd/bbftpd_socket.c Wed Mar 5 12:23:37 2003
++++ bbftpd/bbftpd_socket.c Wed Jun 7 00:01:04 2006
+@@ -30,10 +30,10 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <netinet/in.h>
++#include <sys/types.h>
+ #include <netinet/tcp.h>
+ #include <syslog.h>
+ #include <sys/socket.h>
+-#include <sys/types.h>
+ #include <unistd.h>
+ #include <utime.h>
+
+diff -ru bbftpd/createreceivesock.c bbftp/bbftpd/createreceivesock.c
+--- bbftpd/createreceivesock.c Wed Apr 17 10:45:10 2002
++++ bbftpd/createreceivesock.c Wed Jun 7 00:01:20 2006
+@@ -52,10 +52,10 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <netinet/in.h>
++#include <sys/types.h>
+ #include <netinet/tcp.h>
+ #include <syslog.h>
+ #include <sys/socket.h>
+-#include <sys/types.h>
+ #include <unistd.h>
+
+ #include <common.h>
+diff -ru bbftpd/signals_routines.c bbftp/bbftpd/signals_routines.c
+--- bbftpd/signals_routines.c Wed Apr 17 10:45:10 2002
++++ bbftpd/signals_routines.c Wed Jun 7 00:01:40 2006
+@@ -192,7 +192,7 @@
+ */
+ if ( unlinkfile == 1 ) unlink(currentfilename) ;
+ clean_child() ;
+- exit() ;
++ exit(0) ;
+ } else {
+ exit(EINTR) ;
+ }
diff --git a/ftp/bbftp/files/bbftpd.in b/ftp/bbftp/files/bbftpd.in
new file mode 100644
index 000000000000..8e8ec232db20
--- /dev/null
+++ b/ftp/bbftp/files/bbftpd.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# PROVIDE: bbftpd
+# REQUIRE: LOGIN
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# bbftp_enable (bool): Set to NO by default.
+# Set it to YES to enable bbftpd.
+#
+
+. %%RC_SUBR%%
+
+name="bbftpd"
+rcvar=${name}_enable
+
+command=%%PREFIX%%/bin/${name}
+pidfile=/var/run/${name}.pid
+
+load_rc_config $name
+
+: ${bbftp_enable="NO"}
+
+command_args="-b"
+
+run_rc_command "$1"