summaryrefslogtreecommitdiff
path: root/homebrew/ircdirc2/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/ircdirc2/.make.sh-auto')
-rw-r--r--homebrew/ircdirc2/.make.sh-auto7
1 files changed, 7 insertions, 0 deletions
diff --git a/homebrew/ircdirc2/.make.sh-auto b/homebrew/ircdirc2/.make.sh-auto
new file mode 100644
index 000000000..3aa59c0d8
--- /dev/null
+++ b/homebrew/ircdirc2/.make.sh-auto
@@ -0,0 +1,7 @@
+pkg:setup
+pkg:configure CFLAGS=-DRLIMIT_FDMAX=0
+build_dir = `./support/config.guess`.chomp
+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"
+make DESTDIR=${PKG_DEST} install -C build_dir
+(etc/"ircd.conf").write default_ircd_conf