Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: licq
Description: An ICQ clone
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# Licq
# ====
# When 1.2.7 was the latest stable version and I tried to build it with
# gcc 3.4.x, I went through a whole mess of trial and error between
# gcc 3.4-isms and apparent problems with the version of gpgme that I had
# installed.  I ended up able to build the CVS version or the daily snapshot
# (which was 5 days old) using --disable-gpgme.  This is why I have the
# latest stable version, the daily snapshot, and CVS below.  I may remove
# all but the latest stable next time.
#
# The last time I updated this howto, I installed the 1.3.2 version with gcc
# 3.4.4 and gpgme 1.1.0

# Prerequisites:
# autoconf and automake (if you use the CVS version)
# gawk
# grep
# socks (optional; pass --enable-socks5 to configure to use it)
# gpgme
# openssl (optional)
# iconv
# gettext
# XFree86 or X.org
# Qt
# KDE (required by the qt-gui plugin if you pass --with-kde to it's configure)

# Create directories for the icons, skins, tarball, and source
mkdir -p -m 0700 ~/installed/licq/icons ~/installed/licq/skins ~/src


# Licq 1.3.2
# ==========
# Prerequisites:
# gawk
# grep
# socks (optional; Pass --enable-socks5 to configure to use it)
# gpgme >= 0.4.2
# openssl (optional)
# iconv
# gettext

cd
test -f installed/licq/licq-1.3.2.tar.bz2 &&
 mv installed/licq/licq/licq-1.3.2.tar.bz2 .
test ! -f licq-1.3.2.tar.bz2 &&
 wget http://download.sf.net/licq/licq-1.3.2.tar.bz2
mkdir -p -m 0700 src
cd src
test -d ./licq && rm -r ./licq
find -maxdepth 1 -type d -name "licq-*" -exec rm -r {} \;
tar xjvf ~/licq-1.3.2.tar.bz2
cd licq-1.3.2
test $UID = 0 && chown -R root:root .
chmod -R u+w .

# If you have libiconv installed (vs. just using glibc's built-in iconv),
# run this before the configure line:
# LIBS=-liconv \

./configure --with-openssl-inc=/usr/local/ssl/include \
 --with-openssl-lib=/usr/local/ssl/lib --disable-nls
make

cd plugins/qt-gui
./configure
make
cd ../..

# Become root to install it
su

make install
( cd plugins/qt-gui ; make install )

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/licq/licq-*.tar.* installed/licq/licq.README
mv licq-1.3.2.tar.bz2 installed/licq/

# Skip down to the bottom to install skins and icon packs


# Licq CVS-snapshot
# =================
# This one is supposed to be a daily snapshot from CVS, but when I tried it,
# it was five days old.

# Prerequisites:
# gawk
# socks (optional)
# openssl (optional)
# gpgme

cd
test -f installed/licq/licq-daily.tar.bz2 &&
 mv installed/licq/licq-daily.tar.bz2 .
test ! -f licq-daily.tar.bz2 &&
 wget -N http://www.licq.org/licq-daily.tar.bz2
mkdir -p -m 0700 src
cd src
test -d ./licq && rm -r ./licq
find -maxdepth 1 -type d -name "licq-*" -exec rm -r {} \;
tar xjvf ~/licq-daily.tar.bz2
cd licq-*
test $UID = 0 && chown -R root:root .
./configure --disable-nls --with-openssl-inc=/usr/local/ssl/include \
 --with-openssl-lib=/usr/local/ssl/lib
make

cd plugins/qt-gui
./configure
make
cd ../..

# Become root to install it
su

make install
( cd plugins/qt-gui ; make install )

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/licq/licq-*.tar.* installed/licq/licq.README
mv licq-daily.tar.bz2 installed/licq/

# Skip down to the bottom to install skins and icon packs


# Licq CVS
# ========
# Prerequisites:
# autoconf
# automake
# gawk
# grep
# socks (optional)
# openssl (optional)
# gpgme
# XFree86 or X.org
# Qt
# KDE (required if you specify --with-kde)

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cvs-*" -exec rm -r {} \;
test -d licq && cd licq && cvs update
test ! -d licq &&
 cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/licq login &&
  cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/licq co licq
cd licq
test $UID = 0 && chown -R root:root .
make -f Makefile.cvs
./configure --disable-gpgme --disable-nls \
 --with-openssl-inc=/usr/local/ssl/include \
 --with-openssl-lib=/usr/local/ssl/lib
