diff options
| author | Ilkka Oksanen | 2014-06-09 14:04:57 +0200 |
|---|---|---|
| committer | Jack Nagel | 2014-06-20 20:27:37 -0500 |
| commit | 7f53ebd4fd905e4aff8109bbf5c5e7d75686c200 (patch) | |
| tree | c07514431428192d8dd954444437b672523598b7 /Library/Formula/ircd-irc2.rb | |
| parent | a14215c35507926bfdf122ef0004289f9cd65082 (diff) | |
| download | homebrew-7f53ebd4fd905e4aff8109bbf5c5e7d75686c200.tar.bz2 | |
ircd-irc2: disable netsplit detection
By default ircd goes to netsplit mode if the amount of connected
users or servers go below a certain limit.
Default limits are less than 65000 users connected or less than 80
servers connected. This means that in practice all brew installed
ircds are always in netsplit mode.
In netsplit mode no one can be channel operator. Channel operators
are useful already in small ircd setups. Therefore it's best to
disable netsplit detection. You need to administrate a popular IRC
network with multiple servers for netsplit detection to be useful.
Closes #29993.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/ircd-irc2.rb')
| -rw-r--r-- | Library/Formula/ircd-irc2.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/ircd-irc2.rb b/Library/Formula/ircd-irc2.rb index c2f36952c..bc6ec7647 100644 --- a/Library/Formula/ircd-irc2.rb +++ b/Library/Formula/ircd-irc2.rb @@ -34,8 +34,17 @@ class IrcdIrc2 < Formula "--mandir=#{man}", "CFLAGS=-DRLIMIT_FDMAX=0" + build_dir = `./support/config.guess`.chomp + + # Disable netsplit detection. In a netsplit, joins to new channels do not + # give chanop status. + inreplace "#{build_dir}/config.h", /#define DEFAULT_SPLIT_USERS\s+65000/, + "#define DEFAULT_SPLIT_USERS 0" + inreplace "#{build_dir}/config.h", /#define DEFAULT_SPLIT_SERVERS\s+80/, + "#define DEFAULT_SPLIT_SERVERS 0" + # The directory is something like `i686-apple-darwin13.0.2' - system "make", "install", "-C", `./support/config.guess`.chomp + system "make", "install", "-C", build_dir (etc/"ircd.conf").write default_ircd_conf end |
