summaryrefslogtreecommitdiff
path: root/irc/dancer-ircd/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-04-19 12:01:34 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-04-19 12:01:34 +0000
commit778a627a7c54f2c4d3205264df36fce7f4bed48c (patch)
tree94e10afb684d0ecff351b9a75f6257518421bc48 /irc/dancer-ircd/files
parentgetpw*_r is now implemented in -CURRENT. However, the _SC_GETPW_R_SIZE_MAX (diff)
Add dancer-ircd, an irc daemon based on hybrid ircd.
This is the ircd designed for use on freenode.net, based on the hybrid ircd used by efnet. This port/package is configured for use on a small network or standalone, and the escape code filter is disabled. To use it on a large and/or Western language only network, please re-configure config.h and rebuild.
Notes
Notes: svn path=/head/; revision=79271
Diffstat (limited to 'irc/dancer-ircd/files')
-rw-r--r--irc/dancer-ircd/files/dancer-ircd.sh25
-rw-r--r--irc/dancer-ircd/files/patch-config.h.in105
-rw-r--r--irc/dancer-ircd/files/patch-irc_string.c21
3 files changed, 151 insertions, 0 deletions
diff --git a/irc/dancer-ircd/files/dancer-ircd.sh b/irc/dancer-ircd/files/dancer-ircd.sh
new file mode 100644
index 000000000000..7727bd928822
--- /dev/null
+++ b/irc/dancer-ircd/files/dancer-ircd.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+case "$1" in
+start)
+ if [ -x %PREFIX%/bin/dancer-ircd ]; then
+ su -fm ircd -c %PREFIX%/bin/dancer-ircd && echo ' dancer-ircd'
+ fi
+ ;;
+
+stop)
+ if [ -f /var/run/dancer-ircd.pid ]; then
+ kill `cat /var/run/dancer-ircd.pid`
+ else
+ # oh well
+ killall dancer-ircd
+ fi
+ ;;
+
+*)
+ echo "usage: $0 {start|stop}" >&2
+ exit 64
+ ;;
+esac
diff --git a/irc/dancer-ircd/files/patch-config.h.in b/irc/dancer-ircd/files/patch-config.h.in
new file mode 100644
index 000000000000..9628697677f0
--- /dev/null
+++ b/irc/dancer-ircd/files/patch-config.h.in
@@ -0,0 +1,105 @@
+--- include/config.h.orig Fri Apr 12 05:04:53 2002
++++ include/config.h Tue Apr 15 15:53:06 2003
+@@ -66,8 +66,8 @@
+ * system limits. If you know what you are doing, increase them now
+ */
+
+-#define HARD_FDLIMIT_ 256 /* was 256 */
+-#define INIT_MAXCLIENTS 200 /* was 200 */
++#define HARD_FDLIMIT_ 512 /* was 256 */
++#define INIT_MAXCLIENTS 400 /* was 200 */
+
+ /*
+ * This is how many 'buffer connections' we allow...
+@@ -125,15 +125,15 @@
+ */
+
+ #define DPATH "/"
+-#define SPATH "bin/dancer-ircd"
+-#define CPATH "etc/dancer-ircd/ircd.conf"
+-#define KPATH "var/lib/dancer-ircd/kline.conf"
+-#define DLPATH "var/lib/dancer-ircd/dline.conf"
+-#define MPATH "etc/dancer-ircd/motd"
+-#define LPATH "var/log/dancer-ircd/ircd.log"
+-#define PPATH "var/run/dancer-ircd.pid"
+-#define HPATH "etc/dancer-ircd/ohelp"
+-#define OPATH "etc/dancer-ircd/omotd"
++#define SPATH "@@prefix@@/bin/dancer-ircd"
++#define CPATH "@@prefix@@/etc/dancer-ircd/ircd.conf"
++#define KPATH "@@prefix@@/etc/dancer-ircd/kline.conf"
++#define DLPATH "@@prefix@@/etc/dancer-ircd/dline.conf"
++#define MPATH "@@prefix@@/etc/dancer-ircd/motd"
++#define LPATH "/var/log/dancer-ircd/ircd.log"
++#define PPATH "/var/run/dancer-ircd/dancer-ircd.pid"
++#define HPATH "@@prefix@@/etc/dancer-ircd/ohelp"
++#define OPATH "@@prefix@@/etc/dancer-ircd/omotd"
+
+ /* HIDE_OPS
+ * Define this to prevent non chanops from seeing what ops a channel has
+@@ -173,12 +173,12 @@
+ /* NETWORK_NAME
+ * Displayed in place of the servername when SERVERHIDE is enabled
+ */
+-#define NETWORK_NAME "irc.openprojects.net"
++#define NETWORK_NAME "irc.example.net"
+
+ /* NETWORK_DESC
+ * Displayed in place of the server info when SERVERHIDE is enabled
+ */
+-#define NETWORK_DESC "http://www.openprojects.net/"
++#define NETWORK_DESC "http://www.example.net/"
+
+ /* USE_SERVICES
+ * Defines whether or not you're using services on your network
+@@ -246,7 +246,7 @@
+ */
+ #define SAVE_MAXCLIENT
+ #ifdef SAVE_MAXCLIENT
+-# define MXPATH "etc/dancer-ircd/ircd.max"
++# define MXPATH "@@prefix@@/etc/dancer-ircd/ircd.max"
+ # define SAVE_TIME 3600
+ #endif
+
+@@ -683,7 +683,7 @@
+ * the net. for a leaf, 2 is fine. If the number of servers seen
+ * on the net gets less than 2, a split is deemed to have happened.
+ */
+-#define SPLIT_SMALLNET_SIZE 2
++#define SPLIT_SMALLNET_SIZE 0
+
+ /*
+ * SPLIT_SMALLNET_USER_SIZE defines how many global users on the
+@@ -693,7 +693,7 @@
+ * number of users seen on net > SPLIT_SMALLNET_USER_SIZE start
+ * counting down the SERVER_SPLIT_RECOVERY_TIME
+ */
+-#define SPLIT_SMALLNET_USER_SIZE 2 /* was 10000 */
++#define SPLIT_SMALLNET_USER_SIZE 0 /* was 10000 */
+
+ /*
+ * SPLIT_PONG will send a PING to a server after the connect burst.
+@@ -703,13 +703,13 @@
+ * you should be able to crank DEFAULT_SERVER_SPLIT_RECOVERY_TIME
+ * down to 1.
+ */
+-#define SPLIT_PONG
++#undef SPLIT_PONG
+
+ /*
+ * DEFAULT_SERVER_SPLIT_RECOVERY_TIME - determines how long to delay split
+ * status after resyncing
+ */
+-#define DEFAULT_SERVER_SPLIT_RECOVERY_TIME 1
++#define DEFAULT_SERVER_SPLIT_RECOVERY_TIME 0
+
+ /* LIMIT_UH
+ * If this is defined, Y line limit is made against the actual
+@@ -864,7 +864,7 @@
+ * it will show up in /list
+ */
+
+-#define MIN_USERS_FOR_LIST 4
++#define MIN_USERS_FOR_LIST 2
+
+ /* USE_KNOCK
+ * KNOCK allows users to send a "knock" to a +i channel.
diff --git a/irc/dancer-ircd/files/patch-irc_string.c b/irc/dancer-ircd/files/patch-irc_string.c
new file mode 100644
index 000000000000..54c0cf5e44f6
--- /dev/null
+++ b/irc/dancer-ircd/files/patch-irc_string.c
@@ -0,0 +1,21 @@
+This patch prevents ircd from stripping topics etc. of escape
+characters, which is commonly used by Asian languages.
+
+--- src/irc_string.c.orig Sun Apr 7 08:16:04 2002
++++ src/irc_string.c Tue Apr 15 23:52:28 2003
+@@ -131,6 +131,7 @@
+
+ char* strip_colour(char* string)
+ {
++#if 0
+ char *c = string;
+ char *c2 = string;
+ char *last_non_space = c2;
+@@ -165,6 +166,7 @@
+ *c2 = '\0';
+ if (last_non_space)
+ *last_non_space = '\0';
++#endif
+ return string;
+ }
+