diff options
author | jlam <jlam@pkgsrc.org> | 2005-11-02 08:34:47 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-11-02 08:34:47 +0000 |
commit | 9bb6f069a1835f639780f723af09315d930a1a8e (patch) | |
tree | 1b6a2af217b64bd7026ff75ac687b1c901128669 /chat | |
parent | b0bf955d41e595c6e9e11ad2350e3d72f171c400 (diff) | |
download | pkgsrc-9bb6f069a1835f639780f723af09315d930a1a8e.tar.gz |
Initial import of gaim-icb-20050918 as chat/gaim-icb. This is an ICB
protocol plugin for GAIM (chat/gaim). Important changes that were
made as part of porting this software to pkgsrc include the following:
* Teach gaim-icb to display all status messages sent by the ICB server,
which allows server-specific info messages to be received by the ICB
plugin.
* Add the "brick" shortcut command (of course).
Diffstat (limited to 'chat')
-rw-r--r-- | chat/gaim-icb/DESCR | 1 | ||||
-rw-r--r-- | chat/gaim-icb/Makefile | 39 | ||||
-rw-r--r-- | chat/gaim-icb/PLIST | 3 | ||||
-rw-r--r-- | chat/gaim-icb/distinfo | 6 | ||||
-rw-r--r-- | chat/gaim-icb/patches/patch-aa | 55 |
5 files changed, 104 insertions, 0 deletions
diff --git a/chat/gaim-icb/DESCR b/chat/gaim-icb/DESCR new file mode 100644 index 00000000000..93bb8a7f271 --- /dev/null +++ b/chat/gaim-icb/DESCR @@ -0,0 +1 @@ +This is an ICB protocol plugin for GAIM. diff --git a/chat/gaim-icb/Makefile b/chat/gaim-icb/Makefile new file mode 100644 index 00000000000..ad2379931a6 --- /dev/null +++ b/chat/gaim-icb/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $ + +DISTNAME= gaim-icb-20050918 +CATEGORIES= chat +MASTER_SITES= http://nic.com.pl/~alek/gaim-icb/ + +MAINTAINER= nathanw@NetBSD.org +HOMEPAGE= http://nic.com.pl/~alek/gaim-icb/ +COMMENT= ICB plugin for GAIM + +USE_TOOLS+= pkg-config + +USE_LIBTOOL= yes +NO_CONFIGURE= yes + +LTCOMPILE= ${SHLIBTOOL} --mode=compile ${CC} +LTLINK= ${SHLIBTOOL} --mode=link ${CC} +LTINSTALL= ${SHLIBTOOL} --mode=install ${INSTALL_LIB} +CFLAGS+= -DHAVE_CONFIG_H `pkg-config gaim --cflags` +LDFLAGS+= -module -avoid-version -rpath ${GAIM_PLUGIN_DIR} \ + `pkg-config gaim --libs` + +GAIM_PLUGIN_DIR= ${PREFIX}/lib/gaim +GAIM_PIXMAPS_DIR= ${PREFIX}/share/pixmaps/gaim + +do-build: + cd ${WRKSRC} && ${LTCOMPILE} ${CFLAGS} -I. -c icb.c + cd ${WRKSRC} && ${LTLINK} ${LDFLAGS} -o libicb.la icb.lo + +do-install: + ${INSTALL_LIB_DIR} ${GAIM_PLUGIN_DIR} + cd ${WRKSRC} && ${LTINSTALL} libicb.la ${GAIM_PLUGIN_DIR} + ${INSTALL_DATA_DIR} ${GAIM_PIXMAPS_DIR}/status/default + cd ${WRKSRC} && ${INSTALL_DATA} icb.png \ + ${GAIM_PIXMAPS_DIR}/status/default + +.include "../../chat/gaim/buildlink3.mk" +.include "../../devel/glib2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/chat/gaim-icb/PLIST b/chat/gaim-icb/PLIST new file mode 100644 index 00000000000..38be27f503d --- /dev/null +++ b/chat/gaim-icb/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $ +lib/gaim/libicb.la +share/pixmaps/gaim/status/default/icb.png diff --git a/chat/gaim-icb/distinfo b/chat/gaim-icb/distinfo new file mode 100644 index 00000000000..23262d54b50 --- /dev/null +++ b/chat/gaim-icb/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $ + +SHA1 (gaim-icb-20050918.tar.gz) = 275e622e63bc3211abb752057c5cb3cb44a7e6e7 +RMD160 (gaim-icb-20050918.tar.gz) = 00685ff20707989eaf130ee6a1a8574ccd58c1c4 +Size (gaim-icb-20050918.tar.gz) = 12971 bytes +SHA1 (patch-aa) = a69f78f91b49e632a40cb4072854cbab190ee4fd diff --git a/chat/gaim-icb/patches/patch-aa b/chat/gaim-icb/patches/patch-aa new file mode 100644 index 00000000000..84afbeac4ac --- /dev/null +++ b/chat/gaim-icb/patches/patch-aa @@ -0,0 +1,55 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $ + +--- icb.c.orig 2005-09-18 04:44:15.000000000 -0400 ++++ icb.c +@@ -661,6 +661,16 @@ icb_input_cb(gpointer data, gint source, + gaim_conv_chat_user_set_flags(GAIM_CONV_CHAT(conv), new_mod, GAIM_CBFLAGS_OP); + gaim_conv_chat_write(GAIM_CONV_CHAT(conv), "", packet->fields[1], + GAIM_MESSAGE_SYSTEM, time(NULL)); ++ } else if (packet->nof == 2) { ++ char *tmp; ++ GaimConversation *conv; ++ ++ conv = icb_get_current_group(gc->account, icb->chat_id); ++ ++ tmp = g_strdup_printf(_("%s: %s"), packet->fields[0], packet->fields[1]); ++ gaim_conv_chat_write(GAIM_CONV_CHAT(conv), "", tmp, ++ GAIM_MESSAGE_SYSTEM, time(NULL)); ++ g_free(tmp); + } + break; + case ICB_CMD_COMMAND_RESP: +@@ -984,6 +994,20 @@ icb_gaim_cmd_kick(GaimConversation *conv + return icb_gaim_send_cmd(conv, buf); + } + ++static GaimCmdRet ++icb_gaim_cmd_brick(GaimConversation *conv, ++ const char *cmd, char **args, char **error, void *data) ++{ ++ int r; ++ char buf[ICB_MAX_DATA_SIZE+1]; ++ ++ r = snprintf(buf, sizeof(buf), "server brick %s", args[0]); ++ if (r <= 0) ++ return GAIM_CMD_RET_FAILED; ++ ++ return icb_gaim_send_cmd(conv, buf); ++} ++ + static void + icb_set_chat_topic(GaimConnection *gc, int id, const char *topic) + { +@@ -1174,6 +1198,12 @@ _init_plugin(GaimPlugin *plugin) + icb_gaim_cmd_kick, + _("boot <nickname>: If you are group moderator, removes "nickname" from group"), + NULL); ++ gaim_cmd_register("brick","w", GAIM_CMD_P_PRPL, ++ GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, ++ "prpl-icb", ++ icb_gaim_cmd_brick, ++ _("brick <nickname>: Throw a brick at "nickname""), ++ NULL); + gaim_cmd_register("m","ws", GAIM_CMD_P_PRPL, + GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, + "prpl-icb", |