add psybnc package (thanks to Peter Feuerer)

SVN-Revision: 2355
This commit is contained in:
Nicolas Thill 2005-11-06 17:19:05 +00:00
parent 4b8a6703c5
commit dacafff89c
9 changed files with 252 additions and 0 deletions

View File

@ -25,6 +25,7 @@ source "package/nano/Config.in"
source "package/osiris/Config.in" source "package/osiris/Config.in"
source "package/php4/Config.in" source "package/php4/Config.in"
source "package/php5/Config.in" source "package/php5/Config.in"
source "package/psybnc/Config.in"
menu "sablevm........................... A Java Virtual Machine (JVM) implementation" menu "sablevm........................... A Java Virtual Machine (JVM) implementation"
source "package/sablevm/Config.in" source "package/sablevm/Config.in"
source "package/sablevm-classpath/Config.in" source "package/sablevm-classpath/Config.in"

View File

@ -150,6 +150,7 @@ package-$(BR2_COMPILE_POSTGRESQL) += postgresql
package-$(BR2_PACKAGE_PPP) += ppp package-$(BR2_PACKAGE_PPP) += ppp
package-$(BR2_PACKAGE_PPTP) += pptp package-$(BR2_PACKAGE_PPTP) += pptp
package-$(BR2_PACKAGE_PPTPD) += pptpd package-$(BR2_PACKAGE_PPTPD) += pptpd
package-$(BR2_PACKAGE_PSYBNC) += psybnc
package-$(BR2_PACKAGE_QUAGGA) += quagga package-$(BR2_PACKAGE_QUAGGA) += quagga
package-$(BR2_PACKAGE_RADVD) += radvd package-$(BR2_PACKAGE_RADVD) += radvd
package-$(BR2_PACKAGE_RARPD) += rarpd package-$(BR2_PACKAGE_RARPD) += rarpd

View File

@ -0,0 +1,13 @@
config BR2_PACKAGE_PSYBNC
prompt "psybnc............................ An IRC-Bouncer with many features"
tristate
default m if CONFIG_DEVEL
help
psyBNC is an easy-to-use, multi-user, permanent
IRC-Bouncer with many features. Some of its features
vhost- and relay support to connected bouncers and an
extensive online help system. Many other helpful
functions are included.
http://www.psybnc.info/

View File

@ -0,0 +1,39 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=psybnc
PKG_VERSION:=2.3.2-7
PKG_RELEASE:=1
PKG_MD5SUM:=4b893a92f914813450e0921b2894ad6c
PKG_SOURCE_URL:=http://www.psybnc.info/download/beta/
PKG_SOURCE:=psyBNC-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,PSYBNC,psybnc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
HOSTCC="$(HOSTCC)" \
all
touch $@
$(IPKG_PSYBNC):
install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/lang/
install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/log/
install -d -m0755 $(IDIR_PSYBNC)/usr/sbin/
install -m0755 $(PKG_BUILD_DIR)/psybnc $(IDIR_PSYBNC)/usr/share/psybnc/
install -m0600 $(PKG_BUILD_DIR)/psybnc.conf $(IDIR_PSYBNC)/usr/share/psybnc/
install -m0644 $(PKG_BUILD_DIR)/lang/english.lng $(IDIR_PSYBNC)/usr/share/psybnc/lang/
install -m0755 $(PKG_BUILD_DIR)/psybnc.sh $(IDIR_PSYBNC)/usr/sbin/psybnc
$(RSTRIP) $(IDIR_PSYBNC)
$(IPKG_BUILD) $(IDIR_PSYBNC) $(PACKAGE_DIR)
mostlyclean:
-$(MAKE) -C $(PKG_BUILD_DIR) clean
rm -f $(PKG_BUILD_DIR)/.built

View File

@ -0,0 +1,4 @@
Package: psybnc
Priority: optional
Section: net
Description: IRC-Bouncer with many features

View File

@ -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.

View File

@ -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

View File

@ -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 */

View File

@ -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 )";