Sophie

Sophie

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

tomcat5-common-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/common/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/common/lib ; do
    find $repository -name '\[*\]*.jar' -not -type d | xargs rm -f
done
build-jar-repository /var/lib/tomcat5/common/lib ant commons-collections commons-dbcp \
                                      commons-el commons-logging-api \
                                      commons-pool jaf javamail jdbc-stdext \
                                      jndi jsp \
                                      mx4j/mx4j \
                                      servlet jasper5-compiler \
                                      jasper5-runtime 2>&1
#build-jar-repository /var/lib/tomcat5/common/lib geronimo-jta-1.0.1B-api 2>&1
build-jar-repository /var/lib/tomcat5/common/lib jta 2>&1
pushd /var/lib/tomcat5/common/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