aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2011-02-17 01:56:59 +0000
committerBeech Rintoul <beech@FreeBSD.org>2011-02-17 01:56:59 +0000
commit0548dcac4197e5e3f12537b8a65219f9f8533d70 (patch)
tree88b9e2af5d58938d1b507d7c265498a2a71abaff /irc
parent3d5565d45018c4fa723b296b459a800868dc5cb2 (diff)
downloadports-0548dcac4197e5e3f12537b8a65219f9f8533d70.tar.gz
ports-0548dcac4197e5e3f12537b8a65219f9f8533d70.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/eggdrop/Makefile44
-rw-r--r--irc/eggdrop/distinfo13
-rw-r--r--irc/eggdrop/files/patch-eggdrop.conf24
-rw-r--r--irc/eggdrop/files/patch-src-Makefile.in11
-rw-r--r--irc/eggdrop/files/patch-src__eggdrop.h9
-rw-r--r--irc/eggdrop/files/patch-src__main.c37
-rw-r--r--irc/eggdrop/files/patch-src__md5__md5c.c18
-rw-r--r--irc/eggdrop/files/patch-src__mod__ctcp.mod__ctcp.c13
-rw-r--r--irc/eggdrop/files/patch-src__mod__filesys.mod__filesys.c11
-rw-r--r--irc/eggdrop/files/patch-src__mod__share.mod__share.c22
-rw-r--r--irc/eggdrop/files/patch-src__modules.c8
-rw-r--r--irc/eggdrop/files/patch-src_eggdrop.h11
-rw-r--r--irc/eggdrop/files/patch-src_main.c29
-rw-r--r--irc/eggdrop/files/patch-src_mod_share.mod__share.c22
-rw-r--r--irc/eggdrop/files/patch-src_modules.c11
-rw-r--r--irc/eggdrop/pkg-plist187
16 files changed, 223 insertions, 247 deletions
diff --git a/irc/eggdrop/Makefile b/irc/eggdrop/Makefile
index 9f952ddbc7fb..9389da0c3525 100644
--- a/irc/eggdrop/Makefile
+++ b/irc/eggdrop/Makefile
@@ -2,28 +2,26 @@
# Date created: 18.01.2003
# Whom: Ulrich Spoerlein <q@uni.de>
#
+# Last updated by: Kristian Krĉmmer Nielsen <freebsd.ports@com.jkkn.dk>
+# Date: January 7th, 2011
+#
# $FreeBSD$
#
PORTNAME= eggdrop
-PORTVERSION= 1.6.19
-PORTREVISION= 2
+PORTVERSION= 1.6.20
CATEGORIES= irc
MASTER_SITES= ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/ \
- LOCAL/beech
+ http://www.egghelp.org/files/patches/:ssl
DISTNAME= ${PORTNAME}${PORTVERSION}
-
-PATCHFILES= ${PORTNAME}-${PORTVERSION}-ssl-rootie.patch.gz:ssl \
- eggdrop1.6.19+ctcpfix.patch.gz:ctcpfix
-PATCH_SITES= http://www.egghelp.org/files/patches/:ssl \
- ftp://ftp.eggheads.org/pub/eggdrop/patches/official/1.6/:ctcpfix
+DISTFILES= ${PORTNAME}${PORTVERSION}.tar.bz2 \
+ ${PORTNAME}-${PORTVERSION}-ssl.zip:ssl
MAINTAINER= beech@FreeBSD.org
COMMENT= The most popular open source Internet Relay Chat bot
-USE_TCL= 82+
+USE_TCL= 85+
-USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcllib=${LOCALBASE}/lib/libtcl${TCL_VER:S/.//}.so \
--with-tclinc=${TCL_INCLUDEDIR}/tcl.h
@@ -37,15 +35,15 @@ SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
+LICENSE= GPLv2
+
.if defined(WITH_SSL)
+EXTRA_PATCHES= ${WRKDIR}/eggdrop-1.6.20-ssl.patch
+
CFLAGS+= -DHAVE_OPENSSL
CONFIGURE_ARGS+= --with-ssl
.endif
-.if !defined(WITH_SSL)
-CONFIGURE_ARGS+= --without-ssl
-.endif
-
post-patch:
@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/eggdrop.conf \
> ${WRKSRC}/eggdrop.conf.sample
@@ -53,7 +51,7 @@ post-patch:
post-configure:
@(cd ${WRKSRC}; ${MAKE} config)
# Workaround broken relative path in SSL-patch
- @(cd ${WRKSRC}/src && ${LN} -fs ../config.h)
+# @(cd ${WRKSRC}/src && ${LN} -fs ../config.h)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin
@@ -97,10 +95,18 @@ do-install:
${DATADIR}/language ";"
@${MKDIR} ${DATADIR}/scripts
.for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \
- cmd_resolve.tcl compat.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
- sentinel.tcl userinfo.tcl weed
+ cmd_resolve.tcl compat.tcl dccwhois.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
+ quotepass.tcl quotepong.tcl sentinel.tcl userinfo.tcl weed
${INSTALL_DATA} ${WRKSRC}/scripts/${f} ${DATADIR}/scripts
.endfor
+ @${MKDIR} ${DATADIR}/scripts/help
+.for f in cmd_resolve.help userinfo.help
+ ${INSTALL_DATA} ${WRKSRC}/scripts/help/${f} ${DATADIR}/scripts/help
+.endfor
+ @${MKDIR} ${DATADIR}/scripts/help/msg
+.for f in userinfo.help
+ ${INSTALL_DATA} ${WRKSRC}/scripts/help/msg/${f} ${DATADIR}/scripts/help/msg
+.endfor
.for f in cmds1.help cmds2.help core.help
${INSTALL_DATA} ${WRKSRC}/help/${f} ${DATADIR}/help
.endfor
@@ -113,9 +119,9 @@ do-install:
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for f in ABOUT AUTHORS BANS BOTNET BUG-REPORT COMPILE-GUIDE CONTENTS \
+.for f in ABOUT BANS BOTNET BUG-REPORT COMPILE-GUIDE CONTENTS \
FIRST-SCRIPT KNOWN-PROBLEMS MODULES PARTYLINE PATCH-HOWTO \
- TEXT-SUBSTITUTIONS TRICKS UPDATES1.6 USERS WEIRD-MESSAGES \
+ TEXT-SUBSTITUTIONS TRICKS Changes1.6 USERS WEIRD-MESSAGES \
tcl-commands.doc
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
diff --git a/irc/eggdrop/distinfo b/irc/eggdrop/distinfo
index 1b379eef406e..e69a1d58fd76 100644
--- a/irc/eggdrop/distinfo
+++ b/irc/eggdrop/distinfo
@@ -1,9 +1,4 @@
-MD5 (eggdrop1.6.19.tar.bz2) = b706bbe4fdd05964e0ea0cd920f28539
-SHA256 (eggdrop1.6.19.tar.bz2) = 2e211a0fd20abd382c280807f9430102cd9b95991e359b3bede042549dd7b3cf
-SIZE (eggdrop1.6.19.tar.bz2) = 811072
-MD5 (eggdrop-1.6.19-ssl-rootie.patch.gz) = 6d477d54e16afff3215b9b53e34a0521
-SHA256 (eggdrop-1.6.19-ssl-rootie.patch.gz) = 94b06c392da5f13c04cc1d3e87b52e3c2ed9af8ba58cf360f121bb0a06f49ce3
-SIZE (eggdrop-1.6.19-ssl-rootie.patch.gz) = 9285
-MD5 (eggdrop1.6.19+ctcpfix.patch.gz) = 86d159a5e3460ec8fb30cb1a27a32acc
-SHA256 (eggdrop1.6.19+ctcpfix.patch.gz) = 2f01f00692c29fb9568721d80cf38289031a09bc15d2fac483ad16aec4b788a7
-SIZE (eggdrop1.6.19+ctcpfix.patch.gz) = 666
+SHA256 (eggdrop1.6.20.tar.bz2) = 5d3b3f3c8988d054d6ba97b84b43e9620c062d57d2606eaa9f652c598aa44c6f
+SIZE (eggdrop1.6.20.tar.bz2) = 993262
+SHA256 (eggdrop-1.6.20-ssl.zip) = 2fab9c498e5e1f0cb3b3d07e74ae146e38de2bcd6b851c228a0a2e4ff84b4805
+SIZE (eggdrop-1.6.20-ssl.zip) = 9186
diff --git a/irc/eggdrop/files/patch-eggdrop.conf b/irc/eggdrop/files/patch-eggdrop.conf
index 9ff824f8a0f0..8490199bc5d0 100644
--- a/irc/eggdrop/files/patch-eggdrop.conf
+++ b/irc/eggdrop/files/patch-eggdrop.conf
@@ -1,10 +1,12 @@
---- eggdrop.conf.orig Mon May 5 00:05:32 2003
-+++ eggdrop.conf Wed Mar 3 21:17:14 2004
-@@ -1,2 +1,2 @@
+--- 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.
-@@ -420,7 +420,7 @@
+ #
+ # $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 :)
@@ -12,16 +14,16 @@
+set mod-path "%%PREFIX%%/lib/eggdrop/"
- #### DNS MODULE ####
-@@ -812,6 +812,11 @@
- you.need.to.change.this:6667
+ #### 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
-
- # This setting makes the bot try to get his original nickname back if its
- # primary nickname is already in use.
++
+ # 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/eggdrop/files/patch-src-Makefile.in b/irc/eggdrop/files/patch-src-Makefile.in
new file mode 100644
index 000000000000..cb66a08d63c8
--- /dev/null
+++ b/irc/eggdrop/files/patch-src-Makefile.in
@@ -0,0 +1,11 @@
+--- src/Makefile.in 2011-01-07 06:12:27.000000000 +0100
++++ src/Makefile.in 2011-01-07 06:33:20.000000000 +0100
+@@ -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/eggdrop/files/patch-src__eggdrop.h b/irc/eggdrop/files/patch-src__eggdrop.h
index fd30aba9a92b..e69de29bb2d1 100644
--- a/irc/eggdrop/files/patch-src__eggdrop.h
+++ b/irc/eggdrop/files/patch-src__eggdrop.h
@@ -1,9 +0,0 @@
---- src/eggdrop.h.orig Mon Jun 2 11:39:45 2003
-+++ src/eggdrop.h Mon Jun 2 11:40:17 2003
-@@ -77,7 +77,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/eggdrop/files/patch-src__main.c b/irc/eggdrop/files/patch-src__main.c
index bd4cb93d0a9d..e69de29bb2d1 100644
--- a/irc/eggdrop/files/patch-src__main.c
+++ b/irc/eggdrop/files/patch-src__main.c
@@ -1,37 +0,0 @@
---- src/main.c.orig Mon May 5 06:05:32 2003
-+++ src/main.c Mon Jun 2 11:16:57 2003
-@@ -73,6 +73,6 @@
- #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;
- extern struct userrec *userlist;
-@@ -102,7 +102,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 */
-@@ -732,6 +732,8 @@
- }
- #endif
-
-+ chdir(__PREFIX__ "/share/eggdrop");
-+
- /* Initialise context list */
- for (i = 0; i < 16; i++)
- Context;
-@@ -831,7 +833,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, "%.100s/pid.%.32s", tempdir, botnetnick);
-
- /* Check for pre-existing eggdrop! */
- f = fopen(pid_file, "r");
diff --git a/irc/eggdrop/files/patch-src__md5__md5c.c b/irc/eggdrop/files/patch-src__md5__md5c.c
index edafcd651ddd..e69de29bb2d1 100644
--- a/irc/eggdrop/files/patch-src__md5__md5c.c
+++ b/irc/eggdrop/files/patch-src__md5__md5c.c
@@ -1,18 +0,0 @@
---- src/md5/md5c.c.orig Fri Sep 3 14:08:28 2004
-+++ src/md5/md5c.c Fri Sep 3 14:04:51 2004
-@@ -25,6 +25,7 @@
-
- #include "compat/compat.h"
-
-+#ifdef EGG_SSL_EXT
- typedef unsigned long MD5_u32plus;
-
- typedef struct {
-@@ -33,6 +34,7 @@
- unsigned char buffer[64];
- MD5_u32plus block[16];
- } MD5_CTX;
-+#endif
-
- /*
- * The basic MD5 functions.
diff --git a/irc/eggdrop/files/patch-src__mod__ctcp.mod__ctcp.c b/irc/eggdrop/files/patch-src__mod__ctcp.mod__ctcp.c
index 4440fa705b43..e69de29bb2d1 100644
--- a/irc/eggdrop/files/patch-src__mod__ctcp.mod__ctcp.c
+++ b/irc/eggdrop/files/patch-src__mod__ctcp.mod__ctcp.c
@@ -1,13 +0,0 @@
---- src/mod/ctcp.mod/ctcp.c.orig Mon Jun 2 11:27:58 2003
-+++ src/mod/ctcp.mod/ctcp.c Mon Jun 2 11:29:29 2003
-@@ -161,8 +161,8 @@
- /* 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",
-- nick, iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()),
-+ dprintf(DP_SERVER, "PRIVMSG %s :\001DCC CHAT chat %u %u\001\n",
-+ nick, (unsigned)iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()),
- dcc[i].port);
- return 1;
- }
diff --git a/irc/eggdrop/files/patch-src__mod__filesys.mod__filesys.c b/irc/eggdrop/files/patch-src__mod__filesys.mod__filesys.c
index a7c19d1e57f7..e69de29bb2d1 100644
--- a/irc/eggdrop/files/patch-src__mod__filesys.mod__filesys.c
+++ b/irc/eggdrop/files/patch-src__mod__filesys.mod__filesys.c
@@ -1,11 +0,0 @@
---- src/mod/filesys.mod/filesys.c.orig Mon Jun 2 11:25:01 2003
-+++ src/mod/filesys.mod/filesys.c Mon Jun 2 11:25:46 2003
-@@ -461,7 +461,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-src__mod__share.mod__share.c b/irc/eggdrop/files/patch-src__mod__share.mod__share.c
index b36fad862168..e69de29bb2d1 100644
--- a/irc/eggdrop/files/patch-src__mod__share.mod__share.c
+++ b/irc/eggdrop/files/patch-src__mod__share.mod__share.c
@@ -1,22 +0,0 @@
---- src/mod/share.mod/share.c.orig Mon May 5 00:05:33 2003
-+++ src/mod/share.mod/share.c Tue Nov 18 16:51:41 2003
-@@ -1120,7 +1120,7 @@
- int i, sock;
- FILE *f;
-
-- egg_snprintf(s, sizeof s, ".share.%s.%li.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");
-@@ -1889,8 +1889,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.%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/eggdrop/files/patch-src__modules.c b/irc/eggdrop/files/patch-src__modules.c
index 5ad3cfa09ada..e69de29bb2d1 100644
--- a/irc/eggdrop/files/patch-src__modules.c
+++ b/irc/eggdrop/files/patch-src__modules.c
@@ -1,8 +0,0 @@
---- src/modules.c.orig Mon Jun 2 11:31:15 2003
-+++ src/modules.c Mon Jun 2 11:31:44 2003
-@@ -120,4 +120,4 @@
- #ifndef STATIC
--char moddir[121] = "modules/";
-+char moddir[121] = __PREFIX__ "/lib/eggdrop/";
- #endif
-
diff --git a/irc/eggdrop/files/patch-src_eggdrop.h b/irc/eggdrop/files/patch-src_eggdrop.h
new file mode 100644
index 000000000000..bd6079e5704d
--- /dev/null
+++ b/irc/eggdrop/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/eggdrop/files/patch-src_main.c b/irc/eggdrop/files/patch-src_main.c
new file mode 100644
index 000000000000..018d5911c310
--- /dev/null
+++ b/irc/eggdrop/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/eggdrop/files/patch-src_mod_share.mod__share.c b/irc/eggdrop/files/patch-src_mod_share.mod__share.c
new file mode 100644
index 000000000000..c0f7d2172f9e
--- /dev/null
+++ b/irc/eggdrop/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/eggdrop/files/patch-src_modules.c b/irc/eggdrop/files/patch-src_modules.c
new file mode 100644
index 000000000000..0f7528625d86
--- /dev/null
+++ b/irc/eggdrop/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/eggdrop/pkg-plist b/irc/eggdrop/pkg-plist
index 58d8a3cdd35a..617a6b5d054d 100644
--- a/irc/eggdrop/pkg-plist
+++ b/irc/eggdrop/pkg-plist
@@ -16,6 +16,79 @@ lib/eggdrop/share.so
lib/eggdrop/transfer.so
lib/eggdrop/uptime.so
lib/eggdrop/wire.so
+%%PORTDOCS%%%%DOCSDIR%%/ABOUT
+%%PORTDOCS%%%%DOCSDIR%%/BANS
+%%PORTDOCS%%%%DOCSDIR%%/BOTNET
+%%PORTDOCS%%%%DOCSDIR%%/BUG-REPORT
+%%PORTDOCS%%%%DOCSDIR%%/COMPILE-GUIDE
+%%PORTDOCS%%%%DOCSDIR%%/CONTENTS
+%%PORTDOCS%%%%DOCSDIR%%/Changes1.6
+%%PORTDOCS%%%%DOCSDIR%%/FIRST-SCRIPT
+%%PORTDOCS%%%%DOCSDIR%%/KNOWN-PROBLEMS
+%%PORTDOCS%%%%DOCSDIR%%/MODULES
+%%PORTDOCS%%%%DOCSDIR%%/PARTYLINE
+%%PORTDOCS%%%%DOCSDIR%%/PATCH-HOWTO
+%%PORTDOCS%%%%DOCSDIR%%/TEXT-SUBSTITUTIONS
+%%PORTDOCS%%%%DOCSDIR%%/TRICKS
+%%PORTDOCS%%%%DOCSDIR%%/USERS
+%%PORTDOCS%%%%DOCSDIR%%/WEIRD-MESSAGES
+%%PORTDOCS%%%%DOCSDIR%%/html/about.html
+%%PORTDOCS%%%%DOCSDIR%%/html/app-problems.html
+%%PORTDOCS%%%%DOCSDIR%%/html/app-textsub.html
+%%PORTDOCS%%%%DOCSDIR%%/html/app-tricks.html
+%%PORTDOCS%%%%DOCSDIR%%/html/app-weird.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bans.html
+%%PORTDOCS%%%%DOCSDIR%%/html/botnet.html
+%%PORTDOCS%%%%DOCSDIR%%/html/compiling.html
+%%PORTDOCS%%%%DOCSDIR%%/html/egg-core.html
+%%PORTDOCS%%%%DOCSDIR%%/html/faqs.html
+%%PORTDOCS%%%%DOCSDIR%%/html/features.html
+%%PORTDOCS%%%%DOCSDIR%%/html/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/install.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-assoc.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-blowfish.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-channels.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-compress.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-console.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-ctcp.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-dns.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-filesys.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-irc.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-notes.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-seen.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-server.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-share.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-transfer.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-uptime.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-wire.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mod-woobie.html
+%%PORTDOCS%%%%DOCSDIR%%/html/news.html
+%%PORTDOCS%%%%DOCSDIR%%/html/party.html
+%%PORTDOCS%%%%DOCSDIR%%/html/patch-howto.html
+%%PORTDOCS%%%%DOCSDIR%%/html/readme.html
+%%PORTDOCS%%%%DOCSDIR%%/html/starting.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tcl-commands.html
+%%PORTDOCS%%%%DOCSDIR%%/html/users.html
+%%PORTDOCS%%%%DOCSDIR%%/settings/CONTENTS
+%%PORTDOCS%%%%DOCSDIR%%/settings/core.settings
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.assoc
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.blowfish
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.channels
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.compress
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.console
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.ctcp
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.dns
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.filesys
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.irc
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.notes
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.seen
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.server
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.share
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.transfer
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.uptime
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.wire
+%%PORTDOCS%%%%DOCSDIR%%/settings/mod.woobie
+%%PORTDOCS%%%%DOCSDIR%%/tcl-commands.doc
%%DATADIR%%/help/assoc.help
%%DATADIR%%/help/chaninfo.help
%%DATADIR%%/help/channels.help
@@ -27,16 +100,12 @@ lib/eggdrop/wire.so
%%DATADIR%%/help/ctcp.help
%%DATADIR%%/help/filesys.help
%%DATADIR%%/help/irc.help
-%%DATADIR%%/help/notes.help
-%%DATADIR%%/help/seen.help
-%%DATADIR%%/help/server.help
-%%DATADIR%%/help/share.help
-%%DATADIR%%/help/transfer.help
-%%DATADIR%%/help/uptime.help
-%%DATADIR%%/help/wire.help
%%DATADIR%%/help/msg/irc.help
%%DATADIR%%/help/msg/notes.help
%%DATADIR%%/help/msg/seen.help
+%%DATADIR%%/help/notes.help
+%%DATADIR%%/help/seen.help
+%%DATADIR%%/help/server.help
%%DATADIR%%/help/set/channels.help
%%DATADIR%%/help/set/cmds1.help
%%DATADIR%%/help/set/compress.help
@@ -48,11 +117,10 @@ lib/eggdrop/wire.so
%%DATADIR%%/help/set/server.help
%%DATADIR%%/help/set/share.help
%%DATADIR%%/help/set/transfer.help
-%%DATADIR%%/language/core.danish.lang
-%%DATADIR%%/language/core.english.lang
-%%DATADIR%%/language/core.finnish.lang
-%%DATADIR%%/language/core.french.lang
-%%DATADIR%%/language/core.german.lang
+%%DATADIR%%/help/share.help
+%%DATADIR%%/help/transfer.help
+%%DATADIR%%/help/uptime.help
+%%DATADIR%%/help/wire.help
%%DATADIR%%/language/assoc.danish.lang
%%DATADIR%%/language/assoc.english.lang
%%DATADIR%%/language/assoc.finnish.lang
@@ -63,6 +131,11 @@ lib/eggdrop/wire.so
%%DATADIR%%/language/console.finnish.lang
%%DATADIR%%/language/console.french.lang
%%DATADIR%%/language/console.german.lang
+%%DATADIR%%/language/core.danish.lang
+%%DATADIR%%/language/core.english.lang
+%%DATADIR%%/language/core.finnish.lang
+%%DATADIR%%/language/core.french.lang
+%%DATADIR%%/language/core.german.lang
%%DATADIR%%/language/filesys.danish.lang
%%DATADIR%%/language/filesys.english.lang
%%DATADIR%%/language/filesys.finnish.lang
@@ -90,97 +163,31 @@ lib/eggdrop/wire.so
%%DATADIR%%/scripts/botchk
%%DATADIR%%/scripts/cmd_resolve.tcl
%%DATADIR%%/scripts/compat.tcl
+%%DATADIR%%/scripts/dccwhois.tcl
%%DATADIR%%/scripts/getops.tcl
+%%DATADIR%%/scripts/help/cmd_resolve.help
+%%DATADIR%%/scripts/help/msg/userinfo.help
+%%DATADIR%%/scripts/help/userinfo.help
%%DATADIR%%/scripts/klined.tcl
%%DATADIR%%/scripts/notes2.tcl
%%DATADIR%%/scripts/ques5.tcl
+%%DATADIR%%/scripts/quotepass.tcl
+%%DATADIR%%/scripts/quotepong.tcl
%%DATADIR%%/scripts/sentinel.tcl
%%DATADIR%%/scripts/userinfo.tcl
%%DATADIR%%/scripts/weed
%%DATADIR%%/text/banner
%%DATADIR%%/text/motd
-%%PORTDOCS%%%%DOCSDIR%%/ABOUT
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/BANS
-%%PORTDOCS%%%%DOCSDIR%%/BOTNET
-%%PORTDOCS%%%%DOCSDIR%%/BUG-REPORT
-%%PORTDOCS%%%%DOCSDIR%%/COMPILE-GUIDE
-%%PORTDOCS%%%%DOCSDIR%%/CONTENTS
-%%PORTDOCS%%%%DOCSDIR%%/FIRST-SCRIPT
-%%PORTDOCS%%%%DOCSDIR%%/KNOWN-PROBLEMS
-%%PORTDOCS%%%%DOCSDIR%%/MODULES
-%%PORTDOCS%%%%DOCSDIR%%/PARTYLINE
-%%PORTDOCS%%%%DOCSDIR%%/PATCH-HOWTO
-%%PORTDOCS%%%%DOCSDIR%%/TEXT-SUBSTITUTIONS
-%%PORTDOCS%%%%DOCSDIR%%/TRICKS
-%%PORTDOCS%%%%DOCSDIR%%/UPDATES1.6
-%%PORTDOCS%%%%DOCSDIR%%/USERS
-%%PORTDOCS%%%%DOCSDIR%%/WEIRD-MESSAGES
-%%PORTDOCS%%%%DOCSDIR%%/tcl-commands.doc
-%%PORTDOCS%%%%DOCSDIR%%/html/about.html
-%%PORTDOCS%%%%DOCSDIR%%/html/app-problems.html
-%%PORTDOCS%%%%DOCSDIR%%/html/app-textsub.html
-%%PORTDOCS%%%%DOCSDIR%%/html/app-tricks.html
-%%PORTDOCS%%%%DOCSDIR%%/html/app-weird.html
-%%PORTDOCS%%%%DOCSDIR%%/html/authors.html
-%%PORTDOCS%%%%DOCSDIR%%/html/bans.html
-%%PORTDOCS%%%%DOCSDIR%%/html/botnet.html
-%%PORTDOCS%%%%DOCSDIR%%/html/compiling.html
-%%PORTDOCS%%%%DOCSDIR%%/html/egg-core.html
-%%PORTDOCS%%%%DOCSDIR%%/html/faqs.html
-%%PORTDOCS%%%%DOCSDIR%%/html/features.html
-%%PORTDOCS%%%%DOCSDIR%%/html/index.html
-%%PORTDOCS%%%%DOCSDIR%%/html/install.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-assoc.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-blowfish.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-channels.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-compress.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-console.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-ctcp.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-dns.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-filesys.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-irc.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-notes.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-seen.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-server.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-share.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-uptime.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-wire.html
-%%PORTDOCS%%%%DOCSDIR%%/html/mod-woobie.html
-%%PORTDOCS%%%%DOCSDIR%%/html/news.html
-%%PORTDOCS%%%%DOCSDIR%%/html/party.html
-%%PORTDOCS%%%%DOCSDIR%%/html/patch-howto.html
-%%PORTDOCS%%%%DOCSDIR%%/html/readme.html
-%%PORTDOCS%%%%DOCSDIR%%/html/starting.html
-%%PORTDOCS%%%%DOCSDIR%%/html/tcl-commands.html
-%%PORTDOCS%%%%DOCSDIR%%/html/users.html
-%%PORTDOCS%%%%DOCSDIR%%/settings/CONTENTS
-%%PORTDOCS%%%%DOCSDIR%%/settings/core.settings
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.assoc
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.blowfish
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.channels
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.compress
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.console
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.ctcp
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.dns
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.filesys
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.irc
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.notes
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.seen
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.server
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.share
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.transfer
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.uptime
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.wire
-%%PORTDOCS%%%%DOCSDIR%%/settings/mod.woobie
@dirrm %%DATADIR%%/text
+@dirrm %%DATADIR%%/scripts/help/msg
+@dirrm %%DATADIR%%/scripts/help
@dirrm %%DATADIR%%/scripts
@dirrm %%DATADIR%%/language
@dirrm %%DATADIR%%/help/set
@dirrm %%DATADIR%%/help/msg
@dirrm %%DATADIR%%/help
-@dirrmtry %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/settings
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DATADIR%%
+@dirrm %%PORTDOCS%%%%DOCSDIR%%/settings
+@dirrm %%PORTDOCS%%%%DOCSDIR%%/html
+@dirrm %%PORTDOCS%%%%DOCSDIR%%
@dirrm lib/eggdrop