diff -Naur silc-plugin-1.0.1/README silc-plugin/README --- silc-plugin-1.0.1/README 2004-01-15 17:29:07.000000000 +0100 +++ silc-plugin/README 2004-09-01 09:32:16.000000000 +0200 @@ -5,31 +5,64 @@ o http://irssi.org/files/irssi-0.8.9.tar.gz o http://silcnet.org/download/client/sources/silc-client-1.0.1.tar.gz +I assume you already downloaded the silc-plugin source tarball: + + o http://penguin-breeder.org/silc/download/silc-plugin-1.0.1.tar.gz + +PLEASE NOTE: + + I will use the following terms from here on: + + - SILC Plugin directory ($PLUGIN_DIR) + This is wherever you have unpacked the silc-plugin-1.0.1.tar.gz + - SILC Client directory ($CLIENT_DIR) + This is wherever you have unpacked the silc-client-1.0.1.tar.gz + - Irssi directory ($IRSSI_DIR) + This is wherever you have unpack the irssi-0.8.9.tar.gz + +First you need to untar all three tarballs: + + tar xzf irssi-0.8.9.tar.gz + export IRSSI_DIR=`pwd`/irssi-0.8.9 + tar xzf silc-client-1.0.1.tar.gz + export CLIENT_DIR=`pwd`/silc-client-1.0.1 + tar xzf silc-plugin-1.0.1.tar.gz + export PLUGIN_DIR=`pwd`/silc-plugin-1.0.1 + Next, you need to configure and compile the SILC Client 1.0.1. You should give at least the following options to configure (assuming Irssi is installed with prefix /usr): + cd $CLIENT_DIR ./configure --prefix=/usr \ --with-helpdir=/usr/share/irssi/help/silc \ --without-libtoolfix \ + --enable-static \ --enable-debug - make + make -C lib + +On some systems libraries have to be "position independent executables", +you should give option --with-pic to SILC Client's configure script +on such systems. If you encounter problems with pthread, give option +--with-pthreads=no to SILC Client's configure script. During installation, only the help files from the SILC Client's source tree will be installed. You may specify other options needed to compile the SILC Client to fit your needs. After successfully compiling the SILC Client 1.0.1, unpack the Irssi 0.8.9 -source package and give the following command (assuming you unpacked Irssi -into /tmp/irssi-0.8.9 and the compiled SILC Client package is in -/tmp/silc-client-1.0.1): +source package and give the following command from within the SILC Plugin +directory (assuming you unpacked Irssi into /tmp/irssi-0.8.9 and the compiled +SILC Client package is in /tmp/silc-client-1.0.1): + cd $PLUGIN_DIR make patch IRSSI=/tmp/irssi-0.8.9 SILC=/tmp/silc-client-1.0.1 -This will prepare the Irssi source package to compile the SILC Plugin. Change +This will prepare the Irssi source package for compiling the SILC Plugin. Change into the Irssi source directory, configure and compile it. Assuming again Irssi is installed in /usr: + cd $IRSSI_DIR ./configure --prefix=/usr --sysconfdir=/etc make -C src/perl make -C src/fe-common/silc @@ -40,26 +73,28 @@ To install the SILC Plugin, you have to give the following commands in Irssi's source directory: + cd $IRSSI_DIR make -C src/perl/silc install make -C src/fe-common/silc install make -C src/silc/core install -and the following commands in SILC Client's source directory: +and the following command in the SILC Client's source directory: - make -C irssi/docs/help + cd $CLIENT_DIR + make -C irssi/docs/help install -This installs the following: +You will now have installed: - /usr/lib/irssi/modules/libfe_silc.{so,la,a} - /usr/lib/irssi/modules/libsilc_core.{so,la,a} + /usr/lib/irssi/modules/libfe_silc.* + /usr/lib/irssi/modules/libsilc_core.* /usr/share/irssi/help/silc/* /usr/lib/perl/*/Irssi/Silc.pm /usr/lib/perl/*/auto/Irssi/Silc.so -If you don't have perl, just ommit the commands related to perl. Where the -perl modules will be installed depends on your local settings. +If you don't have perl, just ommit the commands related to perl. The location +where the perl modules will be installed depends on your local setup. -You should also add the files in the scripts/ (of the SILC Plugin) directory to +You should also add the files in the scripts/ directory (of the SILC Plugin) to /usr/share/irssi/scripts/ diff -Naur silc-plugin-1.0.1/patches/silcnet_create-fix.patch silc-plugin/patches/silcnet_create-fix.patch --- silc-plugin-1.0.1/patches/silcnet_create-fix.patch 1970-01-01 01:00:00.000000000 +0100 +++ silc-plugin/patches/silcnet_create-fix.patch 2004-03-19 18:34:55.000000000 +0100 @@ -0,0 +1,55 @@ +--- irssi/src/silc/core/silc-chatnets.c.orig 2004-03-19 11:12:19.000000000 +0100 ++++ irssi/src/silc/core/silc-chatnets.c 2004-03-19 11:12:50.000000000 +0100 +@@ -26,14 +26,6 @@ + + #include "silc-chatnets.h" + +-void silcnet_create(SILC_CHATNET_REC *rec) +-{ +- g_return_if_fail(rec != NULL); +- +- rec->chat_type = SILC_PROTOCOL; +- chatnet_create((CHATNET_REC *) rec); +-} +- + static void sig_chatnet_read(SILC_CHATNET_REC *rec, CONFIG_NODE *node) + { + if (!IS_SILC_CHATNET(rec)) +--- irssi/src/silc/core/silc-chatnets.h.orig 2004-03-19 11:12:24.000000000 +0100 ++++ irssi/src/silc/core/silc-chatnets.h 2004-03-19 11:12:35.000000000 +0100 +@@ -20,8 +20,6 @@ + + typedef struct _SILC_CHATNET_REC SILC_CHATNET_REC; + +-void silcnet_create(SILC_CHATNET_REC *rec); +- + #define silc_chatnet_find(name) \ + SILC_CHATNET(chatnet_find(name)) + #define silcnet_find(name) silc_chatnet_find(name) +--- irssi/src/fe-common/silc/fe-silcnet.c.orig 2004-03-19 11:13:13.000000000 +0100 ++++ irssi/src/fe-common/silc/fe-silcnet.c 2004-03-19 11:13:40.000000000 +0100 +@@ -31,6 +31,14 @@ + #include "silc-chatnets.h" + #include "printtext.h" + ++void silcnet_create(SILC_CHATNET_REC *rec) ++{ ++ g_return_if_fail(rec != NULL); ++ ++ rec->chat_type = SILC_PROTOCOL; ++ chatnet_create((CHATNET_REC *) rec); ++} ++ + static void cmd_silcnet_list(void) + { + GString *str; +--- irssi/src/fe-common/silc/module.h.orig 2004-03-19 18:34:19.000000000 +0100 ++++ irssi/src/fe-common/silc/module.h 2004-03-19 18:34:27.000000000 +0100 +@@ -1,6 +1,7 @@ + #include "common.h" + + #define MODULE_NAME "fe-common/silc" ++#define SILC_PROTOCOL (chat_protocol_lookup("SILC")) + + #undef PACKAGE + #undef VERSION diff -Naur silc-plugin-1.0.1/scripts/silc-mime.pl silc-plugin/scripts/silc-mime.pl --- silc-plugin-1.0.1/scripts/silc-mime.pl 2004-01-14 20:40:04.000000000 +0100 +++ silc-plugin/scripts/silc-mime.pl 2004-04-24 19:58:40.000000000 +0200 @@ -63,7 +63,7 @@ Irssi::printformat(MSGLEVEL_CRAP, 'no_temp_dir', Irssi::settings_get_str("mime_temp_dir")); - Irssi:settings_set_str("mime_temp_dir", "/tmp"); + Irssi::settings_set_str("mime_temp_dir", "/tmp"); } }