#! /bin/bash
# ----------------------------------------------------------------------------
# /tmp/install.sh - libpcre-dev installation
#
# Creation   : 2010-09-17 alex
# Last update: $Id$
#
# Copyright (c) 2010 the eisfair team, team(at)eisfair(dot)org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# ----------------------------------------------------------------------------

# set packages name
packageName=libpcre-dev

#----------------------------------------------------------------------------
# include eislib
#----------------------------------------------------------------------------
. /var/install/include/eislib

mecho -info "installing ${packageName} ..."

#----------------------------------------------------------------------------
# generate symlinks
#----------------------------------------------------------------------------
cd /usr/lib/

rm -f libpcre.so
ln -sf libpcre.so.0.0.1 libpcre.so

rm -f libpcrecpp.so
ln -sf libpcrecpp.so.0.0.0 libpcrecpp.so

rm -f libpcreposix.so
ln -sf libpcreposix.so.0.0.0 libpcreposix.so

cd - >/dev/null

#----------------------------------------------------------------------------
# running ldconfig
#----------------------------------------------------------------------------
/sbin/ldconfig >/dev/null 2>&1

exit 0
#----------------------------------------------------------------------------
# end
#----------------------------------------------------------------------------
