Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > media > main-updates > by-pkgid > a942669eca6e533e3b267a0dda33b5fc > scriptlet

tomcat5-server-lib-5.5.17-6.2.4.2mdv2007.1.x86_64.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
    # Remove automated symlinks
    for repository in /var/lib/tomcat5/server/lib ; do
        find $repository -name '\[*\]*.jar' -not -type d | xargs rm -f
    done
fi

POSTIN

/bin/sh
# Create automated links - since all needed extensions may not have been
# installed for this jvm output is muted
# Try to set a sensible jvm
unset JAVA_HOME
[ -r /etc/tomcat5/tomcat5.conf ] && . /etc/tomcat5/tomcat5.conf
[ -z "$JAVA_HOME" ] && [ -r /etc/java/java.conf ] && \
    . /etc/java/java.conf
[ -z "$JAVA_HOME" ] && JAVA_HOME=/usr/lib/jvm/java
# Remove old automated symlinks
for repository in /var/lib/tomcat5/server/lib ; do
    find $repository -name '\[*\]*.jar' -not -type d | xargs rm -f
done
build-jar-repository /var/lib/tomcat5/server/lib catalina-ant5 commons-beanutils \
                                      commons-digester commons-el \
                                      commons-fileupload commons-logging \
                                      commons-modeler jaas mx4j/mx4j \
                                      regexp 2>&1
pushd /var/lib/tomcat5/server/lib > /dev/null
ln -sf /usr/share/java/jdtcore.jar .
popd > /dev/null
if [ -x /usr/bin/rebuild-gcj-db ]; then /usr/bin/rebuild-gcj-db || true ; fi

POSTUN

/bin/sh
if [ -x /usr/bin/rebuild-gcj-db ]; then /usr/bin/rebuild-gcj-db || true ; fi