Commit 8097f8ae authored by Matt Tucker's avatar Matt Tucker Committed by matt

Debian work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4349 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0ec96f0d
...@@ -1189,13 +1189,13 @@ ...@@ -1189,13 +1189,13 @@
<property name="mac.dmg.dir" value="${basedir}/Wildfire" /> <property name="mac.dmg.dir" value="${basedir}/Wildfire" />
<property name="mac.dmg.file" value="${basedir}/wildfire.dmg" /> <property name="mac.dmg.file" value="${basedir}/wildfire.dmg" />
<property name="mac.dmg.template" value="${basedir}/build/osx/template.dmg" /> <property name="mac.dmg.template" value="${basedir}/build/osx/template.dmg" />
<target name="mac.delete"> <target name="mac.delete">
<delete dir="${mac.pkg.dir}" /> <delete dir="${mac.pkg.dir}" />
<delete dir="${mac.dmg.dir}" /> <delete dir="${mac.dmg.dir}" />
<delete file="${mac.dmg.file}" /> <delete file="${mac.dmg.file}" />
</target> </target>
<target name="mac.prepare" depends="mac.delete,jar"> <target name="mac.prepare" depends="mac.delete,jar">
<unzip src="${basedir}/build/osx/template.dmg.zip" dest="${basedir}/build/osx/" /> <unzip src="${basedir}/build/osx/template.dmg.zip" dest="${basedir}/build/osx/" />
<copy file="${mac.dmg.template}" tofile="${basedir}/tmp.dmg" /> <copy file="${mac.dmg.template}" tofile="${basedir}/tmp.dmg" />
...@@ -1211,7 +1211,7 @@ ...@@ -1211,7 +1211,7 @@
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${mac.pkg.dir}/System/Library/LaunchDaemons"/> <mkdir dir="${mac.pkg.dir}/System/Library/LaunchDaemons"/>
<copy file="${basedir}/build/osx/org.jivesoftware.wildfire.plist" <copy file="${basedir}/build/osx/org.jivesoftware.wildfire.plist"
todir="${mac.pkg.dir}/System/Library/LaunchDaemons"/> todir="${mac.pkg.dir}/System/Library/LaunchDaemons"/>
<mkdir dir="${mac.dmg.dir}"/> <mkdir dir="${mac.dmg.dir}"/>
<exec executable="chown"> <exec executable="chown">
...@@ -1225,11 +1225,11 @@ ...@@ -1225,11 +1225,11 @@
<fileset dir="${basedir}/build/osx/resources"/> <fileset dir="${basedir}/build/osx/resources"/>
</chmod> </chmod>
</target> </target>
<!-- Create a Mac OS X installer --> <!-- Create a Mac OS X installer -->
<target name="mac.pkg" depends="mac.prepare"> <target name="mac.pkg" depends="mac.prepare">
<exec executable="/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"> <exec executable="/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker">
<arg value="-build"/> <arg value="-build"/>
<arg value="-proj" /> <arg value="-proj" />
<arg value="${basedir}/build/osx/wildfire.pmproj"/> <arg value="${basedir}/build/osx/wildfire.pmproj"/>
<arg value="-p"/> <arg value="-p"/>
...@@ -1238,7 +1238,7 @@ ...@@ -1238,7 +1238,7 @@
<arg value="-ds"/> <arg value="-ds"/>
</exec> </exec>
</target> </target>
<target name="installer-mac" depends="mac.pkg" description="Creates a Mac OS X package"> <target name="installer-mac" depends="mac.pkg" description="Creates a Mac OS X package">
<exec executable="hdiutil" failonerror="true"> <exec executable="hdiutil" failonerror="true">
<arg line="detach ${mac.dmg.dir} -quiet -force" /> <arg line="detach ${mac.dmg.dir} -quiet -force" />
...@@ -1246,7 +1246,7 @@ ...@@ -1246,7 +1246,7 @@
<exec executable="hdiutil" failonerror="true"> <exec executable="hdiutil" failonerror="true">
<arg line="convert ${basedir}/tmp.dmg -format UDZO -o ${mac.dmg.file}"/> <arg line="convert ${basedir}/tmp.dmg -format UDZO -o ${mac.dmg.file}"/>
</exec> </exec>
<delete file="${basedir}/tmp.dmg"/> <delete file="${basedir}/tmp.dmg"/>
</target> </target>
<!-- Debian package ========================================================================= --> <!-- Debian package ========================================================================= -->
...@@ -1254,6 +1254,9 @@ ...@@ -1254,6 +1254,9 @@
<property name="debian.release.dir" value="${target.dir}/debian" /> <property name="debian.release.dir" value="${target.dir}/debian" />
<property name="debian.release.install_path" value="${debian.release.dir}/usr/bin" /> <property name="debian.release.install_path" value="${debian.release.dir}/usr/bin" />
<property name="debian.version" value="${version.major}.${version.minor}.${version.revision}"/> <property name="debian.version" value="${version.major}.${version.minor}.${version.revision}"/>
<tstamp>
<format property="debian.builddate" pattern="EEE, dd MMM yyyy HH:mm:ss Z" locale="en"/>
</tstamp>
<target name="installer-debian" depends="release" description="Creates a Debian package"> <target name="installer-debian" depends="release" description="Creates a Debian package">
<mkdir dir="${debian.release.install_path}/${dist.prefix}"/> <mkdir dir="${debian.release.install_path}/${dist.prefix}"/>
...@@ -1267,7 +1270,7 @@ ...@@ -1267,7 +1270,7 @@
<copy todir="${debian.release.dir}/DEBIAN"> <copy todir="${debian.release.dir}/DEBIAN">
<fileset dir="${debian.dir}" includes="**/*" /> <fileset dir="${debian.dir}" includes="**/*" />
<filterset> <filterset>
<filter token="builddate" value="${builddate}"/> <filter token="builddate" value="${debian.builddate}"/>
<filter token="version" value="${debian.version}"/> <filter token="version" value="${debian.version}"/>
</filterset> </filterset>
</copy> </copy>
...@@ -1279,6 +1282,14 @@ ...@@ -1279,6 +1282,14 @@
<exec executable="ln" failonerror="true"> <exec executable="ln" failonerror="true">
<arg line="-s /etc/${dist.prefix} ${debian.release.install_path}/${dist.prefix}/conf"/> <arg line="-s /etc/${dist.prefix} ${debian.release.install_path}/${dist.prefix}/conf"/>
</exec> </exec>
<!-- Move the logs directory to /var/log/wildfire and then make a sym link -->
<copy todir="${debian.release.dir}/var/log/${dist.prefix}">
<fileset dir="${debian.release.install_path}/${dist.prefix}/logs"/>
</copy>
<delete dir="${debian.release.install_path}/${dist.prefix}/logs"/>
<exec executable="ln" failonerror="true">
<arg line="-s /var/log/${dist.prefix} ${debian.release.install_path}/${dist.prefix}/logs"/>
</exec>
<!-- Create the package --> <!-- Create the package -->
<exec executable="dpkg" failonerror="true"> <exec executable="dpkg" failonerror="true">
<arg line="-b ${debian.release.dir} ${dist.prefix}_${debian.version}-i386.deb"/> <arg line="-b ${debian.release.dir} ${dist.prefix}_${debian.version}-i386.deb"/>
......
wildfire (@version@) unstable; urgency=medium
* For full changelog, see http://www.jivesoftware.org/builds/wildfire/docs/latest/changelog.html
-- Jive Software <webmaster@jivesoftware.com> @builddate@
\ No newline at end of file
...@@ -13,5 +13,4 @@ Description: A high performance XMPP (Jabber) server. ...@@ -13,5 +13,4 @@ Description: A high performance XMPP (Jabber) server.
administration console, and a full plugin system. The server administration console, and a full plugin system. The server
is 100% Java. is 100% Java.
. .
Wildfire is a professional Open Source project, led by Jive Wildfire is a professional Open Source project, led by Jive Software.
Software and the Wildfire community. \ No newline at end of file
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