summaryrefslogtreecommitdiff
path: root/irc/eggdrop/files
diff options
context:
space:
mode:
Diffstat (limited to 'irc/eggdrop/files')
-rw-r--r--irc/eggdrop/files/patch-aa17
-rw-r--r--irc/eggdrop/files/patch-ab39
-rw-r--r--irc/eggdrop/files/patch-ac20
-rw-r--r--irc/eggdrop/files/patch-ad11
-rw-r--r--irc/eggdrop/files/patch-ae14
-rw-r--r--irc/eggdrop/files/patch-ah11
-rw-r--r--irc/eggdrop/files/patch-ai23
-rw-r--r--irc/eggdrop/files/patch-aj11
-rw-r--r--irc/eggdrop/files/patch-ak11
9 files changed, 157 insertions, 0 deletions
diff --git a/irc/eggdrop/files/patch-aa b/irc/eggdrop/files/patch-aa
new file mode 100644
index 000000000000..4405c988b1ed
--- /dev/null
+++ b/irc/eggdrop/files/patch-aa
@@ -0,0 +1,17 @@
+--- configure.orig Sat Mar 30 04:48:49 2002
++++ configure
+@@ -2808,7 +2808,13 @@
+ *BSD)
+ # FreeBSD/OpenBSD/NetBSD
+ SHLIB_CC="$CC -fPIC"
+- SHLIB_LD="ld -Bshareable -x"
++ if [ `echo __ELF__ | $CC -E - | grep -v '#'` = 1 ]; then
++ SHLIB_LD="ld -shared -x"
++ BEL_MOD_LD="$CC -Wl,-E $LDFLAGS"
++ else
++ SHLIB_LD="ld -Bshareable -x"
++ BEL_MOD_LD="$CC $LDFLAGS"
++ fi
+ cat >>confdefs.h <<\_ACEOF
+ #define MODULES_OK 1
+ _ACEOF
diff --git a/irc/eggdrop/files/patch-ab b/irc/eggdrop/files/patch-ab
new file mode 100644
index 000000000000..464c0127e75e
--- /dev/null
+++ b/irc/eggdrop/files/patch-ab
@@ -0,0 +1,39 @@
+--- src/main.c.orig Sun Jul 15 09:15:14 2001
++++ src/main.c Thu Nov 1 12:55:48 2001
+@@ -61,7 +61,7 @@
+ #define _POSIX_SOURCE 1
+ #endif
+
+-extern char origbotname[], userfile[], botnetnick[];
++extern char origbotname[], userfile[], botnetnick[], tempdir[];
+ extern int dcc_total, conmask, cache_hit, cache_miss,
+ max_logs, quick_logs;
+ extern struct dcc_t *dcc;
+@@ -94,7 +94,7 @@
+ stats? */
+ int term_z = 0; /* Foreground: use the terminal as a party
+ line? */
+-char configfile[121] = "eggdrop.conf"; /* Name of the config file */
++char configfile[121] = __PREFIX__ "/etc/eggdrop.conf";
+ char helpdir[121]; /* Directory of help files (if used) */
+ char textdir[121] = ""; /* Directory for text files that get dumped */
+ int keep_all_logs = 0; /* Never erase logfiles, no matter how old
+@@ -709,6 +709,8 @@
+ setrlimit(RLIMIT_CORE, &cdlim);
+ }
+ #endif
++
++ chdir(__PREFIX__ "/share/eggdrop");
+
+ /* Initialise context list */
+ for (i = 0; i < 16; i++)
+@@ -809,7 +809,8 @@
+ cache_miss = 0;
+ cache_hit = 0;
+ if (!pid_file[0])
+- egg_snprintf(pid_file, sizeof pid_file, "pid.%s", botnetnick);
++ egg_snprintf(pid_file, sizeof pid_file, "%.100s/pid.%.32s",
++ tempdir, botnetnick);
+
+ /* Check for pre-existing eggdrop! */
+ f = fopen(pid_file, "r");
diff --git a/irc/eggdrop/files/patch-ac b/irc/eggdrop/files/patch-ac
new file mode 100644
index 000000000000..7c359a1ec06d
--- /dev/null
+++ b/irc/eggdrop/files/patch-ac
@@ -0,0 +1,20 @@
+--- src/Makefile.in.orig Thu Nov 23 06:56:40 2000
++++ src/Makefile.in Thu Nov 1 12:57:48 2001
+@@ -16,7 +16,7 @@
+ LD = @CC@
+ STRIP = @STRIP@
+ CFLAGS = @CFLAGS@ -I.. -I$(top_srcdir) @DEFS@ $(CFLGS)
+-CPPFLAGS = @CPPFLAGS@
++CPPFLAGS = @CPPFLAGS@ '-D__PREFIX__="@prefix@"'
+
+ eggdrop_objs = bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o \
+ dccutil.o dns.o flags.o language.o main.o mem.o misc.o misc_file.o \
+@@ -37,7 +37,7 @@
+ @echo "Linking eggdrop... $(EGGBUILD)"
+ @echo ""
+ @touch mod/mod.xlibs
+- $(LD) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLIBS) md5/md5c.o compat/*.o `cat mod/mod.xlibs`
++ $(LD) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLDFLAGS) $(XLIBS) md5/md5c.o compat/*.o `cat mod/mod.xlibs`
+ $(STRIP) ../$(EGGEXEC)
+ @echo "Successful compile: $(EGGEXEC)"
+ @echo ""
diff --git a/irc/eggdrop/files/patch-ad b/irc/eggdrop/files/patch-ad
new file mode 100644
index 000000000000..ca92dfc4215f
--- /dev/null
+++ b/irc/eggdrop/files/patch-ad
@@ -0,0 +1,11 @@
+--- src/mod/filesys.mod/filesys.c.orig Wed Dec 9 20:05:21 1998
++++ src/mod/filesys.mod/filesys.c Wed Dec 9 20:09:13 1998
+@@ -458,7 +458,7 @@
+ if (at_limit(nick)) {
+ char xxx[1024];
+
+- sprintf(xxx, "%d*%s%s", strlen(dccdir), dccdir, dir);
++ sprintf(xxx, "%lu*%s%s", strlen(dccdir), dccdir, dir);
+ queue_file(xxx, fn, dcc[idx].nick, nick);
+ dprintf(idx, "Queued: %s to %s\n", fn, nick);
+ my_free(s);
diff --git a/irc/eggdrop/files/patch-ae b/irc/eggdrop/files/patch-ae
new file mode 100644
index 000000000000..9618875170c6
--- /dev/null
+++ b/irc/eggdrop/files/patch-ae
@@ -0,0 +1,14 @@
+--- src/mod/ctcp.mod/ctcp.c.orig Wed Dec 9 23:18:06 1998
++++ src/mod/ctcp.mod/ctcp.c Wed Dec 9 23:18:55 1998
+@@ -155,9 +155,9 @@
+ /* Do me a favour and don't change this back to a CTCP reply,
+ * CTCP replies are NOTICE's this has to be a PRIVMSG
+ * -poptix 5/1/1997 */
+- dprintf(DP_SERVER, "PRIVMSG %s :\001DCC CHAT chat %lu %u\001\n",
++ dprintf(DP_SERVER, "PRIVMSG %s :\001DCC CHAT chat %u %u\001\n",
+ nick,
+- iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()),
++ (unsigned)iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()),
+ dcc[i].port);
+ return 1;
+ }
diff --git a/irc/eggdrop/files/patch-ah b/irc/eggdrop/files/patch-ah
new file mode 100644
index 000000000000..4ab51b25201f
--- /dev/null
+++ b/irc/eggdrop/files/patch-ah
@@ -0,0 +1,11 @@
+--- src/modules.c.orig Mon Jul 16 18:54:01 2001
++++ src/modules.c Fri Nov 2 11:49:45 2001
+@@ -94,7 +94,7 @@
+ #ifndef STATIC
+
+ /* Directory to look for modules */
+-char moddir[121] = "modules/";
++char moddir[121] = __PREFIX__ "/lib/eggdrop/";
+
+ #else
+
diff --git a/irc/eggdrop/files/patch-ai b/irc/eggdrop/files/patch-ai
new file mode 100644
index 000000000000..a8b10fd77fcb
--- /dev/null
+++ b/irc/eggdrop/files/patch-ai
@@ -0,0 +1,23 @@
+--- src/mod/share.mod/share.c.orig Tue Jul 17 23:53:42 2001
++++ src/mod/share.mod/share.c Fri Nov 2 18:37:15 2001
+@@ -1121,7 +1123,8 @@
+ int i, sock;
+ FILE *f;
+
+- egg_snprintf(s, sizeof s, ".share.%s.%lu.users", botnetnick, now);
++ egg_snprintf(s, sizeof s, "%.100s/.share.%.32s.%lu.users",
++ tempdir, botnetnick, now);
+ if (!(b_status(idx) & STAT_SHARE)) {
+ dprintf(idx, "s e You didn't ask; you just started sending.\n");
+ dprintf(idx, "s e Ask before sending the userfile.\n");
+@@ -1890,8 +1893,8 @@
+ struct chanuserrec *ch;
+ struct chanset_t *cst;
+
+- egg_snprintf(share_file, sizeof share_file, ".share.%s.%lu", dcc[idx].nick,
+- now);
++ egg_snprintf(share_file, sizeof share_file, "%.100s/.share.%.32s.%lu",
++ tempdir, dcc[idx].nick, now);
+ if (dcc[idx].u.bot->uff_flags & UFF_OVERRIDE) {
+ debug1("NOTE: Sharing aggressively with %s, overriding its local bots.",
+ dcc[idx].nick);
diff --git a/irc/eggdrop/files/patch-aj b/irc/eggdrop/files/patch-aj
new file mode 100644
index 000000000000..763ceb028751
--- /dev/null
+++ b/irc/eggdrop/files/patch-aj
@@ -0,0 +1,11 @@
+--- src/mod/Makefile.in.orig Sat Feb 2 18:14:30 2002
++++ src/mod/Makefile.in Sat Feb 2 21:03:57 2002
+@@ -86,7 +86,7 @@
+ echo "Configuring module $${modname} ..."; \
+ echo ""; \
+ if test ! -d $$i; then mkdir $$i; fi; \
+- (cd $$i && $(MOD_UPDIR)$(srcdir)/$$i/configure $(egg_ac_parameters) --cache-file=../../../config.cache --srcdir=$(MOD_UPDIR)$(top_srcdir)/src/mod/$$i); \
++ (cd $$i && $(MOD_UPDIR)$(srcdir)/$$i/configure "$(egg_ac_parameters)" --cache-file=../../../config.cache --srcdir=$(MOD_UPDIR)$(top_srcdir)/src/mod/$$i); \
+ fi; \
+ done; \
+ echo ""
diff --git a/irc/eggdrop/files/patch-ak b/irc/eggdrop/files/patch-ak
new file mode 100644
index 000000000000..1d8b734b3aec
--- /dev/null
+++ b/irc/eggdrop/files/patch-ak
@@ -0,0 +1,11 @@
+--- src/eggdrop.h.orig Fri Mar 29 22:40:24 2002
++++ src/eggdrop.h Sun Aug 18 22:51:25 2002
+@@ -68,7 +68,7 @@
+
+ /* Language stuff */
+
+-#define LANGDIR "./language" /* language file directory */
++#define LANGDIR __PREFIX__ "/share/eggdrop/language" /* language file directory */
+ #define BASELANG "english" /* language which always gets loaded
+ before all other languages. You do
+ not want to change this. */