summaryrefslogtreecommitdiffstats
path: root/package/psybnc/patches
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-06 17:19:05 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-06 17:19:05 +0000
commit2aa1084e258e298ff0e5ccf372c55f3b5ed49f8d (patch)
tree6d6b24394ce88bb5e084616ac9ce537bd8833f16 /package/psybnc/patches
parent7a950538a0a336c547f81651100e7e66a1ddb6cf (diff)
add psybnc package (thanks to Peter Feuerer)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2355 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/psybnc/patches')
-rw-r--r--package/psybnc/patches/Makefile.patch59
-rw-r--r--package/psybnc/patches/psybnc.conf.patch14
-rw-r--r--package/psybnc/patches/psybnc.patch105
-rw-r--r--package/psybnc/patches/startscript.patch16
4 files changed, 194 insertions, 0 deletions
diff --git a/package/psybnc/patches/Makefile.patch b/package/psybnc/patches/Makefile.patch
new file mode 100644
index 000000000..2db956072
--- /dev/null
+++ b/package/psybnc/patches/Makefile.patch
@@ -0,0 +1,59 @@
+--- psybnc/Makefile 2005-06-04 20:22:45.000000000 +0200
++++ psybnc_patched/Makefile 2005-11-04 11:50:28.879157626 +0100
+@@ -1,16 +1,16 @@
+-CC = gcc
++HOSTCC = gcc
+ CCFLAGS =
+
+ all: $(OBJS)
+ @echo Initializing bouncer compilation
+ @echo [*] Running Conversion Tool for older psyBNC Data.
+- @$(CC) tools/convconf.c -o tools/convconf
++ @$(HOSTCC) tools/convconf.c -o tools/convconf
+ @tools/convconf
+ @echo [*] Running Autoconfig.
+- @$(CC) -I. tools/autoconf.c -o tools/autoconf
++ @$(HOSTCC) -I. tools/autoconf.c -o tools/autoconf
+ @tools/autoconf
+ @echo [*] Compiling MakeSalt for Encryption..
+- @$(CC) -I. -o makesalt tools/makesalt.c
++ @$(HOSTCC) -I. -o makesalt tools/makesalt.c
+ @./makesalt
+ @echo [*] Compiling Bouncer..
+ @make -f makefile.out
+@@ -20,14 +20,14 @@
+ menuconfig:
+ @echo Initializing Menu-Configuration
+ @echo [*] Running Conversion Tool for older psyBNC Data.
+- @$(CC) tools/convconf.c -o tools/convconf
++ @$(HOSTCC) tools/convconf.c -o tools/convconf
+ @tools/convconf
+ @echo [*] Running Autoconfig.
+- @$(CC) -I. tools/autoconf.c -o tools/autoconf
++ @$(HOSTCC) -I. tools/autoconf.c -o tools/autoconf
+ @tools/autoconf
+ @echo [*] Creating Menu, please wait.
+ @echo This needs the 'ncurses' library. If it is not available, menuconf wont work. If you are using 'curses', use make menuconfig-curses instead.
+- @$(CC) menuconf/menuconf.c menuconf/inputbox.c menuconf/util.c menuconf/checklist.c menuconf/menubox.c menuconf/textbox.c src/snprintf.c -I. -lncurses -lm -o menuconf/menuconf 2>/dev/null
++ @$(HOSTCC) menuconf/menuconf.c menuconf/inputbox.c menuconf/util.c menuconf/checklist.c menuconf/menubox.c menuconf/textbox.c src/snprintf.c -I. -lncurses -lm -o menuconf/menuconf 2>/dev/null
+ @menuconf/menuconf
+ @clear
+ @echo Now compile psyBNC using make, if not yet compiled, or if Options were changed.
+@@ -36,14 +36,14 @@
+ menuconfig-curses:
+ @echo Initializing Menu-Configuration using Curses
+ @echo [*] Running Conversion Tool for older psyBNC Data.
+- @$(CC) tools/convconf.c -o tools/convconf
++ @$(HOSTCC) tools/convconf.c -o tools/convconf
+ @tools/convconf
+ @echo [*] Running Autoconfig.
+- @$(CC) -I. tools/autoconf.c -o tools/autoconf
++ @$(HOSTCC) -I. tools/autoconf.c -o tools/autoconf
+ @tools/autoconf
+ @echo [*] Creating Menu, please wait.
+ @echo This needs the 'curses' library. If it is not available, menuconf wont work.
+- @$(CC) menuconf/menuconf.c menuconf/inputbox.c menuconf/util.c menuconf/checklist.c menuconf/menubox.c menuconf/textbox.c src/snprintf.c -DNONCURSES -I. -lcurses -lm -o menuconf/menuconf 2>/dev/null
++ @$(HOSTCC) menuconf/menuconf.c menuconf/inputbox.c menuconf/util.c menuconf/checklist.c menuconf/menubox.c menuconf/textbox.c src/snprintf.c -DNONCURSES -I. -lcurses -lm -o menuconf/menuconf 2>/dev/null
+ @menuconf/menuconf
+ @clear
+ @echo Now compile psyBNC using make, if not yet compiled, or if Options were changed.
diff --git a/package/psybnc/patches/psybnc.conf.patch b/package/psybnc/patches/psybnc.conf.patch
new file mode 100644
index 000000000..98e9ad5a9
--- /dev/null
+++ b/package/psybnc/patches/psybnc.conf.patch
@@ -0,0 +1,14 @@
+diff -Naur psybnc/psybnc.conf psybnc_finish/psybnc.conf
+--- psybnc/psybnc.conf 1970-01-01 01:00:00.000000000 +0100
++++ psybnc_finish/psybnc.conf 2005-11-03 18:27:44.726264185 +0100
+@@ -0,0 +1,10 @@
++PSYBNC.SYSTEM.PORT1=50001
++PSYBNC.SYSTEM.ME=psybnc_mipsel
++PSYBNC.SYSTEM.HOST1=*
++PSYBNC.HOSTALLOWS.ENTRY0=*;*
++USER1.USER.NICK=change_me
++USER1.USER.USER=psybnc_admin
++USER1.USER.PASS=change_me
++USER1.USER.RIGHTS=1
++USER1.USER.VLINK=0
++USER1.USER.LOGIN=psybnc_admin
diff --git a/package/psybnc/patches/psybnc.patch b/package/psybnc/patches/psybnc.patch
new file mode 100644
index 000000000..32f2165ea
--- /dev/null
+++ b/package/psybnc/patches/psybnc.patch
@@ -0,0 +1,105 @@
+diff -ur psybnc/config.h psybnc_finish/config.h
+--- psybnc/config.h 2005-06-04 20:22:45.000000000 +0200
++++ psybnc_finish/config.h 2005-11-03 17:05:40.802998216 +0100
+@@ -1,40 +1,7 @@
+-/* $Id: config.h,v 1.2 2005/06/04 18:05:33 hisi Exp $ */
+ /*
+ * Configuration file for psyBNC, created by menuconf
+ */
+
+-/* Encryption */
+-
+-#define CRYPT
+-
+-/* Encryption Type*/
+-
+-#define BLOWFISH
+-
+-/* Allow Translation */
+-
+-#define TRANSLATE
+-
+-/* Allow internal network */
+-
+-#define INTNET
+-
+-/* Allow traffic logging */
+-
+-#define TRAFFICLOG
+-
+-/* Allow linkage of bouncers */
+-
+-#define LINKAGE
+-
+-/* Allow the dcc File-Functions */
+-
+-#define DCCFILES
+-
+-/* Pipe dcc Chats */
+-
+-#define DCCCHAT
+-
+ /* Allow to add more users */
+
+ #define MULTIUSER
+@@ -47,28 +14,27 @@
+
+ #define MAXCONN 99
+
+-/* Allow the usage of scripts */
++/* Use blocking DNS */
+
+-#define SCRIPTING
++#define BLOCKDNS
+
+ /* Allow multiple irc connections per user */
+
+ #define NETWORK
+
+-/* Allow Proxy Support */
++/* The logging level */
+
+-#define PROXYS
++#define LOGLEVEL 2
+
+-/* The logging level */
++/* The ctcp Version reply */
+
+-#define LOGLEVEL 0
++#define CTCPVERSION "psyBNC 2.3.2-7 running on mipsel, ported by piie visit www.linuX-gamers.net"
+
+-/* SSL-Security */
++/* The Path to SSL */
+
+-#define SSLSEC 2
++#define SSLPATH "/tmp/"
+
+-/* Blocking DNS is preferred. Non Blocking DNS is experimental */
++/* SSL-Security */
++
++#define SSLSEC 0
+
+-#ifndef BLOCKDNS
+-#define BLOCKDNS
+-#endif
+diff -ur psybnc/tools/autoconf.c psybnc_finish/tools/autoconf.c
+--- psybnc/tools/autoconf.c 2005-06-04 20:22:45.000000000 +0200
++++ psybnc_finish/tools/autoconf.c 2005-10-29 14:46:49.000000000 +0200
+@@ -425,7 +425,7 @@
+ printf("Can't create makefile.out .. aborting\n");
+ exit(0x1);
+ }
+- fprintf(makefile,"CC = gcc\n");
++ fprintf(makefile,"CC = mipsel-linux-gcc\n");
+ fprintf(makefile,"SRC = src/\n");
+ #ifdef BOUNDCHECK
+ fprintf(makefile,"CFLAGS = -O -fbounds-checking -fno-builtin\n");
+@@ -450,7 +450,7 @@
+ fprintf(makefile,"\n");
+ fprintf(makefile,"all: $(OBJS)\n");
+ fprintf(makefile," $(CC) -o $(TARGET) $(CFLAGS) $(OBJS) $(LIBS)\n");
+- fprintf(makefile," @strip $(TARGET)\n");
++ /*fprintf(makefile," @strip $(TARGET)\n");*/
+ if(ssl==0)
+ {
+ if(!fexists("key/psybnc.cert.pem")) /* only create, if not exist */
diff --git a/package/psybnc/patches/startscript.patch b/package/psybnc/patches/startscript.patch
new file mode 100644
index 000000000..635213db7
--- /dev/null
+++ b/package/psybnc/patches/startscript.patch
@@ -0,0 +1,16 @@
+diff -Naur psybnc/psybnc.sh psybnc_patched/psybnc.sh
+--- psybnc/psybnc.sh 1970-01-01 01:00:00.000000000 +0100
++++ psybnc_finish/psybnc.sh 2005-11-04 12:51:26.478557377 +0100
+@@ -0,0 +1,12 @@
++#!/bin/sh
++
++PDIR=$(pwd);
++cd /usr/share/psybnc;
++./psybnc "$@";
++cd "$PDIR";
++
++echo;
++echo;
++echo "Configuration is located at /usr/share/psybnc/psybnc.conf";
++echo "everything can be configured within your chatclient,";
++echo "after logging in as psybnc_admin ( /bhelp shows bnc help )";