From 9ef57f0390b24de8f77ddcd3e4deadc3179acfa8 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Wed, 8 Aug 2018 20:41:52 +0100 Subject: network/purple-plugin-pack: Patched for identifying on ngircd. Signed-off-by: David Spencer --- network/purple-plugin-pack/README | 12 ++++++++++++ network/purple-plugin-pack/identify.patch | 12 ++++++++++++ network/purple-plugin-pack/purple-plugin-pack.SlackBuild | 10 +++++++--- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 network/purple-plugin-pack/identify.patch (limited to 'network/purple-plugin-pack') diff --git a/network/purple-plugin-pack/README b/network/purple-plugin-pack/README index 05dce85dcd71..5f7d4824f9bc 100644 --- a/network/purple-plugin-pack/README +++ b/network/purple-plugin-pack/README @@ -4,3 +4,15 @@ family of IM clients. The Purple Plugin Pack was originally created by Gary Kramelich and Stu Tomlinson as a way to distribute their ever growing lists of simple Pidgin plugins. + +This includes an optional patch to change the default nickserv identify command +in the irchelp plugin to: + +/msg nickserv identify + +rather than the '/identify ' command that it defaults to, which fails +on some IRCd's such as e.g. ngircd (also available on slackbuilds.org). + +To use the patch do: + +IDENTIFY_PATCH=1 ./purple-plugin-pack.SlackBuild diff --git a/network/purple-plugin-pack/identify.patch b/network/purple-plugin-pack/identify.patch new file mode 100644 index 000000000000..f4b513b198fe --- /dev/null +++ b/network/purple-plugin-pack/identify.patch @@ -0,0 +1,12 @@ +diff -Naur -x '.hg*' a/irchelper/irchelper.c b/irchelper/irchelper.c +--- a/irchelper/irchelper.c 2018-07-28 12:09:23.714988017 +0100 ++++ b/irchelper/irchelper.c 2018-08-07 19:29:44.194109009 +0100 +@@ -719,7 +719,7 @@ + nickserv_do_identify(authentication, connection->proto_data, connection, nickpassword); + } + else +- nickserv_identify(connection->proto_data, connection, nickpassword); ++ nickserv_msg_identify("identify", connection->proto_data, connection, nickpassword); + + g_strfreev(userparts); + } diff --git a/network/purple-plugin-pack/purple-plugin-pack.SlackBuild b/network/purple-plugin-pack/purple-plugin-pack.SlackBuild index 744b1e88b599..87a94d921c69 100644 --- a/network/purple-plugin-pack/purple-plugin-pack.SlackBuild +++ b/network/purple-plugin-pack/purple-plugin-pack.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh -# Slackware build script for purple-plugin_pack -# Copyright 2018 Dave Woodfall +# Slackware build script for purple-plugin-pack +# Copyright 2018 Dave Woodfall # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ PRGNAM=purple-plugin-pack VERSION=${VERSION:-2.7.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -70,6 +70,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +if [ "$IDENTIFY_PATCH" = "1" ]; then + patch --verbose -p1 < $CWD/identify.patch +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3