diff options
Diffstat (limited to 'net-p2p/bnbt/files')
-rw-r--r-- | net-p2p/bnbt/files/bnbt.in | 38 | ||||
-rw-r--r-- | net-p2p/bnbt/files/patch-base64.cpp | 26 | ||||
-rw-r--r-- | net-p2p/bnbt/files/patch-client.cpp | 17 | ||||
-rw-r--r-- | net-p2p/bnbt/files/patch-config.cpp | 15 | ||||
-rw-r--r-- | net-p2p/bnbt/files/patch-server.cpp | 11 | ||||
-rw-r--r-- | net-p2p/bnbt/files/patch-sha1.cpp | 32 | ||||
-rw-r--r-- | net-p2p/bnbt/files/patch-sha1.h | 31 | ||||
-rw-r--r-- | net-p2p/bnbt/files/pkg-message.in | 15 |
8 files changed, 0 insertions, 185 deletions
diff --git a/net-p2p/bnbt/files/bnbt.in b/net-p2p/bnbt/files/bnbt.in deleted file mode 100644 index f8bde3c225cb..000000000000 --- a/net-p2p/bnbt/files/bnbt.in +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: bnbt -# REQUIRE: LOGIN abi -# BEFORE: securelevel -# KEYWORD: shutdown - -# Add the following line to /etc/rc.conf to enable `bnbt': -# -# bnbt_enable="YES" -# bnbt_flags="<set as needed>" -# -# See bnbt(1) for bnbt_flags -# - -. /etc/rc.subr - -name="bnbt" -rcvar=bnbt_enable - -# path to your executable, might be libxec, bin, sbin, ... -command="%%PREFIX%%/bin/$name" - -# extra required arguments -command_args="&" - -# you can check for required_dirs and required_vars too, see rc.subr(8) -# -required_dirs="/var/log/$name" - -# read settings, set default values -load_rc_config "$name" -: ${bnbt_enable="NO"} - -run_rc_command "$1" diff --git a/net-p2p/bnbt/files/patch-base64.cpp b/net-p2p/bnbt/files/patch-base64.cpp deleted file mode 100644 index 51948c46fa82..000000000000 --- a/net-p2p/bnbt/files/patch-base64.cpp +++ /dev/null @@ -1,26 +0,0 @@ ---- base64.cpp.orig 2017-02-01 19:29:59 UTC -+++ base64.cpp -@@ -114,6 +114,7 @@ uchar pBase64[] = { - char *b64decode(const char *s) - { - int l = strlen(s); // Get length of Base64 string. -+ const char *p; // Separator position - char *b; // Decoding buffer pointers. - uchar c = 0; // Character to decode. - int x = 0; // General purpose integers. -@@ -126,12 +127,12 @@ char *b64decode(const char *s) - if (l % 4) // If it's not modulo 4, then it... - return b64isnot(NULL); // ...can't be a Base64 string. - -- if ((b = strchr(s, pPad[0])) != NULL) // Only one, two or three equal... -+ if ((p = strchr(s, pPad[0])) != NULL) // Only one, two or three equal... - { // ...'=' signs are allowed at... -- if ((b - s) < (l - 3)) // ...the end of the Base64 string. -+ if ((p - s) < (l - 3)) // ...the end of the Base64 string. - return b64isnot(NULL); // Any other equal '=' signs are... - else // ...invalid. -- if (strncmp(b, (const char *) pPad + 3 - (s + l - b), s + l - b)) -+ if (strncmp(p, (const char *) pPad + 3 - (s + l - p), s + l - p)) - return b64isnot(NULL); - } - diff --git a/net-p2p/bnbt/files/patch-client.cpp b/net-p2p/bnbt/files/patch-client.cpp deleted file mode 100644 index da622fab52d6..000000000000 --- a/net-p2p/bnbt/files/patch-client.cpp +++ /dev/null @@ -1,17 +0,0 @@ ---- client.cpp Wed Sep 29 21:38:32 2004 -+++ client.cpp.new Sat Oct 23 15:40:05 2004 -@@ -19,6 +19,7 @@ - * - ***/ - -+#include <sys/time.h> - #include <fcntl.h> - - #include "bnbt.h" -@@ -639,4 +640,4 @@ - rsp.strContent.reserve( 1024 ); - rsp.bCompressOK = true; - m_iLast = GetTime( ); --} -\ No newline at end of file -+} diff --git a/net-p2p/bnbt/files/patch-config.cpp b/net-p2p/bnbt/files/patch-config.cpp deleted file mode 100644 index f9a3636c1bb0..000000000000 --- a/net-p2p/bnbt/files/patch-config.cpp +++ /dev/null @@ -1,15 +0,0 @@ ---- config.cpp Fri Sep 24 20:01:58 2004 -+++ config.cpp.new Sat Oct 23 14:42:45 2004 -@@ -147,10 +147,10 @@ - CFG_SetString( "bnbt_realm", "BNBT" ); - - if( CFG_GetString( "bnbt_error_log_dir", string( ) ).empty( ) ) -- CFG_SetString( "bnbt_error_log_dir", string( ) ); -+ CFG_SetString( "bnbt_error_log_dir", "/var/log/bnbt/" ); - - if( CFG_GetString( "bnbt_access_log_dir", string( ) ).empty( ) ) -- CFG_SetString( "bnbt_access_log_dir", string( ) ); -+ CFG_SetString( "bnbt_access_log_dir", "/var/log/bnbt/" ); - - if( CFG_GetInt( "bnbt_flush_interval", 0 ) < 1 ) - CFG_SetInt( "bnbt_flush_interval", 100 ); diff --git a/net-p2p/bnbt/files/patch-server.cpp b/net-p2p/bnbt/files/patch-server.cpp deleted file mode 100644 index 856ac603c773..000000000000 --- a/net-p2p/bnbt/files/patch-server.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- server.cpp Fri Sep 10 14:43:24 2004 -+++ server.cpp.new Sat Oct 23 15:40:21 2004 -@@ -19,6 +19,8 @@ - * - ***/ - -+#include <sys/time.h> -+ - #include "bnbt.h" - #include "client.h" - #include "config.h" diff --git a/net-p2p/bnbt/files/patch-sha1.cpp b/net-p2p/bnbt/files/patch-sha1.cpp deleted file mode 100644 index ab0df251a7a7..000000000000 --- a/net-p2p/bnbt/files/patch-sha1.cpp +++ /dev/null @@ -1,32 +0,0 @@ ---- sha1.cpp 2009-06-30 14:02:51.000000000 -0700 -+++ sha1.cpp.new 2009-06-30 14:02:47.000000000 -0700 -@@ -44,9 +44,9 @@ - m_count[1] = 0; - } - --void CSHA1::Transform(unsigned long state[5], const unsigned char buffer[64]) -+void CSHA1::Transform(unsigned int state[5], const unsigned char buffer[64]) - { -- unsigned long a = 0, b = 0, c = 0, d = 0, e = 0; -+ unsigned int a = 0, b = 0, c = 0, d = 0, e = 0; - - SHA1_WORKSPACE_BLOCK* block; - static unsigned char workspace[64]; -@@ -96,7 +96,7 @@ - // Use this function to hash in binary data and strings - void CSHA1::Update(const unsigned char* data, unsigned int len) - { -- unsigned long i = 0, j = 0; -+ unsigned int i = 0, j = 0; - - j = (m_count[0] >> 3) & 63; - -@@ -123,7 +123,7 @@ - - void CSHA1::Final() - { -- unsigned long i = 0, j = 0; -+ unsigned int i = 0, j = 0; - unsigned char finalcount[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; - - for (i = 0; i < 8; i++) diff --git a/net-p2p/bnbt/files/patch-sha1.h b/net-p2p/bnbt/files/patch-sha1.h deleted file mode 100644 index cfe3bbab2959..000000000000 --- a/net-p2p/bnbt/files/patch-sha1.h +++ /dev/null @@ -1,31 +0,0 @@ ---- sha1.h 2009-06-30 14:02:51.000000000 -0700 -+++ sha1.h.new 2009-06-30 14:02:47.000000000 -0700 -@@ -59,7 +59,7 @@ - - typedef union { - unsigned char c[64]; -- unsigned long l[16]; -+ unsigned int l[16]; - } SHA1_WORKSPACE_BLOCK; - - // Two different formats for ReportHash(...) -@@ -69,8 +69,8 @@ - CSHA1(); - virtual ~CSHA1(); - -- unsigned long m_state[5]; -- unsigned long m_count[2]; -+ unsigned int m_state[5]; -+ unsigned int m_count[2]; - unsigned char m_buffer[64]; - unsigned char m_digest[20]; - -@@ -86,7 +86,7 @@ - - private: - // Private SHA-1 transformation -- void Transform(unsigned long state[5], const unsigned char buffer[64]); -+ void Transform(unsigned int state[5], const unsigned char buffer[64]); - }; - - #endif // ___SHA1_H___ diff --git a/net-p2p/bnbt/files/pkg-message.in b/net-p2p/bnbt/files/pkg-message.in deleted file mode 100644 index 2a6f81e282dd..000000000000 --- a/net-p2p/bnbt/files/pkg-message.in +++ /dev/null @@ -1,15 +0,0 @@ -[ -{ type: install - message: <<EOM -For more information on how to configure BNBT: - -http://wiki.depthstrike.com/index.php/BNBT:Documentation:Configuration - -In order to run bnbt, add the following lines to /etc/rc.conf: - bnbt_enable="YES" - -Then start the server with %%PREFIX%%/etc/rc.d/bnbt.sh start -or reboot. -EOM -} -] |