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

Added beginnings of Solaris pkg build. Something is not behaving still.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9643 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6ba555d8
......@@ -1122,6 +1122,50 @@
</copy>
</target>
<!-- installer.solaris ========================================================================= -->
<property name="target.solaris" value="${work.dir}/solaris" />
<property name="target.solaris.root" value="${target.solaris}/root" />
<property name="target.solaris.pkg" value="${target.solaris}/pkg" />
<property name="solaris.pkg.name" value="JSopenfire"/>
<property name="solaris.pkg.filename" value="${solaris.pkg.name}-${version}-ALL.pkg"/>
<tstamp>
<format property="solaris.builddate" pattern="yyyymmdd" locale="en"/>
</tstamp>
<target name="installer.solaris" depends="init, dist.init" description="Builds a solaris pkg of openfire.">
<!-- <antcall target="dist.bin"/> -->
<mkdir dir="${target.solaris.root}" />
<mkdir dir="${target.solaris.root}/opt" />
<mkdir dir="${target.solaris.pkg}" />
<copy todir="${target.solaris.root}/opt/openfire">
<fileset dir="${release.out.dir}"/>
</copy>
<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"/>
</exec>
<replaceregexp file="${target.solaris.root}/Prototype" match="(.* .* .* .*) .* .*" replace="\1 daemon daemon" byline="true"/>
<exec executable="/usr/bin/pkgmk" dir="${target.solaris.root}" failonerror="true">
<arg value="-o"/>
<arg value="-d ${target.solaris.pkg}"/>
<arg value="-v ${version}"/>
<arg value="-p ${solaris.builddate}"/>
</exec>
<touch file="${release.dest.dir}/${solaris.pkg.filename}"/>
<exec executable="/usr/bin/pkgtrans" failonerror="true">
<arg value="-s ${target.solaris.pkg}"/>
<arg value="${release.dest.dir}/${solaris.pkg.filename}"/>
<arg value="${solaris.pkg.name}"/>
</exec>
</target>
<!-- plugins =============================================================================== -->
<target name="plugins" description="Builds all plugins">
<!-- Call jar task, can't do this is as a 'depends' call of this target because
......
PKG="JSopenfire"
NAME="Openfire XMPP Server"
DESC="Openfire is a leading Open Source, cross-platform IM server based on the XMPP (Jabber) protocol."
ARCH="all"
CLASSES="none"
CATEGORY="daemon"
VENDOR="Jive Software"
EMAIL="webmaster@jivesoftware.com"
ISTATES="S s 1 2 3"
RSTATES="S s 1 2 3"
BASEDIR="/"
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