diff options
author | foxfair <foxfair@FreeBSD.org> | 2003-06-11 13:32:50 +0800 |
---|---|---|
committer | foxfair <foxfair@FreeBSD.org> | 2003-06-11 13:32:50 +0800 |
commit | 6376a0f7b3c18f74438f005a8184479e0c9820a0 (patch) | |
tree | 1e0960a7c294db53114b5161bf0f5516ed45db9b /irc/eggdrop | |
parent | 0d5d7001c0b8f1c6aa53988321fd00a0ad01b5bb (diff) | |
download | freebsd-ports-gnome-6376a0f7b3c18f74438f005a8184479e0c9820a0.tar.gz freebsd-ports-gnome-6376a0f7b3c18f74438f005a8184479e0c9820a0.tar.zst freebsd-ports-gnome-6376a0f7b3c18f74438f005a8184479e0c9820a0.zip |
Add eggdrop 1.6.13,
the most popular open source Internet Relay Chat bot.
PR: 47296
Submitted by: Ulrich Spoerlein <q@uni.de>
Update to the latest version 1.6.15 will followup immediately.
Diffstat (limited to 'irc/eggdrop')
-rw-r--r-- | irc/eggdrop/Makefile | 70 | ||||
-rw-r--r-- | irc/eggdrop/distinfo | 1 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-aa | 17 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-ab | 39 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-ac | 20 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-ad | 11 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-ae | 14 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-ah | 11 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-ai | 23 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-aj | 11 | ||||
-rw-r--r-- | irc/eggdrop/files/patch-ak | 11 | ||||
-rw-r--r-- | irc/eggdrop/pkg-descr | 7 | ||||
-rw-r--r-- | irc/eggdrop/pkg-message | 6 | ||||
-rw-r--r-- | irc/eggdrop/pkg-plist | 104 |
14 files changed, 345 insertions, 0 deletions
diff --git a/irc/eggdrop/Makefile b/irc/eggdrop/Makefile new file mode 100644 index 000000000000..a29b2a1e5f13 --- /dev/null +++ b/irc/eggdrop/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: eggdrop +# Date created: 18.01.2003 +# Whom: Ulrich Spoerlein <q@uni.de> +# +# $FreeBSD$ +# + +PORTNAME= eggdrop +PORTVERSION= 1.6.13 +CATEGORIES= irc +MASTER_SITES= ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/ +DISTNAME= ${PORTNAME:S/-//}${PORTVERSION} + +MAINTAINER= q@uni.de +COMMENT= The most popular open source Internet Relay Chat bot + +.if !defined(WITH_TCL) +BUILD_DEPENDS+= ${LOCALBASE}/include/tcl8.3/tcl.h:${PORTSDIR}/lang/tcl83 +CONFIGURE_ARGS+= --with-tcllib=${LOCALBASE}/lib/libtcl83.so \ + --with-tclinc=${LOCALBASE}/include/tcl8.3/tcl.h +.endif + +GNU_CONFIGURE= yes +USE_REINPLACE= yes +INSTALLS_SHLIB= yes + +MAN1= eggdrop.1 + +post-patch: + @(cd ${WRKSRC} && ${REINPLACE_CMD} \ + -e 's,modules/,${PREFIX}/lib/eggdrop/,' \ + -e 's,#! /path/to/executable/,#!${PREFIX}/bin/,' eggdrop.conf) + +post-configure: + @(cd ${BUILD_WRKSRC}; ${MAKE} config) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${PREFIX}/man/man1/ + ${INSTALL_DATA} ${WRKSRC}/eggdrop.conf ${PREFIX}/etc/eggdrop.conf.sample + ${MKDIR} ${PREFIX}/lib/eggdrop + ${MKDIR} ${PREFIX}/share/eggdrop ${PREFIX}/share/eggdrop/scripts \ + ${PREFIX}/share/eggdrop/language ${PREFIX}/share/eggdrop/help \ + ${PREFIX}/share/eggdrop/help/set + ${INSTALL_DATA} ${WRKSRC}/language/core.*.lang \ + ${PREFIX}/share/eggdrop/language/ + @cd ${WRKSRC} && ${INSTALL_DATA} assoc.so blowfish.so channels.so \ + compress.so console.so ctcp.so dns.so filesys.so irc.so notes.so seen.so \ + server.so share.so transfer.so uptime.so wire.so ${PREFIX}/lib/eggdrop/ + @cd ${WRKSRC}/src/mod && ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \ + ${PREFIX}/share/eggdrop/language/ ";" + @cd ${WRKSRC}/scripts && ${INSTALL_DATA} 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 \ + ${PREFIX}/share/eggdrop/scripts/ + @cd ${WRKSRC}/help && ${INSTALL_DATA} cmds1.help cmds2.help core.help \ + ${PREFIX}/share/eggdrop/help/ + @cd ${WRKSRC}/help/set && ${INSTALL_DATA} cmds1.help cmds2.help \ + ${PREFIX}/share/eggdrop/help/set/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/eggdrop ${PREFIX}/share/eggdrop/html + @cd ${WRKSRC}/doc && ${INSTALL_DATA} BOTNET tcl-commands.doc tricks \ + ${PREFIX}/share/eggdrop/ + @cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html ${PREFIX}/share/eggdrop/html +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/irc/eggdrop/distinfo b/irc/eggdrop/distinfo new file mode 100644 index 000000000000..b8f8e338b9ff --- /dev/null +++ b/irc/eggdrop/distinfo @@ -0,0 +1 @@ +MD5 (eggdrop1.6.13.tar.gz) = 7889fffec7d9105ad5ce875dd7e58ca8 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. */ diff --git a/irc/eggdrop/pkg-descr b/irc/eggdrop/pkg-descr new file mode 100644 index 000000000000..6adc4e16b02d --- /dev/null +++ b/irc/eggdrop/pkg-descr @@ -0,0 +1,7 @@ +Eggdrop is the world's most popular open source Internet Relay Chat (IRC) bot. +Originally created by Robey Pointer in December 1993, it has spawned an almost +cult like following of users. It is a feature rich program designed to be +easily used and expanded upon (using Tcl scripting) by both novice and +advanced IRC users on a variety of hardware and software platforms. + +WWW: http://www.eggheads.org/ diff --git a/irc/eggdrop/pkg-message b/irc/eggdrop/pkg-message new file mode 100644 index 000000000000..9b0c37429dba --- /dev/null +++ b/irc/eggdrop/pkg-message @@ -0,0 +1,6 @@ +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/eggdrop/html, scripts go +to ${PREFIX}/share/eggdrop/scripts. diff --git a/irc/eggdrop/pkg-plist b/irc/eggdrop/pkg-plist new file mode 100644 index 000000000000..9c23afce4f5d --- /dev/null +++ b/irc/eggdrop/pkg-plist @@ -0,0 +1,104 @@ +bin/eggdrop +etc/eggdrop.conf.sample +lib/eggdrop/assoc.so +lib/eggdrop/blowfish.so +lib/eggdrop/channels.so +lib/eggdrop/compress.so +lib/eggdrop/console.so +lib/eggdrop/ctcp.so +lib/eggdrop/dns.so +lib/eggdrop/filesys.so +lib/eggdrop/irc.so +lib/eggdrop/notes.so +lib/eggdrop/seen.so +lib/eggdrop/server.so +lib/eggdrop/share.so +lib/eggdrop/transfer.so +lib/eggdrop/uptime.so +lib/eggdrop/wire.so +share/eggdrop/help/cmds1.help +share/eggdrop/help/cmds2.help +share/eggdrop/help/core.help +share/eggdrop/help/set/cmds1.help +share/eggdrop/help/set/cmds2.help +%%PORTDOCS%%share/eggdrop/BOTNET +%%PORTDOCS%%share/eggdrop/tcl-commands.doc +%%PORTDOCS%%share/eggdrop/tricks +%%PORTDOCS%%share/eggdrop/html/about.html +%%PORTDOCS%%share/eggdrop/html/app-problems.html +%%PORTDOCS%%share/eggdrop/html/app-textsub.html +%%PORTDOCS%%share/eggdrop/html/app-tricks.html +%%PORTDOCS%%share/eggdrop/html/app-weird.html +%%PORTDOCS%%share/eggdrop/html/authors.html +%%PORTDOCS%%share/eggdrop/html/bans.html +%%PORTDOCS%%share/eggdrop/html/botnet.html +%%PORTDOCS%%share/eggdrop/html/compiling.html +%%PORTDOCS%%share/eggdrop/html/egg-core.html +%%PORTDOCS%%share/eggdrop/html/faqs.html +%%PORTDOCS%%share/eggdrop/html/features.html +%%PORTDOCS%%share/eggdrop/html/index.html +%%PORTDOCS%%share/eggdrop/html/install.html +%%PORTDOCS%%share/eggdrop/html/mod-assoc.html +%%PORTDOCS%%share/eggdrop/html/mod-blowfish.html +%%PORTDOCS%%share/eggdrop/html/mod-channels.html +%%PORTDOCS%%share/eggdrop/html/mod-compress.html +%%PORTDOCS%%share/eggdrop/html/mod-console.html +%%PORTDOCS%%share/eggdrop/html/mod-ctcp.html +%%PORTDOCS%%share/eggdrop/html/mod-dns.html +%%PORTDOCS%%share/eggdrop/html/mod-filesys.html +%%PORTDOCS%%share/eggdrop/html/mod-irc.html +%%PORTDOCS%%share/eggdrop/html/mod-notes.html +%%PORTDOCS%%share/eggdrop/html/mod-seen.html +%%PORTDOCS%%share/eggdrop/html/mod-server.html +%%PORTDOCS%%share/eggdrop/html/mod-share.html +%%PORTDOCS%%share/eggdrop/html/mod-uptime.html +%%PORTDOCS%%share/eggdrop/html/mod-wire.html +%%PORTDOCS%%share/eggdrop/html/mod-woobie.html +%%PORTDOCS%%share/eggdrop/html/news.html +%%PORTDOCS%%share/eggdrop/html/party.html +%%PORTDOCS%%share/eggdrop/html/patch-howto.html +%%PORTDOCS%%share/eggdrop/html/readme.html +%%PORTDOCS%%share/eggdrop/html/starting.html +%%PORTDOCS%%share/eggdrop/html/tcl-commands.html +%%PORTDOCS%%share/eggdrop/html/users.html +share/eggdrop/language/core.english.lang +share/eggdrop/language/core.french.lang +share/eggdrop/language/core.german.lang +share/eggdrop/language/assoc.english.lang +share/eggdrop/language/assoc.french.lang +share/eggdrop/language/assoc.german.lang +share/eggdrop/language/console.english.lang +share/eggdrop/language/console.french.lang +share/eggdrop/language/console.german.lang +share/eggdrop/language/filesys.english.lang +share/eggdrop/language/filesys.french.lang +share/eggdrop/language/filesys.german.lang +share/eggdrop/language/notes.english.lang +share/eggdrop/language/notes.french.lang +share/eggdrop/language/notes.german.lang +share/eggdrop/language/transfer.english.lang +share/eggdrop/language/transfer.french.lang +share/eggdrop/language/wire.english.lang +share/eggdrop/language/wire.french.lang +share/eggdrop/language/wire.german.lang +share/eggdrop/scripts/CONTENTS +share/eggdrop/scripts/action.fix.tcl +share/eggdrop/scripts/alltools.tcl +share/eggdrop/scripts/autobotchk +share/eggdrop/scripts/botchk +share/eggdrop/scripts/cmd_resolve.tcl +share/eggdrop/scripts/compat.tcl +share/eggdrop/scripts/getops.tcl +share/eggdrop/scripts/klined.tcl +share/eggdrop/scripts/notes2.tcl +share/eggdrop/scripts/ques5.tcl +share/eggdrop/scripts/sentinel.tcl +share/eggdrop/scripts/userinfo.tcl +share/eggdrop/scripts/weed +@dirrm lib/eggdrop +%%PORTDOCS%%@dirrm share/eggdrop/html +@dirrm share/eggdrop/help/set +@dirrm share/eggdrop/help +@dirrm share/eggdrop/language +@dirrm share/eggdrop/scripts +@dirrm share/eggdrop |