2013-03-05 16:44:27 +00:00
|
|
|
class BbftpClient < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Secure file transfer software, optimized for large files"
|
2015-01-14 02:43:20 +00:00
|
|
|
homepage "http://doc.in2p3.fr/bbftp/"
|
|
|
|
url "http://doc.in2p3.fr/bbftp/dist/bbftp-client-3.2.1.tar.gz"
|
|
|
|
sha1 "26113782b8826610c877f83bdaf79798b30a507d"
|
|
|
|
revision 1
|
|
|
|
|
2015-01-14 12:32:01 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "4e5112365ba0915eb0d1d12c5714f20e01ef6630" => :yosemite
|
|
|
|
sha1 "50eedb1c7b58d4c8a78a8e5906235e6333a725f8" => :mavericks
|
|
|
|
sha1 "8b0f23cbcd8f3385a9d2e86a66e713cf6f3b36f3" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-01-14 02:43:20 +00:00
|
|
|
depends_on "openssl"
|
|
|
|
|
|
|
|
# Dirty patch to fix ntohll errors on Yosemite.
|
|
|
|
# Reported upstream on 14/01/2015.
|
|
|
|
patch :DATA if MacOS.version >= :yosemite
|
2013-03-05 16:44:27 +00:00
|
|
|
|
|
|
|
def install
|
2015-01-14 02:43:20 +00:00
|
|
|
cd "bbftpc" do
|
2013-03-05 16:44:27 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2015-01-14 02:43:20 +00:00
|
|
|
"--with-ssl=#{Formula["openssl"].opt_prefix}", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
2013-03-05 16:44:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/bbftp", "-v"
|
|
|
|
end
|
|
|
|
end
|
2015-01-14 02:43:20 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
|
|
|
|
diff --git a/bbftpc/bbftp_get.c b/bbftpc/bbftp_get.c
|
|
|
|
index 96c8d35..b1cd2e3 100644
|
|
|
|
--- a/bbftpc/bbftp_get.c
|
|
|
|
+++ b/bbftpc/bbftp_get.c
|
|
|
|
@@ -94,9 +94,9 @@ extern int nbport ;
|
|
|
|
extern int state ;
|
|
|
|
extern int protocol ;
|
|
|
|
|
|
|
|
-#ifndef HAVE_NTOHLL
|
|
|
|
-my64_t ntohll(my64_t v) ;
|
|
|
|
-#endif
|
|
|
|
+// #ifndef HAVE_NTOHLL
|
|
|
|
+// my64_t ntohll(my64_t v) ;
|
|
|
|
+// #endif
|
|
|
|
|
|
|
|
int bbftp_get(char *remotefilename,int *errcode)
|
|
|
|
{
|
|
|
|
|
|
|
|
diff --git a/bbftpc/bbftp_put.c b/bbftpc/bbftp_put.c
|
|
|
|
index 53c9919..b633ceb 100644
|
|
|
|
--- a/bbftpc/bbftp_put.c
|
|
|
|
+++ b/bbftpc/bbftp_put.c
|
|
|
|
@@ -96,9 +96,9 @@ extern int state ;
|
|
|
|
extern int simulation_mode ;
|
|
|
|
extern int protocol ;
|
|
|
|
|
|
|
|
-#ifndef HAVE_NTOHLL
|
|
|
|
-my64_t ntohll(my64_t v) ;
|
|
|
|
-#endif
|
|
|
|
+// #ifndef HAVE_NTOHLL
|
|
|
|
+// my64_t ntohll(my64_t v) ;
|
|
|
|
+// #endif
|
|
|
|
|
|
|
|
int bbftp_put(char *remotefilename,int *errcode)
|
|
|
|
{
|
|
|
|
|
|
|
|
diff --git a/bbftpc/bbftp_utils.c b/bbftpc/bbftp_utils.c
|
|
|
|
index 40d5f9e..7143903 100644
|
|
|
|
--- a/bbftpc/bbftp_utils.c
|
|
|
|
+++ b/bbftpc/bbftp_utils.c
|
|
|
|
@@ -82,20 +82,20 @@ my64_t convertlong(my64_t v) {
|
|
|
|
return tmp64 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
-#ifndef HAVE_NTOHLL
|
|
|
|
-my64_t ntohll(my64_t v) {
|
|
|
|
-#ifdef HAVE_BYTESWAP_H
|
|
|
|
- return bswap_64(v);
|
|
|
|
-#else
|
|
|
|
- long lo = v & 0xffffffff;
|
|
|
|
- long hi = v >> 32U;
|
|
|
|
- lo = ntohl(lo);
|
|
|
|
- hi = ntohl(hi);
|
|
|
|
- return ((my64_t) lo) << 32U | hi;
|
|
|
|
-#endif
|
|
|
|
-}
|
|
|
|
-#define htonll ntohll
|
|
|
|
-#endif
|
|
|
|
+// #ifndef HAVE_NTOHLL
|
|
|
|
+// my64_t ntohll(my64_t v) {
|
|
|
|
+// #ifdef HAVE_BYTESWAP_H
|
|
|
|
+// return bswap_64(v);
|
|
|
|
+// #else
|
|
|
|
+// long lo = v & 0xffffffff;
|
|
|
|
+// long hi = v >> 32U;
|
|
|
|
+// lo = ntohl(lo);
|
|
|
|
+// hi = ntohl(hi);
|
|
|
|
+// return ((my64_t) lo) << 32U | hi;
|
|
|
|
+// #endif
|
|
|
|
+// }
|
|
|
|
+// #define htonll ntohll
|
|
|
|
+// #endif
|
|
|
|
|
|
|
|
void printmessage(FILE *strm , int flag, int errcode, int tok, char *fmt, ...)
|
|
|
|
{
|