make

cd plugins/qt-gui
make -f Makefile.cvs
./configure --with-kde
make
cd ../..

# Become root to install it
su

make install
( cd plugins/qt-gui ; make install )

# Become yourself again
exit

cd
rm -f installed/licq-*.tar.*
echo "licq was installed from cvs" > installed/licq/licq.README
echo "Source is in ~/src/licq" >> installed/licq/licq.README


# Skins, icons, etc.
# ==================
# Download skins
cd ~/installed/licq/skins
wget -N \
 http://licq.crewq.net/download/skins/skin-gradient.tar.gz \
 http://licq.crewq.net/download/skins/skin.60s.tar.gz \
 http://licq.crewq.net/download/skins/skin.adept.tar.gz \
 http://licq.crewq.net/download/skins/skin.ae.tar.gz \
 http://licq.crewq.net/download/skins/skin.alien.tar.gz \
 http://licq.crewq.net/download/skins/skin.alienshost-1.1.tar.gz \
 http://licq.crewq.net/download/skins/skin.alienshost.tar.gz \
 http://licq.crewq.net/download/skins/skin.annemoon.tar.gz \
 http://licq.crewq.net/download/skins/skin.arctic.tar.gz \
 http://licq.crewq.net/download/skins/skin.basic.tar.gz \
 http://licq.crewq.net/download/skins/skin.basic2.tar.gz \
 http://licq.crewq.net/download/skins/skin.bheart-1.1.tar.gz \
 http://licq.crewq.net/download/skins/skin.bheart2.tar.gz \
 http://licq.crewq.net/download/skins/skin.bhls.tar.gz \
 http://licq.crewq.net/download/skins/skin.black.tar.gz \
 http://licq.crewq.net/download/skins/skin.blackbox.tar.gz \
 http://licq.crewq.net/download/skins/skin.blue-heart.tar.gz \
 http://licq.crewq.net/download/skins/skin.bluesteel.tar.gz \
 http://licq.crewq.net/download/skins/skin.bluewave.tar.gz \
 http://licq.crewq.net/download/skins/skin.bluex.tar.gz \
 http://licq.crewq.net/download/skins/skin.border.tar.gz \
 http://licq.crewq.net/download/skins/skin.brgnd-e.tar.gz \
 http://licq.crewq.net/download/skins/skin.brushed.tar.gz \
 http://licq.crewq.net/download/skins/skin.brushed2.tar.gz \
 http://licq.crewq.net/download/skins/skin.circuit.tar.gz \
 http://licq.crewq.net/download/skins/skin.cold.tar.gz \
 http://licq.crewq.net/download/skins/skin.compact-1.1.tar.gz \
 http://licq.crewq.net/download/skins/skin.compact.tar.gz \
 http://licq.crewq.net/download/skins/skin.cool-water.tar.gz \
 http://licq.crewq.net/download/skins/skin.cra.tar.gz \
 http://licq.crewq.net/download/skins/skin.darkblue.tar.gz \
 http://licq.crewq.net/download/skins/skin.delta.tar.gz \
 http://licq.crewq.net/download/skins/skin.dim-1.1.tar.gz \
 http://licq.crewq.net/download/skins/skin.dim.tar.gz \
 http://licq.crewq.net/download/skins/skin.driftwood.tar.gz \
 http://licq.crewq.net/download/skins/skin.e-1.1.tar.gz \
 http://licq.crewq.net/download/skins/skin.e.tar.gz \
 http://licq.crewq.net/download/skins/skin.eltigre.tar.gz \
 http://licq.crewq.net/download/skins/skin.emac_1.tar.gz \
 http://licq.crewq.net/download/skins/skin.expo2000.tar.gz \
 http://licq.crewq.net/download/skins/skin.freebsd.tar.gz \
 http://licq.crewq.net/download/skins/skin.futurama.tar.gz \
 http://licq.crewq.net/download/skins/skin.galadriels_mirror.tar.gz \
 http://licq.crewq.net/download/skins/skin.get-e-blue.licq.tar.gz \
 http://licq.crewq.net/download/skins/skin.get-e.licq.tar.gz \
 http://licq.crewq.net/download/skins/skin.ghosthack.tar.gz \
 http://licq.crewq.net/download/skins/skin.gnome-foot.tar.gz \
 http://licq.crewq.net/download/skins/skin.gnome.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet1.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet2.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet3.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet4.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet5.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet6.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet7.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet8.tar.gz \
 http://licq.crewq.net/download/skins/skin.golannet9.tar.gz \
 http://licq.crewq.net/download/skins/skin.goldframe.tar.gz \
 http://licq.crewq.net/download/skins/skin.goldframe2.tar.gz \
 http://licq.crewq.net/download/skins/skin.greenlinux.tar.gz \
 http://licq.crewq.net/download/skins/skin.icq.tar.gz \
 http://licq.crewq.net/download/skins/skin.graygrad.tar.gz \
 http://licq.crewq.net/download/skins/skin.icq2000.tar.gz \
 http://licq.crewq.net/download/skins/skin.jammet.tar.bz2 \
 http://licq.crewq.net/download/skins/skin.karin.tar.gz \
 http://licq.crewq.net/download/skins/skin.kennis.tgz \
 http://licq.crewq.net/download/skins/skin.kicq.tar.gz \
 http://licq.crewq.net/download/skins/skin.kiwix.tar.gz \
 http://licq.crewq.net/download/skins/skin.lara.tar.gz \
 http://licq.crewq.net/download/skins/skin.lava.tar.gz \
 http://licq.crewq.net/download/skins/skin.lavablue.tar.gz \
 http://licq.crewq.net/download/skins/skin.linuxbelgium.net.tar.gz \
 http://licq.crewq.net/download/skins/skin.madmax.tar.gz \
 http://licq.crewq.net/download/skins/skin.marble.tar.gz \
 http://licq.crewq.net/download/skins/skin.miyu.tar.gz \
 http://licq.crewq.net/download/skins/skin.neon.tar.gz \
 http://licq.crewq.net/download/skins/skin.penguin.tar.gz \
 http://licq.crewq.net/download/skins/skin.nix.tar.gz \
 http://licq.crewq.net/download/skins/skin.phone.tar.gz \
 http://licq.crewq.net/download/skins/skin.pixmap.tar.gz \
 http://licq.crewq.net/download/skins/skin.osx.tar.gz \
 http://licq.crewq.net/download/skins/skin.pli-1.1.tar.gz \
 http://licq.crewq.net/download/skins/skin.pli.tar.gz \
 http://licq.crewq.net/download/skins/skin.queen.zip \
 http://licq.crewq.net/download/skins/skin.rainbow.tar.gz \
 http://licq.crewq.net/download/skins/skin.rei.tar.gz \
 http://licq.crewq.net/download/skins/skin.scalpel.tar.gz \
 http://licq.crewq.net/download/skins/skin.seckt0r.tar.gz \
 http://licq.crewq.net/download/skins/skin.shagadelic.tar.gz \
 http://licq.crewq.net/download/skins/skin.shale-1.1.tar.gz \
 http://licq.crewq.net/download/skins/skin.shale-grp.tar.gz \
 http://licq.crewq.net/download/skins/skin.shale.tar.gz \
 http://licq.crewq.net/download/skins/skin.sick-colours.tar.gz \
 http://licq.crewq.net/download/skins/skin.silverframe.tar.gz \
 http://licq.crewq.net/download/skins/skin.silverframe2.tar.gz \
 http://licq.crewq.net/download/skins/skin.sir_veja.tar \
 http://licq.crewq.net/download/skins/skin.skicker.tar.gz \
 http://licq.crewq.net/download/skins/skin.skulls.tar.gz \
 http://licq.crewq.net/download/skins/skin.skydreamer-2.tar.gz \
 http://licq.crewq.net/download/skins/skin.skydreamer.tar.gz \
 http://licq.crewq.net/download/skins/skin.spiff.tar.gz \
 http://licq.crewq.net/download/skins/skin.stallman.tar.gz \
 http://licq.crewq.net/download/skins/skin.starfleet.tgz \
 http://licq.crewq.net/download/skins/skin.sunset.tar.gz \
 http://licq.crewq.net/download/skins/skin.traal.tar.gz \
 http://licq.crewq.net/download/skins/skin.transona.tar.gz \
 http://licq.crewq.net/download/skins/skin.wiz.tar.bz2 \
 http://licq.crewq.net/download/skins/skin.woodblock.tar.gz \
 http://licq.crewq.net/download/skins/skin.wooden.tar.gz \
 http://licq.crewq.net/download/skins/skin2.pixmap.tar.gz \
 http://licq.crewq.net/download/skins/skin_annemoon.tar.gz

