ports/187136: New port: irc/irccd a fast and powerful C++ IRC bot
David Demelier
markand at malikania.fr
Mon Apr 14 11:43:46 UTC 2014
Please see attached the update to 1.1.4 with a rc script.
-------------- next part --------------
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# irccd
# irccd/pkg-descr
# irccd/distinfo
# irccd/Makefile
# irccd/files
# irccd/files/irccd.in
# irccd/pkg-plist
#
echo c - irccd
mkdir -p irccd > /dev/null 2>&1
echo x - irccd/pkg-descr
sed 's/^X//' >irccd/pkg-descr << '0d907f7d641324a63e39a0202837b564'
XIrccd is a IRC bot written in C++ and Lua. It runs as a daemon and waits for
Xevents. Irccd is extendable with Lua plugins, this allow you to create anything
Xyou want.
X
XCurrently, irccd can use Lua plugins to interact with IRC events. This means,
Xyou can catch the messages, joining, the topic changes and many other events.
XThere are a lot of IRC events supported.
X
XIt is also possible to control irccd with its dedicated tool called irccdctl
Xwhich allows to send messages to a channel, a query, etc.
X
XTo summary, here's a list of the more powerful features:
X
X Use Lua plugin to catch IRC events
X Support multiple servers
X Support multiple identities
X Can be controled by sockets
X Runs on Linux, Windows and *BSD
X Well documented
X Clean and powerful Lua API
X Very fast and light
0d907f7d641324a63e39a0202837b564
echo x - irccd/distinfo
sed 's/^X//' >irccd/distinfo << '01a36fbca63dceebfbfea9a12702f57f'
XSHA256 (irccd-1.1.4-source.tar.gz) = 6f5735e4bf620a9199cf452799f81bcd1f85d66ebf0fa31d348eb1775956b33b
XSIZE (irccd-1.1.4-source.tar.gz) = 13661824
01a36fbca63dceebfbfea9a12702f57f
echo x - irccd/Makefile
sed 's/^X//' >irccd/Makefile << '5cc871110b4bec4b53e1e02e7bbc46fb'
X# $FreeBSD$
X
XPORTNAME= irccd
XPORTVERSION= 1.1.4
XCATEGORIES= irc
XMASTER_SITES= http://releases.malikania.fr/irccd/
XDISTNAME= ${PORTNAME}-${PORTVERSION}-source
X
XMAINTAINER= markand at malikania.fr
XCOMMENT= A very fast and powerful IRC bot
X
XLICENSE= ISCL
X
XUSES= cmake compiler:c++11-lang compiler:c++11-lib
XCMAKE_ARGS= -DMANDIR=man
XLIB_DEPENDS= libxdg-basedir.so:${PORTSDIR}/x11/libxdg-basedir
XUSE_RC_SUBR= irccd
X
XOPTIONS_DEFINE= LUA DOCS
XOPTIONS_DEFAULT=LUA
XOPTIONS_SUB= yes
X
XOPTIONS_GROUP= PLUGINS
X
XPLUGINS= ANTIFLOOD ASK AUTH BADWORDS DATE HISTORY LOGGER ROULETTE
X
X.for n in ${PLUGINS}
X OPTIONS_GROUP_PLUGINS+= ${n}
X OPTIONS_DEFAULT+= ${n}
X ${n}_DESC=Enable plugin ${n}
X.endfor
X
X.include <bsd.port.options.mk>
X
X.if !${PORT_OPTIONS:MDOCS}
XCMAKE_ARGS+= -DWITH_LDOC=Off -DWITH_DOC=Off
X.endif
X
X.if ${PORT_OPTIONS:MLUA}
XUSES+= lua:run
XCMAKE_ARGS+= -DWITH_LUA52=On
X.else
XCMAKE_ARGS+= -DWITH_LUA52=Off -DWITH_LUAJIT=Off
X.endif
X
X.for n in ${PLUGINS}
X. if ${PORT_OPTIONS:M${n}}
X. if !${PORT_OPTIONS:MLUA}
XIGNORE=${n} requires LUA option
X. else
XCMAKE_ARGS+= -DMOD_${n}=On
X. endif
X. else
XCMAKE_ARGS+= -DMOD_${n}=Off
X. endif
X.endfor
X
X.include <bsd.port.mk>
5cc871110b4bec4b53e1e02e7bbc46fb
echo c - irccd/files
mkdir -p irccd/files > /dev/null 2>&1
echo x - irccd/files/irccd.in
sed 's/^X//' >irccd/files/irccd.in << '807cca30194e0a2ed8387106fa5c4829'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: irccd
X# REQUIRE: LOGIN
X#
X
X. /etc/rc.subr
X
Xname=irccd
Xrcvar=irccd_enable
X
Xload_rc_config $name
X
X: ${irccd_enable:="NO"}
X: ${irccd_config=%%PREFIX%%/etc/irccd.conf}
X
Xcommand=/usr/local/bin/${name}
Xcommand_args="-c ${irccd_config}"
X
Xrun_rc_command "$1"
807cca30194e0a2ed8387106fa5c4829
echo x - irccd/pkg-plist
sed 's/^X//' >irccd/pkg-plist << '6d1d5a96c2cbf1d9f92ddb0e21f2373b'
Xbin/irccd
Xbin/irccdctl
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/1.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/10.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/11.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/12.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/13.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/14.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/15.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/2.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/3.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/4.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/5.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/6.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/7.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/8.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/callouts/9.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/caution.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/example.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/home.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/important.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/next.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/note.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/prev.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/tip.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/up.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/icons/warning.png
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-antiflood.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-ask.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-auth.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-badwords.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-date.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-history.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-logger.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/plugin-roulette.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/socket-guide.html
X%%PORTDOCS%%%%DOCSDIR%%/guides/user-guide.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/examples/Connect.lua.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/examples/Formatting.lua.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/examples/Server.lua.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/examples/Welcome.lua.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/index.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/ldoc.css
X%%PORTDOCS%%%%DOCSDIR%%/lua/logo.png
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.fs.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.logger.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.parser.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.plugin.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.server.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.socket.address.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.socket.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.socket.listener.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.system.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.thread.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.thread.pipe.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/modules/irccd.util.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/robot.png
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/1-Introduction.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/1.1-Standard-Libraries.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/2-Plugin_creation.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/2.1-Using_irccd_test.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/2.2-List_of_Events.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Action.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Channel-notice.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Command.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Connect.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Invite.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Join.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Kick.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Load.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Message.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Mode.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Names.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Nick.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Notice.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Part.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Query.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Reload.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Topic.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Unload.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-User-mode.md.html
X%%PORTDOCS%%%%DOCSDIR%%/lua/topics/3-Event-Whois.md.html
X%%ANTIFLOOD%%%%DATADIR%%/plugins/antiflood.lua
X%%ASK%%%%DATADIR%%/plugins/ask.lua
X%%AUTH%%%%DATADIR%%/plugins/auth.lua
X%%BADWORDS%%%%DATADIR%%/plugins/badwords.lua
X%%DATE%%%%DATADIR%%/plugins/date.lua
X%%HISTORY%%%%DATADIR%%/plugins/history.lua
X%%LOGGER%%%%DATADIR%%/plugins/logger.lua
X%%ROULETTE%%%%DATADIR%%/plugins/roulette.lua
Xman/man1/irccd.1.gz
Xman/man1/irccdctl.1.gz
Xman/man5/irccd.conf.5.gz
Xman/man5/irccdctl.conf.5.gz
X at dirrmtry man/man5
X at dirrmtry man/man1
X at dirrmtry man
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/lua/topics
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/lua/modules
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/lua/examples
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/lua
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/guides/icons/callouts
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/guides/icons
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/guides
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
6d1d5a96c2cbf1d9f92ddb0e21f2373b
exit
More information about the freebsd-ports-bugs
mailing list