SILC Plugin 1.0.4.1

To compile the plugin, please fetch the following sources:

 o http://irssi.org/files/irssi-0.8.10a.tar.gz
 o http://silcnet.org/download/client/sources/silc-client-1.0.4.1.tar.gz

I assume you already downloaded the silc-plugin source tarball:

 o http://penguin-breeder.org/silc/download/silc-plugin-1.0.4.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.4.1.tar.gz
  - SILC Client directory ($CLIENT_DIR)
    This is wherever you have unpacked the silc-client-1.0.4.1.tar.gz
  - Irssi directory       ($IRSSI_DIR)
    This is wherever you have unpack the irssi-0.8.10a.tar.gz

First you need to untar all three tarballs:

   tar xzf irssi-0.8.10a.tar.gz
   export IRSSI_DIR=`pwd`/irssi-0.8.10
   tar xzf silc-client-1.0.4.1.tar.gz
   export CLIENT_DIR=`pwd`/silc-client-1.0.4.1
   tar xzf silc-plugin-1.0.4.1.tar.gz
   export PLUGIN_DIR=`pwd`/silc-plugin-1.0.4.1

Next, you need to configure and compile the SILC Client 1.0.4.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 \
		--without-silc-libs
   make -C lib

Do NOT use any kind of parallel build system to compile the silc-client! I.e.
do not pass option -j2 or similar to make.

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.4.1, unpack the Irssi 0.8.10
source package and give the following command from within the SILC Plugin
directory:

   cd $PLUGIN_DIR
   make patch IRSSI=$IRSSI_DIR SILC=$CLIENT_DIR

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
   make -C src/silc/core

Just giving "make" in the top-level directory will not work!

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
   for felib in /usr/lib/irssi/modules/libfe_common_silc.* ; do
     mv -f ${felib} ${felib/_common_/_}
   done

and the following command in the SILC Client's source directory:

   cd $CLIENT_DIR
   make -C apps/irssi/docs/help install

You will now have installed:
   
   /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. The location
where the perl modules will be installed depends on your local setup.

You should also add the files in the scripts/ directory (of the SILC Plugin) to 

   /usr/share/irssi/scripts/

and the default.theme (of the SILC Plugin) to your ~/.irssi directory. You
should also copy docs/* to 

   /usr/share/irssi/help/silc/

See the file USAGE for some first steps introduction to the SILC Plugin.

Questions, Comments? Got a better Makefile?
Contact me: Jochen 'c0ffee' Eisinger <jochen@penguin-breeder.org>

