Commit f8ff8d60 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Solaris installer improvements, now should work quite well!


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9696 b35dd754-fafc-0310-a699-88a17e54d16e
parent 089412ae
...@@ -1142,6 +1142,7 @@ ...@@ -1142,6 +1142,7 @@
<mkdir dir="${target.solaris.root}" /> <mkdir dir="${target.solaris.root}" />
<mkdir dir="${target.solaris.root}/opt" /> <mkdir dir="${target.solaris.root}/opt" />
<!-- <mkdir dir="${target.solaris.pkg}" /> --> <!-- <mkdir dir="${target.solaris.pkg}" /> -->
<mkdir dir="${target.solaris.root}/opt/openfire/resources/solaris" />
<copy todir="${target.solaris.root}/opt/openfire"> <copy todir="${target.solaris.root}/opt/openfire">
<fileset dir="${release.out.dir}"/> <fileset dir="${release.out.dir}"/>
...@@ -1160,6 +1161,10 @@ ...@@ -1160,6 +1161,10 @@
<delete file="${target.solaris.root}/opt/openfire/bin/extra/embedded-db-viewer.bat" /> <delete file="${target.solaris.root}/opt/openfire/bin/extra/embedded-db-viewer.bat" />
<copy tofile="${target.solaris.root}/pkginfo" file="${basedir}/build/pkg/pkginfo" /> <copy tofile="${target.solaris.root}/pkginfo" file="${basedir}/build/pkg/pkginfo" />
<copy tofile="${target.solaris.root}/opt/openfire/resources/solaris/openfire.xml" file="${basedir}/build/solaris/openfire.xml" />
<copy tofile="${target.solaris.root}/checkinstall" file="${basedir}/build/solaris/checkinstall" />
<copy tofile="${target.solaris.root}/postinstall" file="${basedir}/build/solaris/postinstall" />
<copy tofile="${target.solaris.root}/preremove" file="${basedir}/build/solaris/preremove" />
<copy tofile="${target.solaris.root}/Prototype" file="${basedir}/build/pkg/Prototype.template" overwrite="true"/> <copy tofile="${target.solaris.root}/Prototype" file="${basedir}/build/pkg/Prototype.template" overwrite="true"/>
<exec executable="/usr/bin/pkgproto" output="${target.solaris.root}/Prototype" append="true" failonerror="true"> <exec executable="/usr/bin/pkgproto" output="${target.solaris.root}/Prototype" append="true" failonerror="true">
......
i pkginfo i pkginfo
i checkinstall
i postinstall
i preremove
#!/bin/sh
#
expectedrelease="5.10"
release="/bin/uname -r"
if [ `/bin/expr $release \>= $expectedrelease` ]; then
/bin/echo "\n\n\n\tWARNING: This package may not work with Solaris releases"
/bin/echo "\tolder than version 10 (5.10).\n\n\n"
fi
if [ ! -d "/usr/java" ]; then
/bin/echo "\n\n\n\tJava does not appear to be installed on this system!"
/bin/echo "\tAborting installation.\n\n\n"
exit 1
fi
exit 0
#!/bin/sh
#
if [ -f /tmp/openfireInstallBackup/openfire.xml ]; then
/bin/mv /tmp/openfireInstallBackup/openfire.xml /opt/openfire/conf/openfire.xml
/bin/chown daemon:daemon /opt/openfire/conf/openfire.xml
fi
if [ -f /tmp/openfireInstallBackup/keystore ]; then
/bin/mv /tmp/openfireInstallBackup/keystore /opt/openfire/resources/security/keystore
/bin/chown daemon:daemon /opt/openfire/resources/security/keystore
fi
if [ -f /tmp/openfireInstallBackup/truststore ]; then
/bin/mv /tmp/openfireInstallBackup/truststore /opt/openfire/resources/security/truststore
/bin/chown daemon:daemon /opt/openfire/resources/security/truststore
fi
if [ -f /tmp/openfireInstallBackup/client.truststore ]; then
/bin/mv /tmp/openfireInstallBackup/client.truststore /opt/openfire/resources/security/client.truststore
/bin/chown daemon:daemon /opt/openfire/resources/security/client.truststore
fi
if [ -d "/tmp/openfireInstallBackup" ]; then
/bin/rm -rf /tmp/openfireInstallBackup
fi
if [ -x "/usr/sbin/svccfg" ]; then
if [ -d "/opt/openfire/resources/solaris" ]; then
/usr/sbin/svccfg import /opt/openfire/resources/solaris/openfire.xml
fi
fi
if [ -x "/usr/sbin/svcadm" ]; then
/usr/sbin/svcadm enable openfire
fi
#!/bin/sh
#
if [ -d "/opt/openfire" ]; then
/bin/rm -rf /tmp/openfireInstallBackup
/bin/mkdir -p /tmp/openfireInstallBackup
if [ -f /opt/openfire/conf/openfire.xml ]; then
/bin/cp -f /opt/openfire/conf/openfire.xml /tmp/openfireInstallBackup/openfire.xml
fi
if [ -f /opt/openfire/resources/security/keystore ]; then
/bin/cp -f /opt/openfire/resources/security/keystore /tmp/openfireInstallBackup/keystore
fi
if [ -f /opt/openfire/resources/security/truststore ]; then
/bin/cp -f /opt/openfire/resources/security/truststore /tmp/openfireInstallBackup/truststore
fi
if [ -f /opt/openfire/resources/security/client.truststore ]; then
/bin/cp -f /opt/openfire/resources/security/client.truststore /tmp/openfireInstallBackup/client.truststore
fi
if [ -x "/usr/sbin/svcadm" ]; then
/usr/sbin/svcadm disable openfire
fi
if [ -x "/usr/sbin/svccfg" ]; then
/usr/sbin/svccfg delete -f openfire
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment