From 58ad58749ce33c21d967304c7ee6e83c71c495af Mon Sep 17 00:00:00 2001 From: pav Date: Tue, 3 Jan 2006 14:56:47 +0000 Subject: SlashExec is a Gaim Plugin that lets you execute commands from within a Gaim conversation. SlashExec provides a limited command-line interpreter for this purpose. SlashExec can also either display the command's output locally or send the output as a message in the current conversation. PR: ports/91259 Submitted by: Kevin Brunelle --- net-im/Makefile | 1 + net-im/gaim-slashexec/Makefile | 27 +++++++++++++++++++++++++++ net-im/gaim-slashexec/distinfo | 3 +++ net-im/gaim-slashexec/files/patch-slashexec.c | 22 ++++++++++++++++++++++ net-im/gaim-slashexec/pkg-descr | 6 ++++++ 5 files changed, 59 insertions(+) create mode 100644 net-im/gaim-slashexec/Makefile create mode 100644 net-im/gaim-slashexec/distinfo create mode 100644 net-im/gaim-slashexec/files/patch-slashexec.c create mode 100644 net-im/gaim-slashexec/pkg-descr (limited to 'net-im') diff --git a/net-im/Makefile b/net-im/Makefile index 3426bc1e77a1..a4e4b39cda99 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -27,6 +27,7 @@ SUBDIR += gaim-latex SUBDIR += gaim-openq SUBDIR += gaim-rss-reader + SUBDIR += gaim-slashexec SUBDIR += gajim SUBDIR += gale SUBDIR += gicq diff --git a/net-im/gaim-slashexec/Makefile b/net-im/gaim-slashexec/Makefile new file mode 100644 index 000000000000..c58b4a8bb145 --- /dev/null +++ b/net-im/gaim-slashexec/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: gaim-slashexec +# Date created: 30 December 2005 +# Whom: kevinb +# +# $FreeBSD$ +# + +PORTNAME= slashexec +PORTVERSION= 1.0 +CATEGORIES= net-im +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= guifications +PKGNAMEPREFIX= gaim- + +MAINTAINER= kruptos@mlinux.org +COMMENT= Execute commands inside gaim + +BUILD_DEPENDS= gaim:${PORTSDIR}/net-im/gaim +RUN_DEPENDS= gaim:${PORTSDIR}/net-im/gaim + +USE_X_PREFIX= yes +USE_AUTOTOOLS= libtool:15 +USE_REINPLACE= yes + +PLIST_FILES= lib/gaim/se.so + +.include diff --git a/net-im/gaim-slashexec/distinfo b/net-im/gaim-slashexec/distinfo new file mode 100644 index 000000000000..5057ea0bbdd3 --- /dev/null +++ b/net-im/gaim-slashexec/distinfo @@ -0,0 +1,3 @@ +MD5 (slashexec-1.0.tar.gz) = ac3c02ffbe14917a79ac6c450a1efb31 +SHA256 (slashexec-1.0.tar.gz) = dde8eac693f0d8b289b5beca5c318743e6af53a6dc9b2fd359a1b0cd348a446d +SIZE (slashexec-1.0.tar.gz) = 314673 diff --git a/net-im/gaim-slashexec/files/patch-slashexec.c b/net-im/gaim-slashexec/files/patch-slashexec.c new file mode 100644 index 000000000000..82a9ac2db336 --- /dev/null +++ b/net-im/gaim-slashexec/files/patch-slashexec.c @@ -0,0 +1,22 @@ +--- src/slashexec.c.orig Tue Aug 2 08:52:03 2005 ++++ src/slashexec.c Tue Jan 3 15:52:55 2006 +@@ -55,6 +55,9 @@ + gchar buffer[MAX_COMMAND_LEN], **argv; + GError *error; + gint argc; ++ gchar *standard_output = NULL, *standard_error = NULL; ++ GSpawnFlags Gflags; ++ Gflags = G_SPAWN_SEARCH_PATH; + error = NULL; + /* TODO: need to properly escape cmd at some stage*/ + gaim_debug_info("slashexec", "Executing: %s\n", cmd); +@@ -70,9 +73,6 @@ + g_strfreev(argv); + return NULL; + } +- gchar *standard_output = NULL, *standard_error = NULL; +- GSpawnFlags Gflags; +- Gflags = G_SPAWN_SEARCH_PATH; + if (!g_spawn_sync (NULL, argv, NULL, Gflags, + NULL, NULL, &standard_output, &standard_error, NULL, &error)) { + if (buffer) diff --git a/net-im/gaim-slashexec/pkg-descr b/net-im/gaim-slashexec/pkg-descr new file mode 100644 index 000000000000..cb15a782d576 --- /dev/null +++ b/net-im/gaim-slashexec/pkg-descr @@ -0,0 +1,6 @@ +SlashExec is a Gaim Plugin that lets you execute commands from within a +Gaim conversation. SlashExec provides a limited command-line interpreter +for this purpose. SlashExec can also either display the command's output +locally or send the output as a message in the current conversation. + +WWW: http://guifications.sourceforge.net/SlashExec/ -- cgit