summaryrefslogtreecommitdiff
path: root/net/eggdrop
diff options
context:
space:
mode:
authortv <tv>1998-11-24 04:12:07 +0000
committertv <tv>1998-11-24 04:12:07 +0000
commitd14a0b518cc5f8d686ced9c755dc9f950bb8682a (patch)
treeb7b4e115f8ea18083d5a9b309f518c9e36a9a0fe /net/eggdrop
parentba7eb308797f927cada93dc54ce219d4af3258e1 (diff)
downloadpkgsrc-d14a0b518cc5f8d686ced9c755dc9f950bb8682a.tar.gz
Add eggdrop 1.3.22, a very popular IRC robot.
Diffstat (limited to 'net/eggdrop')
-rw-r--r--net/eggdrop/Makefile63
-rw-r--r--net/eggdrop/files/md53
-rw-r--r--net/eggdrop/patches/patch-aa18
-rw-r--r--net/eggdrop/patches/patch-ab19
-rw-r--r--net/eggdrop/patches/patch-ac11
-rw-r--r--net/eggdrop/pkg/COMMENT1
-rw-r--r--net/eggdrop/pkg/DESCR17
-rw-r--r--net/eggdrop/pkg/PLIST70
8 files changed, 202 insertions, 0 deletions
diff --git a/net/eggdrop/Makefile b/net/eggdrop/Makefile
new file mode 100644
index 00000000000..31fb0e29912
--- /dev/null
+++ b/net/eggdrop/Makefile
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.1 1998/11/24 04:12:07 tv Exp $
+#
+
+DISTNAME= eggdrop1.3.22
+PKGNAME= eggdrop-1.3.22
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.sodre.net/pub/eggdrop/ \
+ ftp://ftp.bots.org/pub/mirrors/eggdrop/ \
+ ftp://ftp.gymnet.com/pub/irc/bots/eggdrop/
+
+MAINTAINER= tv@netbsd.org
+HOMEPAGE= http://www.sodre.net/eggdrop/
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV+= TCLLIB="${PREFIX}/lib" TCLINC="${PREFIX}/include/tcl8.0"
+
+post-patch:
+ cd ${WRKSRC} && ${SED} -e 's,modules/,${PREFIX}/lib/eggdrop/,' \
+ < eggdrop.conf.dist > eggdrop.conf.dist.new
+
+do-install: do-install-program
+do-install-program:
+ ${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${PREFIX}/man/man1/
+ ${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.dist.new ${PREFIX}/etc/eggdrop.conf.dist
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop \
+ ${PREFIX}/share/eggdrop/help ${PREFIX}/share/eggdrop/language \
+ ${PREFIX}/share/eggdrop/scripts \
+ ${PREFIX}/share/eggdrop/help/msg ${PREFIX}/share/eggdrop/help/set
+ ${INSTALL_DATA} ${WRKSRC}/language/core.english.lang \
+ ${PREFIX}/share/eggdrop/language/
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} BOTNET eggdrop.doc \
+ tcl-commands.doc tricks ${PREFIX}/share/eggdrop/
+ cd ${WRKSRC}/help && ${INSTALL_DATA} assoc.help chaninfo \
+ channels.help cmds1.help cmds2.help console.help core.help \
+ filesys.help irc.help notes.help seen.help server.help \
+ share.help userinfo.help \
+ ${PREFIX}/share/eggdrop/help/
+ cd ${WRKSRC}/help/msg && ${INSTALL_DATA} irc.help notes.help \
+ seen.help userinfo.help \
+ ${PREFIX}/share/eggdrop/help/msg/
+ cd ${WRKSRC}/help/set && ${INSTALL_DATA} channels.help cmds1.help \
+ cmds2.help console.help ctcp.help filesys.help irc.help \
+ notes.help server.help transfer.help \
+ ${PREFIX}/share/eggdrop/help/set/
+ cd ${WRKSRC}/scripts && ${INSTALL_DATA} CONTENTS action.fix.tcl \
+ alltools.tcl botchk compat.tcl getops-2.0.1.tcl klined.tcl \
+ notes2.tcl ques4.tcl userinfo1.0.tcl weed \
+ ${PREFIX}/share/eggdrop/scripts/
+
+.include "../../mk/bsd.pkg.mk"
+
+.if defined(NOPIC)
+ALL_TARGET= static
+.else
+do-install: do-install-modules
+do-install-modules:
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/eggdrop
+ cd ${WRKSRC} && ${INSTALL_DATA} assoc.so blowfish.so channels.so \
+ console.so ctcp.so filesys.so irc.so notes.so seen.so \
+ server.so share.so transfer.so wire.so woobie.so \
+ ${PREFIX}/lib/eggdrop/
+.endif
diff --git a/net/eggdrop/files/md5 b/net/eggdrop/files/md5
new file mode 100644
index 00000000000..49be75ec4d7
--- /dev/null
+++ b/net/eggdrop/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/11/24 04:12:09 tv Exp $
+
+MD5 (eggdrop1.3.22.tar.gz) = 94f44b8343f65475b05fbbf8dc339c3a
diff --git a/net/eggdrop/patches/patch-aa b/net/eggdrop/patches/patch-aa
new file mode 100644
index 00000000000..2df5a532ef5
--- /dev/null
+++ b/net/eggdrop/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1 1998/11/24 04:12:09 tv Exp $
+
+--- configure.orig Sat Oct 17 07:17:39 1998
++++ configure Mon Nov 23 19:19:22 1998
+@@ -1101,7 +1101,13 @@
+ *BSD)
+ echo "$ac_t""FreeBSD/NetBSD - choose your poison" 1>&6
+ SHLIB_CC="$CC -fpic"
++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 <<\EOF
+ #define MODULES_OK 1
+ EOF
diff --git a/net/eggdrop/patches/patch-ab b/net/eggdrop/patches/patch-ab
new file mode 100644
index 00000000000..70429703865
--- /dev/null
+++ b/net/eggdrop/patches/patch-ab
@@ -0,0 +1,19 @@
+--- src/main.c.orig Fri Oct 23 07:20:44 1998
++++ src/main.c Mon Nov 23 23:06:43 1998
+@@ -93,7 +93,7 @@
+ /* foreground: use the terminal as a party line? */
+ int term_z = 0;
+ /* name of the config file */
+-char configfile[121] = "egg.config";
++char configfile[121] = __PREFIX__ "/etc/eggdrop.conf";
+ /* directory of help files (if used) */
+ char helpdir[121];
+ /* directory for text files that get dumped */
+@@ -513,6 +513,7 @@
+ FILE *f;
+ struct sigaction sv;
+ struct chanset_t * chan;
++ chdir(__PREFIX__ "/share/eggdrop");
+ /* initialise context list */
+ for (i = 0; i < 16; i++) {
+ context;
diff --git a/net/eggdrop/patches/patch-ac b/net/eggdrop/patches/patch-ac
new file mode 100644
index 00000000000..ec5385430ef
--- /dev/null
+++ b/net/eggdrop/patches/patch-ac
@@ -0,0 +1,11 @@
+--- src/Makefile.orig Mon Nov 23 22:09:34 1998
++++ src/Makefile Mon Nov 23 22:09:51 1998
+@@ -75,7 +75,7 @@
+ ${CC} ${CFLAGS} \
+ '-DCCFLAGS="${CC}"' \
+ '-DLDFLAGS="${LD}"' \
+- '-DSTRIPFLAGS="${STRIP}"' main.c
++ '-DSTRIPFLAGS="${STRIP}"' '-D__PREFIX__="${PREFIX}"' main.c
+
+ mem.o: mem.c
+ ${CC} ${CFLAGS} mem.c
diff --git a/net/eggdrop/pkg/COMMENT b/net/eggdrop/pkg/COMMENT
new file mode 100644
index 00000000000..3e37d3e16fc
--- /dev/null
+++ b/net/eggdrop/pkg/COMMENT
@@ -0,0 +1 @@
+IRC robot with TCL scripting and multi-channel ability
diff --git a/net/eggdrop/pkg/DESCR b/net/eggdrop/pkg/DESCR
new file mode 100644
index 00000000000..815b8ae39c9
--- /dev/null
+++ b/net/eggdrop/pkg/DESCR
@@ -0,0 +1,17 @@
+Eggdrop is an IRC bot, written in C. If you don't know what IRC is, this
+is probably not whatever you're looking for! Eggdrop, being a bot, sits
+on a channel and takes protective measures: to keep the channel from being
+taken over (in the few ways that anything CAN), to recognize banished
+users or sites and reject them, to recognize priveledged users and let
+them gain ops, etc.
+
+One of the more unique features of eggdrop is its "party line", accessable
+via DCC chat, which allows you to talk to other people lag-free.
+Consider it a multi-way DCC chat, or a miniature IRC (complete with
+channels). You can link up with other bots and expand the party line
+until it actually becomes something very much like IRC, in fact.
+
+The preliminary documentation is in "eggdrop.doc" and is intended to be
+read after you have eggdrop compiled and set up. It's changing all the
+time and getting new sections added. If you'd like to write a section,
+then please do!
diff --git a/net/eggdrop/pkg/PLIST b/net/eggdrop/pkg/PLIST
new file mode 100644
index 00000000000..e5a050c7ca1
--- /dev/null
+++ b/net/eggdrop/pkg/PLIST
@@ -0,0 +1,70 @@
+@comment $NetBSD: PLIST,v 1.1 1998/11/24 04:12:12 tv Exp $
+bin/eggdrop
+etc/eggdrop.conf.dist
+lib/eggdrop/assoc.so
+lib/eggdrop/blowfish.so
+lib/eggdrop/channels.so
+lib/eggdrop/console.so
+lib/eggdrop/ctcp.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/wire.so
+lib/eggdrop/woobie.so
+man/man1/eggdrop.1
+share/eggdrop/BOTNET
+share/eggdrop/eggdrop.doc
+share/eggdrop/tcl-commands.doc
+share/eggdrop/tricks
+share/eggdrop/help/assoc.help
+share/eggdrop/help/chaninfo
+share/eggdrop/help/channels.help
+share/eggdrop/help/cmds1.help
+share/eggdrop/help/cmds2.help
+share/eggdrop/help/console.help
+share/eggdrop/help/core.help
+share/eggdrop/help/filesys.help
+share/eggdrop/help/irc.help
+share/eggdrop/help/notes.help
+share/eggdrop/help/seen.help
+share/eggdrop/help/server.help
+share/eggdrop/help/share.help
+share/eggdrop/help/userinfo.help
+share/eggdrop/help/msg/irc.help
+share/eggdrop/help/msg/notes.help
+share/eggdrop/help/msg/seen.help
+share/eggdrop/help/msg/userinfo.help
+share/eggdrop/help/set/channels.help
+share/eggdrop/help/set/cmds1.help
+share/eggdrop/help/set/cmds2.help
+share/eggdrop/help/set/console.help
+share/eggdrop/help/set/ctcp.help
+share/eggdrop/help/set/filesys.help
+share/eggdrop/help/set/irc.help
+share/eggdrop/help/set/notes.help
+share/eggdrop/help/set/server.help
+share/eggdrop/help/set/transfer.help
+share/eggdrop/language/core.english.lang
+share/eggdrop/scripts/CONTENTS
+share/eggdrop/scripts/action.fix.tcl
+share/eggdrop/scripts/alltools.tcl
+share/eggdrop/scripts/botchk
+share/eggdrop/scripts/compat.tcl
+share/eggdrop/scripts/getops-2.0.1.tcl
+share/eggdrop/scripts/klined.tcl
+share/eggdrop/scripts/notes2.tcl
+share/eggdrop/scripts/ques4.tcl
+share/eggdrop/scripts/userinfo1.0.tcl
+share/eggdrop/scripts/weed
+@comment The directory does not exist for NOPIC, so don't issue an error.
+@unexec rmdir %D/lib/eggdrop 2>/dev/null || true
+@dirrm share/eggdrop/help/msg
+@dirrm share/eggdrop/help/set
+@dirrm share/eggdrop/help
+@dirrm share/eggdrop/language
+@dirrm share/eggdrop/scripts
+@dirrm share/eggdrop