# Download icon packs
cd ../icons
wget -N \
 http://licq.crewq.net/download/icons/icon.osx.tar.gz \
 http://licq.crewq.net/download/icons/icons-dots.tar.gz \
 http://licq.crewq.net/download/icons/icons-goldfish.tar.gz \
 http://licq.crewq.net/download/icons/icon.ms-icq.tar.gz \
 http://licq.crewq.net/download/icons/icons-kicq-trans.tar.gz \
 http://licq.crewq.net/download/icons/icons-mark.tar.gz \
 http://licq.crewq.net/download/icons/icons.blueicq.tar.gz \
 http://licq.crewq.net/download/icons/icons.circuit.tar.gz \
 http://licq.crewq.net/download/icons/icons.computer.tar.gz \
 http://licq.crewq.net/download/icons/icons.crysball.tar.gz \
 http://licq.crewq.net/download/icons/icons.dock.icq.tar.gz \
 http://licq.crewq.net/download/icons/icons.dots2.tar.gz \
 http://licq.crewq.net/download/icons/icons.emac_1.tar.gz \
 http://licq.crewq.net/download/icons/icons.evangelion.tar.gz \
 http://licq.crewq.net/download/icons/icons.fishes.tar.gz \
 http://licq.crewq.net/download/icons/icons.futurama.tar.gz \
 http://licq.crewq.net/download/icons/icons.galadriels_mirror.tar.gz \
 http://licq.crewq.net/download/icons/icons.kennis.tgz \
 http://licq.crewq.net/download/icons/icons.kicq.tar.gz \
 http://licq.crewq.net/download/icons/icons.mark-blue-1.1.tar.gz \
 http://licq.crewq.net/download/icons/icons.mark.tar.gz \
 http://licq.crewq.net/download/icons/icons.pokemon.tar.gz \
 http://licq.crewq.net/download/icons/icons.mark-blue.tar.gz \
 http://licq.crewq.net/download/icons/icons.smiley-trans.1-0a.tar.gz \
 http://licq.crewq.net/download/icons/icons.smiley.1-0.tar.gz \
 http://licq.crewq.net/download/icons/icons.simpsons.tar.gz \
 http://licq.crewq.net/download/icons/icons.sp.tar.gz \
 http://licq.crewq.net/download/icons/icons.symbols.tar.gz \
 http://licq.crewq.net/download/icons/icons.triangles.tar.gz

