diff options
Diffstat (limited to 'package/cbtt/patches')
-rw-r--r-- | package/cbtt/patches/patch-Makefile | 61 | ||||
-rw-r--r-- | package/cbtt/patches/patch-base64_cpp | 20 | ||||
-rw-r--r-- | package/cbtt/patches/patch-bnbt_h | 11 |
3 files changed, 0 insertions, 92 deletions
diff --git a/package/cbtt/patches/patch-Makefile b/package/cbtt/patches/patch-Makefile deleted file mode 100644 index ddcc23d82..000000000 --- a/package/cbtt/patches/patch-Makefile +++ /dev/null @@ -1,61 +0,0 @@ ---- cbtt80-20060211-src.orig/Makefile 2006-02-07 18:44:58.000000000 +0100 -+++ cbtt80-20060211-src/Makefile 2010-02-14 09:21:02.000000000 +0100 -@@ -1,10 +1,8 @@ --SHELL = /bin/sh --SYSTEM = $(shell uname) --C++ = g++ -+SHELL ?= /bin/sh -+SYSTEM = Linux - DFLAGS = --OFLAGS = -O2 -w - LFLAGS = -L. -lz --CFLAGS = -+CFLAGS ?= - - ifeq ($(SYSTEM),Linux) - DFLAGS += -D__LINUX__ -@@ -29,30 +27,31 @@ LFLAGS = -lresolv -lsocket -lnsl -lpthre - CFLAGS = - endif - --CFLAGS += $(OFLAGS) $(DFLAGS) -I. -+LDFLAGS += $(LFLAGS) -+CFLAGS += $(LDFLAGS) -I. - - OBJS = atom.o base64.o bencode.o client.o config.o link.o md5.o server.o sha1.o sort.o tracker_admin.o tracker_comments.o tracker_file.o tracker_index.o tracker_info.o tracker_login.o tracker_signup.o tracker_stats.o tracker_torrent.o tracker_upload.o tracker_users.o util.o - OBJS_BNBT = bnbt.o tracker.o tracker_announce.o tracker_scrape.o - OBJS_BNBTMYSQL = bnbt.mysql.o bnbt_mysql.mysql.o tracker.mysql.o tracker_announce.mysql.o tracker_scrape.mysql.o - --PROGS = ./bnbt ./bnbtmysql -+PROGS = ./bnbt - --all: $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS) -+all: $(OBJS) $(OBJS_BNBT) $(PROGS) - - ./bnbt: $(OBJS) $(OBJS_BNBT) -- $(C++) -o ./bnbt $(OBJS) $(OBJS_BNBT) $(LFLAGS) -+ $(CXX) -o ./bnbt $(OBJS) $(OBJS_BNBT) $(LDFLAGS) - - ./bnbtmysql: $(OBJS) $(OBJS_BNBTMYSQL) -- $(C++) -o ./bnbtmysql $(OBJS) $(OBJS_BNBTMYSQL) $(LFLAGS) -L/usr/lib/mysql -lmysqlclient -+ $(CXX) -o ./bnbtmysql $(OBJS) $(OBJS_BNBTMYSQL) $(LDFLAGS) -L/usr/lib/mysql -lmysqlclient - - clean: - rm -f $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS) - - %.o: %.cpp -- $(C++) -o $@ $(CFLAGS) -c $< -+ $(CXX) -o $@ $(CFLAGS) -c $< - - %.mysql.o: %.cpp -- $(C++) -o $@ $(CFLAGS) -DBNBT_MYSQL -c $< -+ $(CXX) -o $@ $(CFLAGS) -DBNBT_MYSQL -c $< - - ./bnbt: $(OBJS) $(OBJS_BNBT) - -@@ -91,4 +90,4 @@ bnbt.mysql.o: bnbt.h bnbt_mysql.h config - bnbt_mysql.mysql.o: bnbt.h bnbt_mysql.h util.h - tracker.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h config.h md5.h server.h sort.h tracker.h util.h - tracker_announce.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h link.h tracker.h util.h --tracker_scrape.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h tracker.h util.h -+tracker_scrape.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h tracker.h util.h diff --git a/package/cbtt/patches/patch-base64_cpp b/package/cbtt/patches/patch-base64_cpp deleted file mode 100644 index d69e6f997..000000000 --- a/package/cbtt/patches/patch-base64_cpp +++ /dev/null @@ -1,20 +0,0 @@ -$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ ---- cbtt80-20060211-src.orig/base64.cpp 2006-02-07 18:44:58.000000000 +0100 -+++ cbtt80-20060211-src/base64.cpp 2009-06-01 19:00:07.000000000 +0200 -@@ -112,7 +112,7 @@ uchar pBase64[] = { - /* Returns: bool - True (!0) if the operation was successful. */
- /* False (0) if the operation was unsuccessful. */
- /*---------------------------------------------------------------------------*/
--char *b64decode(const char *s)
-+char *b64decode(char *s)
- {
- int l = strlen(s); // Get length of Base64 string.
- char *b; // Decoding buffer pointers.
-@@ -121,7 +121,6 @@ char *b64decode(const char *s)
- int y = 0;
-
- static // Collating sequence...
-- const // ...independant "===".
- char pPad[] = {0x3d, 0x3d, 0x3d, 0x00};
-
- if (l % 4) // If it's not modulo 4, then it...
diff --git a/package/cbtt/patches/patch-bnbt_h b/package/cbtt/patches/patch-bnbt_h deleted file mode 100644 index 6169a027c..000000000 --- a/package/cbtt/patches/patch-bnbt_h +++ /dev/null @@ -1,11 +0,0 @@ -$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ ---- cbtt80-20060211-src.orig/bnbt.h 2006-02-07 18:44:58.000000000 +0100 -+++ cbtt80-20060211-src/bnbt.h 2009-05-09 16:17:54.000000000 +0200 -@@ -5,6 +5,7 @@ - #ifndef BNBT_H
- #define BNBT_H
-
-+#include <string.h> - #include <stdio.h>
- #include <time.h>
-
|