# Slackware 9.0's 'gaim' package includes version 0.60cvs, 9.1's includes
# 0.60, 10.0's includes 0.78, and all three include version 1.0.2 in
# 'patches'. Slackware 10.1's includes 1.1.2, and 10.2's and 11.0's include
# 1.5.0, and 12.0's includes 2.0.2
#
# Slackware 12.0's 'pidgin' package includes version 2.0.2
# If you ever want to uninstall Pidgin, or just remove an old version before
# installing a new one, skip down to the bottom for instructions.
# Install/update the XML::Parser Perl module:
su -c "perl -MCPAN -e shell"
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
install XML::Parser
exit
# If you have a copy of Gaim installed, this should remove it. If you
# installed it from source, 'make uninstall' (as root) in the source
# directory should do it, the rest is just in case.
cd
su
test -x /sbin/removepkg && /sbin/removepkg gaim
test -d src/gaim-* && ( cd src/gaim-* ; make uninstall )
( cd /usr/bin ; rm -f gaim gaim-remote )
test -d /usr/include/gaim && rm -r /usr/include/gaim
( cd /usr/lib ; rm -f /usr/lib/libgaim-remote.* )
test -d /usr/lib/gaim && rm -r /usr/lib/gaim
( cd /usr/man/man1 ; rm -f gaim.1 gaim.1.gz gaim-remote.1 gaim-remote.1.gz )
find /usr/lib/perl5 -type d -name Gaim -exec rm -r {} \;
find /usr/lib/perl5 -type f -name Gaim.pm -exec rm {} \;
find /usr/share/doc /usr/doc -type d -name "gaim-*" -exec rm -r {} \;
test -d /usr/share/pixmaps/gaim && rm -r /usr/share/pixmaps/gaim
test -d /usr/share/sounds/gaim && rm -r /usr/share/sounds/gaim
rm -f \
/usr/lib/pkgconfig/gaim.pc \
/usr/man/man3/Gaim.3 /usr/man/man3/Gaim.3.gz \
/usr/share/applications/gaim.desktop
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "gaim-*" -exec rm -r {} \;
rm -f ~/installed/gaim-*.tar.*
# And if you want to remove .gaim subdirectories from people's home
# directories, run this as root too:
# find /home -mindepth 2 -maxdepth 2 -type d -name ".gaim" -exec rm -r {} \;
# Now actually download and install Pidgin:
cd
test -f installed/pidgin-2.2.1.tar.bz2 &&
mv installed/pidgin-2.2.1.tar.bz2 .
test ! -f pidgin-2.2.1.tar.bz2 &&
wget http://download.sf.net/pidgin/pidgin-2.2.1.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gaim-*" -exec rm -r {} \;
tar xjvf ~/pidgin-2.2.1.tar.bz2
cd pidgin-2.2.1
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure --prefix=/usr --sysconfdir=/etc --disable-nls
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg pidgin
make install
chown -R $USER .
# I live in the US and only read/write English (well), so I don't need
# these:
find /usr/share/locale -type f -name "pidgin.mo" -exec rm {} \;
# Become yourself again
exit
# 'pidgin' is the GUI one, 'finch' is the text-based one
# /usr/share/pixmaps/pidgin.png can be used as a desktop icon for Pidgin