From 7a39ef13a08d88a8f0c114fdc15fbb0e56d153ef Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Tue, 1 Apr 2003 08:35:00 +0000 Subject: [PATCH] irc/darkbot - The talking IRC Bot! Darkbot is a very smart IRC bot with a very fast algorithm for an auto-responder database. More information about Darkbot can be found on http://darkbot.sourceforge.net/ PR: ports/48847 Submitted by: A. Gabriel --- irc/Makefile | 1 + irc/darkbot/Makefile | 28 ++++++++++++++++++++++++++++ irc/darkbot/distinfo | 1 + irc/darkbot/files/patch-Makefile | 30 ++++++++++++++++++++++++++++++ irc/darkbot/pkg-comment | 2 ++ irc/darkbot/pkg-descr | 11 +++++++++++ irc/darkbot/pkg-plist | 9 +++++++++ 7 files changed, 82 insertions(+) create mode 100644 irc/darkbot/Makefile create mode 100644 irc/darkbot/distinfo create mode 100644 irc/darkbot/files/patch-Makefile create mode 100644 irc/darkbot/pkg-comment create mode 100644 irc/darkbot/pkg-descr create mode 100644 irc/darkbot/pkg-plist diff --git a/irc/Makefile b/irc/Makefile index 16bb5abfda8f..1b36bab0031a 100644 --- a/irc/Makefile +++ b/irc/Makefile @@ -5,6 +5,7 @@ SUBDIR += blackened SUBDIR += bnc SUBDIR += bobot++ + SUBDIR += darkbot SUBDIR += dcc SUBDIR += dircproxy SUBDIR += epic4 diff --git a/irc/darkbot/Makefile b/irc/darkbot/Makefile new file mode 100644 index 000000000000..575804943f9c --- /dev/null +++ b/irc/darkbot/Makefile @@ -0,0 +1,28 @@ +# Ports collection makefile for: Darkbot +# Date created: 24 February 2003 +# Whom: A. Gabriel +# +# $FreeBSD$ +# + +PORTNAME= darkbot +PORTVERSION= 6f6_r6 +CATEGORIES= irc +MASTER_SITES= http://darkbot.sourceforge.net/archive/unix/ \ + http://www.BSDCode.org/port/ + +MAINTAINER= backslash@BSDCode.org +COMMENT= IRC talking bot with a very fast algorithm for its database + +PLIST= ${WRKDIR}/plist + +MAN1= darkbot.1 +MANCOMPRESSED= yes + +GNU_CONFIGURE= yes +IS_INTERACTIVE= yes + +pre-install: + ${CAT} ${MASTERDIR}/pkg-plist | ${SED} -e "s,/usr/local,${LOCALBASE},g" > ${PLIST} + +.include diff --git a/irc/darkbot/distinfo b/irc/darkbot/distinfo new file mode 100644 index 000000000000..b280e40e617a --- /dev/null +++ b/irc/darkbot/distinfo @@ -0,0 +1 @@ +MD5 (darkbot-6f6_r6.tar.gz) = 8b27e94dafc967dee89938be67a7d8cb diff --git a/irc/darkbot/files/patch-Makefile b/irc/darkbot/files/patch-Makefile new file mode 100644 index 000000000000..aecc689a1d72 --- /dev/null +++ b/irc/darkbot/files/patch-Makefile @@ -0,0 +1,30 @@ +--- Makefile.orig Tue Apr 1 00:14:41 2003 ++++ Makefile Tue Apr 1 00:23:28 2003 +@@ -23,14 +23,15 @@ + + ALL_SRC = darkbot.c + +-BASE_DIR = /usr/local/ ++BASE_DIR = ${PREFIX}/ + + all: ; ${CC} ${CFLAGS} ${ALL_SRC} -o ${EXE_NAME}; + chmod +x ./configure; + + install: ; cp darkbot ${BASE_DIR}bin/; +- mkdir ${BASE_DIR}etc/darkbot/; mkdir ${BASE_DIR}etc/darkbot/logs/; +- mkdir ${BASE_DIR}etc/darkbot/dat/; ++ -mkdir ${BASE_DIR}etc/darkbot/; ++ -mkdir ${BASE_DIR}etc/darkbot/logs/; ++ -mkdir ${BASE_DIR}etc/darkbot/dat/; + cp dat/* ${BASE_DIR}etc/darkbot/dat/; chmod +x ./.runonce; ./.runonce; + cp configure config; chmod -x ./config; + cp ./config ${BASE_DIR}etc/darkbot/; +@@ -38,7 +39,7 @@ + echo "cd /usr/local/etc/darkbot/;/bin/sh config" >> \ + ${BASE_DIR}etc/darkbot/configure; + chmod +x ${BASE_DIR}etc/darkbot/configure; +- cp ./darkbot.1.gz /usr/local/man/man1/; ++ cp ./darkbot.1.gz ${BASE_DIR}man/man1/; + + debug: ; ${CC} ${DFLAGS} ${ALL_SRC} -o ${EXE_NAME}; cat .debug ; gdb ${EXE_NAME} + diff --git a/irc/darkbot/pkg-comment b/irc/darkbot/pkg-comment new file mode 100644 index 000000000000..ae3f8fa0c0df --- /dev/null +++ b/irc/darkbot/pkg-comment @@ -0,0 +1,2 @@ +IRC talking bot with a very fast algorithm for its database (auto-responds +on given masks). diff --git a/irc/darkbot/pkg-descr b/irc/darkbot/pkg-descr new file mode 100644 index 000000000000..5c0bd3be9ec8 --- /dev/null +++ b/irc/darkbot/pkg-descr @@ -0,0 +1,11 @@ +Originally created by Jason Hamilton as an aid for help +channels to answer repeated questions from its virtually +unlimited database, it has became a very popular talking +robot in a generic sense, being used all over IRC networks +for different purposes and in 18 languages. Data can be +added to it and managed dynamically online or edited in +its database files offline. + +WWW: http://darkbot.sourceforge.net/ + +--backslash diff --git a/irc/darkbot/pkg-plist b/irc/darkbot/pkg-plist new file mode 100644 index 000000000000..040d0c918038 --- /dev/null +++ b/irc/darkbot/pkg-plist @@ -0,0 +1,9 @@ +bin/darkbot +etc/darkbot/dat/info2.db +etc/darkbot/dat/deop.ini +etc/darkbot/dat/perform.ini +etc/darkbot/dat/permbans.db +etc/darkbot/dat/random.ini +etc/darkbot/dat/randomstuff.ini +etc/darkbot/dat/seen.db +@unexec rm -rf /usr/local/etc/darkbot/ /usr/local/bin/darkbot*