[jetrix-cvs] SF.net SVN: jetrix:[714] jetrix/trunk
Brought to you by:
smanux
From: <sm...@us...> - 2008-08-06 13:01:19
|
Revision: 714 http://jetrix.svn.sourceforge.net/jetrix/?rev=714&view=rev Author: smanux Date: 2008-08-06 13:01:16 +0000 (Wed, 06 Aug 2008) Log Message: ----------- First attempt at creating a Debian package Modified Paths: -------------- jetrix/trunk/build.xml Added Paths: ----------- jetrix/trunk/lib/jdeb-0.7-SNAPSHOT.jar jetrix/trunk/src/etc/control/ jetrix/trunk/src/etc/control/control jetrix/trunk/src/etc/control/postinst jetrix/trunk/src/etc/control/preinst Modified: jetrix/trunk/build.xml =================================================================== --- jetrix/trunk/build.xml 2008-08-06 11:40:15 UTC (rev 713) +++ jetrix/trunk/build.xml 2008-08-06 13:01:16 UTC (rev 714) @@ -261,8 +261,24 @@ </target> - <target name="dist.win" depends="deploy" description="Build the windows installer"> + <target name="dist.linux" depends="dist" description="Build the Linux installer"> + <mkdir dir="${build}/control"/> + <copy todir="${build}/control" filtering="true" > + <fileset dir="${src}/etc/control"/> + </copy> + + <taskdef name="deb" classname="org.vafer.jdeb.ant.DebAntTask" classpath="lib/jdeb-0.7-SNAPSHOT.jar"/> + <deb destfile="${dist}/bin/jetrix-${version}.deb" control="${build}/control" compression="bzip2"> + <data src="${dist}/bin/jetrix-${version}.tar.bz2"> + <mapper type="prefix" strip="1" prefix="/usr/share/jetrix"/> + <exclude name="*.bat"/> + </data> + </deb> + </target> + + <target name="dist.win" depends="deploy" description="Build the Windows installer"> + <!-- Build the windows executable file jetrix.exe --> <mkdir dir="${build}/bin"/> <copy todir="${build}/bin" filtering="true"> @@ -316,7 +332,7 @@ </target> - <target name="dist.all" depends="clean, dist, dist.src, dist.win" description="Build all distributed files"/> + <target name="dist.all" depends="clean, dist, dist.src, dist.win, dist.linux" description="Build all distributed files"/> <target name="deploy" depends="dist"> <delete dir="${deploy}"/> Property changes on: jetrix/trunk/lib/jdeb-0.7-SNAPSHOT.jar ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jetrix/trunk/src/etc/control/control =================================================================== --- jetrix/trunk/src/etc/control/control (rev 0) +++ jetrix/trunk/src/etc/control/control 2008-08-06 13:01:16 UTC (rev 714) @@ -0,0 +1,9 @@ +Package: jetrix +Version: @version@ +Section: games +Priority: optional +Architecture: all +Depends: sun-java6-jre +Maintainer: Emmanuel Bourg <sm...@lf...> +Homepage: http://jetrix.sourceforge.net +Description: Jetrix TetriNET Server Added: jetrix/trunk/src/etc/control/postinst =================================================================== --- jetrix/trunk/src/etc/control/postinst (rev 0) +++ jetrix/trunk/src/etc/control/postinst 2008-08-06 13:01:16 UTC (rev 714) @@ -0,0 +1,3 @@ +#!/bin/sh + +# TODO Move the log directory and create a symlink Added: jetrix/trunk/src/etc/control/preinst =================================================================== --- jetrix/trunk/src/etc/control/preinst (rev 0) +++ jetrix/trunk/src/etc/control/preinst 2008-08-06 13:01:16 UTC (rev 714) @@ -0,0 +1,5 @@ +#!/bin/sh + +# Create the installation directory +mkdir -p /usr/share/jetrix +chmod a+w /usr/share/jetrix This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |