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

[JM-1161] completed solaris package

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9650 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8c22851b
......@@ -1147,13 +1147,31 @@
<fileset dir="${release.out.dir}"/>
</copy>
<chmod perm="0755" file="${target.solaris.root}/opt/openfire/bin/openfirectl" />
<chmod perm="0755" file="${target.solaris.root}/opt/openfire/bin/openfire.sh" />
<chmod perm="0755" file="${target.solaris.root}/opt/openfire/bin/extra/embedded-db-viewer.sh" />
<delete file="${target.solaris.root}/opt/openfire/bin/openfire.bat" />
<delete file="${target.solaris.root}/opt/openfire/bin/openfire-dev.bat" />
<delete file="${target.solaris.root}/opt/openfire/bin/extra/openfire-launchd-wrapper.sh" />
<delete file="${target.solaris.root}/opt/openfire/bin/extra/openfired" />
<delete dir="${target.solaris.root}/opt/openfire/bin/extra/redhat" />
<delete file="${target.solaris.root}/opt/openfire/bin/extra/redhat-postinstall.sh" />
<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}/Prototype" file="${basedir}/build/pkg/Prototype.template" overwrite="true"/>
<exec executable="/usr/bin/pkgproto" output="${target.solaris.root}/Prototype" append="true" failonerror="true">
<arg value="${target.solaris.root}/opt=/opt"/>
<arg value="${target.solaris.root}/opt/openfire=/opt/openfire"/>
</exec>
<replaceregexp file="${target.solaris.root}/Prototype" match="(.* .* .* .*) .* .*" replace="\1 daemon daemon" byline="true"/>
<replaceregexp file="${target.solaris.root}/Prototype" match=".* (.* /opt/openfire/conf/openfire.xml=.* .* .* .*)" replace="e \1" byline="true"/>
<replaceregexp file="${target.solaris.root}/Prototype" match=".* (.* /opt/openfire/resources/security/keystore=.* .* .* .*)" replace="e \1" byline="true"/>
<replaceregexp file="${target.solaris.root}/Prototype" match=".* (.* /opt/openfire/resources/security/truststore=.* .* .* .*)" replace="e \1" byline="true"/>
<replaceregexp file="${target.solaris.root}/Prototype" match=".* (.* /opt/openfire/resources/security/client.truststore=.* .* .* .*)" replace="e \1" byline="true"/>
<replaceregexp file="${target.solaris.root}/Prototype" match=".* (.* /opt/openfire/bin/embedded-db.rc=.* .* .* .*)" replace="e \1" byline="true"/>
<exec executable="/usr/bin/pkgmk" dir="${target.solaris.root}" failonerror="true">
<arg value="-o"/>
......
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='network/openfire' type='service' version='0'>
<create_default_instance enabled='true'/>
<single_instance/>
<dependency name='loopback' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/network/loopback:default'/>
</dependency>
<dependency name='physical' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/network/physical:default'/>
</dependency>
<dependency name='fs-local' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local'/>
</dependency>
<exec_method name='start' type='method' exec='/opt/openfire/bin/openfirectl start' timeout_seconds='60'>
<method_context/>
</exec_method>
<exec_method name='stop' type='method' exec='/opt/openfire/bin/openfirectl stop' timeout_seconds='60'>
<method_context/>
</exec_method>
<stability value='Stable'/>
<template>
<common_name>
<loctext xml:lang='C'>Openfire XMPP Server</loctext>
</common_name>
<documentation>
<doc_link name='igniterealtime.org' uri='http://www.igniterealtime.org/projects/openfire/index.jsp'/>
</documentation>
</template>
</service>
</service_bundle>
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