summaryrefslogtreecommitdiff
path: root/irc/eggdrop16/files
diff options
context:
space:
mode:
Diffstat (limited to 'irc/eggdrop16/files')
-rw-r--r--irc/eggdrop16/files/patch-eggdrop.conf29
-rw-r--r--irc/eggdrop16/files/patch-src__Makefile.in11
-rw-r--r--irc/eggdrop16/files/patch-src_eggdrop.h11
-rw-r--r--irc/eggdrop16/files/patch-src_main.c29
-rw-r--r--irc/eggdrop16/files/patch-src_match.c13
-rw-r--r--irc/eggdrop16/files/patch-src_mod_share.mod__share.c22
-rw-r--r--irc/eggdrop16/files/patch-src_modules.c11
-rw-r--r--irc/eggdrop16/files/patch-src_net.c13
-rw-r--r--irc/eggdrop16/files/patch-src_proto.h13
-rw-r--r--irc/eggdrop16/files/patch-src_tclhash.c13
-rw-r--r--irc/eggdrop16/files/patch-src_tclhash.h13
-rw-r--r--irc/eggdrop16/files/pkg-message.in12
12 files changed, 190 insertions, 0 deletions
diff --git a/irc/eggdrop16/files/patch-eggdrop.conf b/irc/eggdrop16/files/patch-eggdrop.conf
new file mode 100644
index 000000000000..8490199bc5d0
--- /dev/null
+++ b/irc/eggdrop16/files/patch-eggdrop.conf
@@ -0,0 +1,29 @@
+--- eggdrop.conf 2010-07-05 14:07:05.000000000 +0200
++++ eggdrop.conf 2011-01-07 06:13:49.000000000 +0100
+@@ -1,4 +1,4 @@
+-#! /path/to/executable/eggdrop
++#!%%PREFIX%%/bin/eggdrop
+ # ^- This should contain a fully qualified path to your Eggdrop executable.
+ #
+ # $Id: eggdrop.conf,v 1.66 2010/07/05 12:07:05 pseudo Exp $
+@@ -444,7 +444,7 @@
+ # If you run the bot from the compilation directory, you will want to set
+ # this to "". If you use 'make install' (like all good kiddies do ;), this
+ # is a fine default. Otherwise, use your head :)
+-set mod-path "modules/"
++set mod-path "%%PREFIX%%/lib/eggdrop/"
+
+
+ #### BLOWFISH MODULE ####
+@@ -842,6 +842,11 @@
+ another.example.com:7000:password
+ }
+
++# Set this option, if you want a SSL connection to the IRC Server(s) specified
++# above. This setting applies to all servers, so make sure they all support SSL
++# connections. Eggdrop has to be compiled with SSL support for this to work!
++set use-ssl 0
++
+ # Number of seconds to wait between transmitting queued lines to the server.
+ # Lower this value at your own risk. ircd is known to start flood control
+ # at 512 bytes/2 seconds.
diff --git a/irc/eggdrop16/files/patch-src__Makefile.in b/irc/eggdrop16/files/patch-src__Makefile.in
new file mode 100644
index 000000000000..1b1bf646acd6
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src__Makefile.in
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig Mon Feb 9 22:42:35 2004
++++ src/Makefile.in Mon Feb 9 22:43:23 2004
+@@ -18,7 +18,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 match.o main.o mem.o misc.o misc_file.o \
diff --git a/irc/eggdrop16/files/patch-src_eggdrop.h b/irc/eggdrop16/files/patch-src_eggdrop.h
new file mode 100644
index 000000000000..bd6079e5704d
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_eggdrop.h
@@ -0,0 +1,11 @@
+--- src/eggdrop.h 2011-01-07 06:12:27.000000000 +0100
++++ src/eggdrop.h 2011-01-07 06:14:26.000000000 +0100
+@@ -64,7 +64,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. */
diff --git a/irc/eggdrop16/files/patch-src_main.c b/irc/eggdrop16/files/patch-src_main.c
new file mode 100644
index 000000000000..018d5911c310
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_main.c
@@ -0,0 +1,29 @@
+--- src/main.c 2011-01-07 06:12:27.000000000 +0100
++++ src/main.c 2011-01-07 06:16:35.000000000 +0100
+@@ -72,7 +72,7 @@
+ # define _POSIX_SOURCE 1 /* Solaris needs this */
+ #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,
+ quiet_save;
+ extern struct dcc_t *dcc;
+@@ -105,7 +105,7 @@
+ int term_z = 0; /* Foreground: use the terminal as a partyline? */
+ int use_stderr = 1; /* Send stuff to stderr instead of logfiles? */
+
+-char configfile[121] = "eggdrop.conf"; /* Default config file name */
++char configfile[121] = __PREFIX__ "/etc/eggdrop.conf"; /* Default config file name */
+ char pid_file[120]; /* Name of the pid file */
+ char helpdir[121] = "help/"; /* Directory of help files */
+ char textdir[121] = "text/"; /* Directory for text files */
+@@ -1064,7 +1064,7 @@
+ 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, "%s/pid.%s", tempdir, botnetnick);
+
+ /* Check for pre-existing eggdrop! */
+ f = fopen(pid_file, "r");
diff --git a/irc/eggdrop16/files/patch-src_match.c b/irc/eggdrop16/files/patch-src_match.c
new file mode 100644
index 000000000000..56e71ea8e09f
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_match.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_match.c,v 1.1 2012/11/16 00:35:28 joerg Exp $
+
+--- src/match.c.orig 2012-11-15 10:29:42.000000000 +0000
++++ src/match.c
+@@ -367,7 +367,7 @@ int cidr_match(char *m, char *n, int cou
+ /* Inline for cron_match (obviously).
+ * Matches a single field of a crontab expression.
+ */
+-inline int cron_matchfld(char *mask, int match)
++static inline int cron_matchfld(char *mask, int match)
+ {
+ int skip = 0, f, t;
+ char *p, *q;
diff --git a/irc/eggdrop16/files/patch-src_mod_share.mod__share.c b/irc/eggdrop16/files/patch-src_mod_share.mod__share.c
new file mode 100644
index 000000000000..c0f7d2172f9e
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_mod_share.mod__share.c
@@ -0,0 +1,22 @@
+--- src/mod/share.mod/share.c 2010-02-18 10:52:30.000000000 +0100
++++ src/mod/share.mod/share.c 2011-01-07 06:22:16.000000000 +0100
+@@ -1122,7 +1122,7 @@
+ int i, sock;
+ FILE *f;
+
+- egg_snprintf(s, sizeof s, ".share.%s.%li.users", botnetnick, now);
++ egg_snprintf(s, sizeof s, "%s/.share.%s.%li.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");
+@@ -1891,8 +1891,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, "%s/.share.%s.%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/eggdrop16/files/patch-src_modules.c b/irc/eggdrop16/files/patch-src_modules.c
new file mode 100644
index 000000000000..0f7528625d86
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_modules.c
@@ -0,0 +1,11 @@
+--- src/modules.c 2011-01-07 06:12:27.000000000 +0100
++++ src/modules.c 2011-01-07 06:21:42.000000000 +0100
+@@ -118,7 +118,7 @@
+ static int module_rename(char *name, char *newname);
+
+ #ifndef STATIC
+-char moddir[121] = "modules/";
++char moddir[121] = __PREFIX__ "/lib/eggdrop/";
+ #endif
+
+ #ifdef STATIC
diff --git a/irc/eggdrop16/files/patch-src_net.c b/irc/eggdrop16/files/patch-src_net.c
new file mode 100644
index 000000000000..d46308e86e17
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_net.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_net.c,v 1.1 2012/11/16 00:35:28 joerg Exp $
+
+--- src/net.c.orig 2012-11-15 10:30:07.000000000 +0000
++++ src/net.c
+@@ -564,7 +564,7 @@ int open_address_listen(IP addr, int *po
+ /* Returns a socket number for a listening socket that will accept any
+ * connection -- port # is returned in port
+ */
+-inline int open_listen(int *port)
++int open_listen(int *port)
+ {
+ return open_address_listen(myip[0] ? getmyip() : INADDR_ANY, port);
+ }
diff --git a/irc/eggdrop16/files/patch-src_proto.h b/irc/eggdrop16/files/patch-src_proto.h
new file mode 100644
index 000000000000..893d532a7d8b
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_proto.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_proto.h,v 1.1 2012/11/16 00:35:28 joerg Exp $
+
+--- src/proto.h.orig 2012-11-15 10:30:20.000000000 +0000
++++ src/proto.h
+@@ -271,7 +271,7 @@ int getsock(int);
+ void killsock(int);
+ void killtclsock(int);
+ int answer(int, char *, unsigned long *, unsigned short *, int);
+-inline int open_listen(int *);
++int open_listen(int *);
+ int open_address_listen(IP addr, int *);
+ int open_telnet(char *, int);
+ int open_telnet_dcc(int, char *, char *);
diff --git a/irc/eggdrop16/files/patch-src_tclhash.c b/irc/eggdrop16/files/patch-src_tclhash.c
new file mode 100644
index 000000000000..69fc2eea7a3d
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_tclhash.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_tclhash.c,v 1.1 2012/11/16 00:35:28 joerg Exp $
+
+--- src/tclhash.c.orig 2012-11-15 10:32:40.000000000 +0000
++++ src/tclhash.c
+@@ -109,7 +109,7 @@ static inline void tcl_bind_list_delete(
+ nfree(tl);
+ }
+
+-inline void garbage_collect_tclhash(void)
++void garbage_collect_tclhash(void)
+ {
+ tcl_bind_list_t *tl, *tl_next, *tl_prev;
+ tcl_bind_mask_t *tm, *tm_next, *tm_prev;
diff --git a/irc/eggdrop16/files/patch-src_tclhash.h b/irc/eggdrop16/files/patch-src_tclhash.h
new file mode 100644
index 000000000000..d03481152d33
--- /dev/null
+++ b/irc/eggdrop16/files/patch-src_tclhash.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_tclhash.h,v 1.1 2012/11/16 00:35:28 joerg Exp $
+
+--- src/tclhash.h.orig 2012-11-15 10:32:27.000000000 +0000
++++ src/tclhash.h
+@@ -75,7 +75,7 @@ typedef struct tcl_bind_list_b {
+
+ #ifndef MAKING_MODS
+
+-inline void garbage_collect_tclhash(void);
++void garbage_collect_tclhash(void);
+
+ void init_bind(void);
+ void kill_bind(void);
diff --git a/irc/eggdrop16/files/pkg-message.in b/irc/eggdrop16/files/pkg-message.in
new file mode 100644
index 000000000000..b885cab6f1cf
--- /dev/null
+++ b/irc/eggdrop16/files/pkg-message.in
@@ -0,0 +1,12 @@
+[
+{ type: install
+ message: <<EOM
+This Port of Eggdrop differs from a normal eggdrop installation, because
+it does respect hier(7). That means your eggdrop.conf goes to
+%%PREFIX%%/etc/eggdrop.conf and .chan, .notes, .user files go to
+%%PREFIX%%/share/eggdrop. Modules will go to %%PREFIX%%/lib/eggdrop and
+documentation can be found in %%PREFIX%%/share/doc/eggdrop, scripts go
+to %%PREFIX%%/share/eggdrop/scripts.
+EOM
+}
+]