summaryrefslogtreecommitdiff
path: root/chat/psybnc
diff options
context:
space:
mode:
authorpettai <pettai>2014-06-15 21:55:17 +0000
committerpettai <pettai>2014-06-15 21:55:17 +0000
commit080de2e91b7beda879e56e8dc6cf1c4bc3ca80bc (patch)
treefffd80ef78a1b09ad38b50145edffdeb26e87cf5 /chat/psybnc
parent1e8ab7edca9a8619b806c1e9d4bc7f000718e437 (diff)
downloadpkgsrc-080de2e91b7beda879e56e8dc6cf1c4bc3ca80bc.tar.gz
psyBNC is an easy-to-use, multi-user, permanent IRC-Bouncer with many features.
Some of its features include symmetric ciphering of talk and connections (Blowfish and IDEA), the possibility of linking multiple bouncers to an internal network including a shared partyline, vhost- and relay support to connected bouncers and an extensive online help system.
Diffstat (limited to 'chat/psybnc')
-rw-r--r--chat/psybnc/DESCR5
-rw-r--r--chat/psybnc/Makefile68
-rw-r--r--chat/psybnc/PLIST8
-rw-r--r--chat/psybnc/distinfo7
-rw-r--r--chat/psybnc/files/config.h98
-rw-r--r--chat/psybnc/patches/patch-aa18
-rw-r--r--chat/psybnc/patches/patch-ac41
7 files changed, 245 insertions, 0 deletions
diff --git a/chat/psybnc/DESCR b/chat/psybnc/DESCR
new file mode 100644
index 00000000000..d6ee25a35e5
--- /dev/null
+++ b/chat/psybnc/DESCR
@@ -0,0 +1,5 @@
+psyBNC is an easy-to-use, multi-user, permanent IRC-Bouncer with many features.
+Some of its features include symmetric ciphering of talk and connections
+(Blowfish and IDEA), the possibility of linking multiple bouncers to an
+internal network including a shared partyline, vhost- and relay support to
+connected bouncers and an extensive online help system.
diff --git a/chat/psybnc/Makefile b/chat/psybnc/Makefile
new file mode 100644
index 00000000000..2ca2b4bfa57
--- /dev/null
+++ b/chat/psybnc/Makefile
@@ -0,0 +1,68 @@
+# $NetBSD: Makefile,v 1.1 2014/06/15 21:55:17 pettai Exp $
+#
+
+DISTNAME= psyBNC-2.4BETA2
+PKGNAME= psybnc-2.4b2
+CATEGORIES= chat
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=psybnc/}
+
+MAINTAINER= pettai@NetBSD.org
+HOMEPAGE= http://www.psybnc.at/
+COMMENT= Easy-to-use, multi-user, IRC-Bouncer with many features
+LICENSE= gnu-gpl-v2
+
+WRKSRC= ${WRKDIR}/psybnc
+
+USE_TOOLS+= gmake
+
+PSYBNC_USER?= psybnc
+PSYBNC_GROUP?= psybnc
+PKG_GROUPS= ${PSYBNC_USER}
+PKG_USERS= ${PSYBNC_USER}:${PSYBNC_GROUP}
+PKG_GROUPS_VARS+= PSYBNC_GROUP
+PKG_USERS_VARS+= PSYBNC_USER
+
+CONF_FILES= share/examples/psybnc/psybnc.conf \
+ ${PKG_SYSCONFDIR}/psybnc.conf
+
+SUBST_CLASSES+= prefix
+SUBST_FILES.prefix= tools/autoconf.c
+SUBST_SED.prefix= -e "s|@PREFIX@|${PREFIX}|g"
+SUBST_STAGE.prefix= post-patch
+
+SUBST_CLASSES+= openssl
+SUBST_FILES.openssl= makefile.out
+SUBST_SED.openssl= -e "s|/usr/bin/openssl|openssl|g"
+SUBST_SED.openssl= -e "s|req -new|req -new -batch|g"
+SUBST_STAGE.openssl= post-configure
+
+INSTALLATION_DIRS= bin share/examples/psybnc
+INSTALLATION_DIRS+= share/doc/psybnc
+
+do-configure:
+ cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
+ ${GMAKE}
+ ${CP} ${FILESDIR}/config.h ${WRKSRC}
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
+ ${GMAKE} -f makefile.out
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/psybnc \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/psybncchk \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/FAQ \
+ ${DESTDIR}${PREFIX}/share/doc/psybnc
+ ${INSTALL_DATA} ${WRKSRC}/README \
+ ${DESTDIR}${PREFIX}/share/doc/psybnc
+ ${INSTALL_DATA} ${WRKSRC}/scripts/SCRIPTING \
+ ${DESTDIR}${PREFIX}/share/doc/psybnc
+ ${INSTALL_DATA} ${WRKSRC}/scripts/example/DEFAULT.SCRIPT \
+ ${DESTDIR}${PREFIX}/share/examples/psybnc
+ ${INSTALL_DATA} ${WRKSRC}/psybnc.conf \
+ ${DESTDIR}${PREFIX}/share/examples/psybnc
+
+.include "../../net/libcares/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/chat/psybnc/PLIST b/chat/psybnc/PLIST
new file mode 100644
index 00000000000..a1b54073b61
--- /dev/null
+++ b/chat/psybnc/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2014/06/15 21:55:17 pettai Exp $
+bin/psybnc
+bin/psybncchk
+share/doc/psybnc/FAQ
+share/doc/psybnc/README
+share/doc/psybnc/SCRIPTING
+share/examples/psybnc/DEFAULT.SCRIPT
+share/examples/psybnc/psybnc.conf
diff --git a/chat/psybnc/distinfo b/chat/psybnc/distinfo
new file mode 100644
index 00000000000..d7aa6b0e507
--- /dev/null
+++ b/chat/psybnc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/06/15 21:55:17 pettai Exp $
+
+SHA1 (psyBNC-2.4BETA2.tar.gz) = 6af7b3a89857213fdcca05deeeedd0303fb614bf
+RMD160 (psyBNC-2.4BETA2.tar.gz) = 053d09539341ebe9936a50a80b35bd9849f70eb1
+Size (psyBNC-2.4BETA2.tar.gz) = 1061094 bytes
+SHA1 (patch-aa) = 61b46a7180926d56fb0b56c9c56320695962176b
+SHA1 (patch-ac) = 44dfcef810bd557a5ffc019d7a6a8303b9b8295c
diff --git a/chat/psybnc/files/config.h b/chat/psybnc/files/config.h
new file mode 100644
index 00000000000..bcb987b1ed7
--- /dev/null
+++ b/chat/psybnc/files/config.h
@@ -0,0 +1,98 @@
+/*
+ * 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
+
+/* Number of max. Users */
+
+#define MAXUSER 10
+
+/* Number of max. Connections per User */
+
+#define MAXCONN 0
+
+/* Allow the usage of scripts */
+
+#define SCRIPTING
+
+/* Support oIdentd */
+
+/* #define OIDENTD */
+
+/* Allow multiple irc connections per user */
+
+#define NETWORK
+
+/* Allow Proxy Support */
+
+/* #define PROXYS */
+
+/* Set psyBNC anonymous */
+
+/* #define ANONYMOUS */
+
+/* Connections arent permanent */
+
+/* #define DYNAMIC */
+
+/* The logging level */
+
+#define LOGLEVEL 0
+
+/* We still use the 2.1.1 stylish partychannel */
+
+/* #define PARTYCHANNEL */
+
+/* MySQL-based IP-check on incoming client connections */
+
+/* #define MYSQL_IPCHECK
+ #define MYSQL_SERVER "localhost"
+ #define MYSQL_USER "psybnc"
+ #define MYSQL_PASS "AxKps4ATS4uNyv3r"
+ #define MYSQL_DB "psybnc"
+ #define MYSQL_TABLE "iplock"
+ #define MYSQL_TIMEOUT 2 */
+
+/* The Path to SSL */
+
+#define SSLPATH "/usr/"
+
+/* SSL-Security */
+
+#define SSLSEC 0
+
+/* Insure */
+
+#define INSURE
+
diff --git a/chat/psybnc/patches/patch-aa b/chat/psybnc/patches/patch-aa
new file mode 100644
index 00000000000..8351fead9d4
--- /dev/null
+++ b/chat/psybnc/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1 2014/06/15 21:55:17 pettai Exp $
+
+use pkgsrc framework then compiling
+
+--- Makefile.orig 2011-07-14 18:57:41.000000000 +0000
++++ Makefile
+@@ -13,10 +13,7 @@ all: $(OBJS)
+ @echo [*] Compiling MakeSalt for Encryption..
+ @$(CC) -I. -o makesalt tools/makesalt.c
+ @./makesalt
+- @echo [*] Compiling Bouncer..
+- @make -f makefile.out
+- @ls -al psybnc
+- @echo done.
++ @echo [*] Ready for Compiling Bouncer..
+
+ autoconf:
+ @echo [*] Running Autoconfig.
diff --git a/chat/psybnc/patches/patch-ac b/chat/psybnc/patches/patch-ac
new file mode 100644
index 00000000000..0fb105f4b95
--- /dev/null
+++ b/chat/psybnc/patches/patch-ac
@@ -0,0 +1,41 @@
+$NetBSD: patch-ac,v 1.1 2014/06/15 21:55:17 pettai Exp $
+
+add pkgsrc path to openssl
+
+--- tools/autoconf.c.orig 2011-07-14 18:11:35.000000000 +0000
++++ tools/autoconf.c
+@@ -290,7 +290,7 @@ int checkssl()
+ strcat(sysbuf,DN);
+ system(sysbuf);
+ #else
+- system(CC " tools/chkssl.c -I/usr/local/ssl/include -L/usr/local/ssl/lib -lssl -lcrypto -o tools/chkssl" DN);
++ system(CC " tools/chkssl.c -I@PREFIX@/include -L@PREFIX@/lib -lssl -lcrypto -o tools/chkssl" DN);
+ #endif
+ return checkcmp();
+ }
+@@ -394,6 +394,7 @@ int main()
+ "/usr/sbin/openssl",
+ "/usr/local/bin/openssl",
+ "/usr/local/ssl/bin/openssl",
++ "@PREFIX@/bin/openssl",
+ NULL
+ };
+ #endif
+@@ -566,7 +567,7 @@ int main()
+ strcpy(sslbin,sslblist[sslin]);
+ printf("Yes.\n");
+ strcpy(sslopt,"-DHAVE_SSL ");
+- strcpy(ssllib,"-L/usr/local/ssl/lib -lssl -lcrypto ");
++ strcpy(ssllib,"-L@PREFIX@/lib -lssl -lcrypto ");
+ }
+ #else
+ if(strlen(SSLPATH)+13<sizeof(mbuf))
+@@ -625,7 +626,7 @@ int main()
+ #ifdef SSLPATH
+ fprintf(makefile,"INCLUDE = -I./src/ -I. -I%sinclude %s %s\n", SSLPATH, mysqlheaders, dnsinc);
+ #else
+- fprintf(makefile,"INCLUDE = -I./src/ -I. -I/usr/local/ssl/include %s %s\n", mysqlheaders, dnsinc);
++ fprintf(makefile,"INCLUDE = -I./src/ -I. -I@PREFIX@/include %s %s\n", mysqlheaders, dnsinc);
+ #endif
+ else
+ fprintf(makefile,"INCLUDE = -I./src/ -I. %s %s\n", mysqlheaders, dnsinc);