# Become root to put them in place
su

# Extract icon packs
find -regextype posix-egrep -type f -regex ".*\.(tgz|tar\.gz)$" \
 -exec tar xzvf {} -C /usr/local/share/licq/qt-gui \;
# Fix the Pokemon icon pack (which includes the full path...)
test -d /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui/\
icons.Pokemon &&
 mv /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui/\
icons.Pokemon /usr/local/share/licq/qt-gui/
rm -r /usr/local/share/licq/qt-gui/usr

# Extract skins
cd ../skins
find -regextype posix-egrep -type f -regex ".*\.tar$" \
 -exec tar xvf {} -C /usr/local/share/licq/qt-gui \;
find -regextype posix-egrep -type f -regex ".*\.(tgz|tar\.gz)$" \
 -exec tar xzvf {} -C /usr/local/share/licq/qt-gui \;
find -regextype posix-egrep -type f -regex ".*\.tar\.bz2$" \
 -exec tar xjvf {} -C /usr/local/share/licq/qt-gui \;
find -regextype posix-egrep -type f -regex ".*\.zip$" \
 -exec unzip {} -d /usr/local/share/licq/qt-gui \;
# Fix the skins who's tarball includes the full path
test -d /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui &&
 find /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui -mindepth 1 \
  -maxdepth 1 -type d -exec mv -f {} /usr/local/share/licq/qt-gui/ \;
rm -r /usr/local/share/licq/qt-gui/usr
# One of them tries to create files in /root, just kill it
test -d /usr/local/share/licq/qt-gui/root &&
 rm -r /usr/local/share/licq/qt-gui/root

# Fix ownership and permissions of all of the skins, icons, etc.
chown -R root:root /usr/local/share/licq/qt-gui
find /usr/local/share/licq/qt-gui -type d -exec chmod 755 {} \;
find /usr/local/share/licq/qt-gui -type f -exec chmod 644 {} \;

# Become yourself again
exit

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>