diff --git a/Makefile b/Makefile index a183972885..c7b4ee22bc 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@ clean: distclean: clean -CORE = fileformats gl game seqed +CORE = fileformats gl game editor install: all @-echo "Installing OpenRA to $(INSTALL_DIR)" diff --git a/packaging/linux/deb/DEBIAN/changelog b/packaging/linux/deb/DEBIAN/changelog new file mode 100644 index 0000000000..784b16182d --- /dev/null +++ b/packaging/linux/deb/DEBIAN/changelog @@ -0,0 +1,5 @@ +openra (20100907-1) unstable; urgency=low + +* Changed MiG prerequisites to AFLD+STEK * Removed KENN, build DOG directly from BARR now * Chronotank can only teleport when fully charged * Improved OpenGL error logging * Fixed targeting of FIX * Fixed crash when an engineer is trying to repair a building, but it dies/gets sold/* etc. * Added muzzle flashes to Yak and Hind chainguns * Fixed bounding boxes on some units * Fixed accuracy of Tesla weapons * Changed ownership of GUN and GTWR in CNC to both * Fixed crash on destroying things that have a building reserved * If ordered to move to an unpathable cell, move somewhere nearby that is pathable * instead * Fixed RPM linux package + +-- Maikel van den Hout Thu, 09 Sep 2010 16:34:03 +0200 diff --git a/packaging/linux/deb/DEBIAN/control b/packaging/linux/deb/DEBIAN/control new file mode 100644 index 0000000000..e348281c81 --- /dev/null +++ b/packaging/linux/deb/DEBIAN/control @@ -0,0 +1,15 @@ +Package: openra +Version: 20100907-1 +Architecture: i386 +Maintainer: Matthew Bowra-Dean +Uploaders: Maikel van den Hout +Installed-Size: 31623 +Depends: nvidia-cg-toolkit (>= 2.2), libopenal1, mono-runtime, libmono-winforms2.0-cil, libfreetype6, libsdl1.2debian, libgl1-mesa-glx, libgl1-mesa-dri, zenity, wget, unzip +Section: games +Priority: extra +Homepage: http://www.open-ra.org/ +Description: A multiplayer reimplementation of the Command & Conquer: Red Alert game engine in .NET/Mono, OpenGL, OpenAL and SDL. Has extensive modding support and includes Command & Conquer as an official mod. + . + Please note: OpenRA is currently at an alpha release stage. Expect releases to be buggy + or unstable. If you have any problems, please report them to the IRC channel (#openra on + irc.freenode.net) or the bug-tracker (http://red-bull.ijw.co.nz:3690/OpenRA). diff --git a/packaging/linux/deb/DEBIAN/postinst b/packaging/linux/deb/DEBIAN/postinst new file mode 100644 index 0000000000..10a14c822e --- /dev/null +++ b/packaging/linux/deb/DEBIAN/postinst @@ -0,0 +1,41 @@ +#!/bin/sh +set -e +# Automatically added by dh_installmenu +if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then + update-menus +fi +# End automatically added section + +start_directory=$( pwd ) +cd /tmp + +anw=`zenity --question --text "Download and install RA packages? (This might take a while) [Y/n]"; echo $?` +if [ $anw = 0 ] ; then + cd /tmp/ + wget "http://open-ra.org/get-dependency.php?file=ra-packages" -O ra-packages.zip + mkdir -p /usr/share/openra/mods/ra/packages + unzip -f ra-packages.zip -d /usr/share/openra/mods/ra/packages + rm ra-packages.zip + cd $start_directory + else + break +fi + + +anw=`zenity --question --text "Download and install C&C packages? (This might take a while) [Y/n]"; echo $?` +if [ $anw = 0 ] ; then + cd /tmp/ + wget "http://open-ra.org/get-dependency.php?file=cnc-packages" -O cnc-packages.zip + mkdir -p /usr/share/openra/mods/cnc/packages + unzip -f cnc-packages.zip -d usr/share/openra/mods/cnc/packages + rm cnc-packages.zip + cd $start_directory + else + break +fi + +gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Cg.dll +gacutil -i /usr/share/openra/thirdparty/Tao/Tao.FreeType.dll +gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenAl.dll +gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenGl.dll +gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Sdl.dll diff --git a/packaging/linux/deb/DEBIAN/postrm b/packaging/linux/deb/DEBIAN/postrm new file mode 100644 index 0000000000..a30dbac677 --- /dev/null +++ b/packaging/linux/deb/DEBIAN/postrm @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +# Automatically added by dh_installmenu +if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi +# End automatically added section diff --git a/packaging/linux/deb/buildpackage.sh b/packaging/linux/deb/buildpackage.sh new file mode 100644 index 0000000000..c856c81e06 --- /dev/null +++ b/packaging/linux/deb/buildpackage.sh @@ -0,0 +1,56 @@ +#!/bin/bash +ARGS=7 +E_BADARGS=85 + +if [ $# -ne "$ARGS" ] +then + echo "Usage: `basename $0` ftp-server ftp-path username password version temp-packaging-dir" + exit $E_BADARGS +fi + +PKGVERSION=`echo $5 | sed "s/-/\\./g"` + +# Delete lines and insert updated ones for version +sed -i '2,2 d' ./DEBIAN/control +sed -i '11,11 i\Version: $PKGVERSION' ./DEBIAN/control +sed -i '1,1 d' ./DEBIAN/changelog +sed -i '1,1 i\openra ($PKGVERSION) unstable; urgency=low' ./DEBIAN/changelog + +# Get the size needed for the Installed-Size line and change it +sed -i '5,5 d' ./DEBIAN/control +PACKAGE_SIZE= $( du --apparent-size -c ./usr | grep total | sed 's/[a-z]//g' | sed 's/\ //g') +sed -i '5,5 i\Installed-Size: $PACKAGE_SIZE' ./DEBIAN/control + +# Copy our two needed folders to a clean package directory (yes, this is needed) +cp -R ./DEBIAN $6 +cp -R ./usr $6 + +# Build it in the package directory, but place the finished deb in our starting directory +BUILD_DIR=$( pwd ) +pushd $6 + +# Calculate md5sums and clean up the /usr/ part of them +md5sum `find . -type f | grep -v '^[.]/DEBIAN/'` >DEBIAN/md5sums +sed -i 's/\.\/usr\//usr\//g' ./DEBIAN/md5sums + +# Start building, the file should appear in directory the script was executed in +dpkg-deb -b . $BUILD_DIR/openra-$PKGVERSION.deb + +# Get back to begin directory + +popd + +# Get package file and dump it on ftp + +PACKAGEFILE=openra-$PKGVERSION.deb +size=`stat -c "%s" $PACKAGEFILE` + +echo "$5,$size,$PACKAGEFILE" > /tmp/deblatest.txt + +wput $PACKAGEFILE "ftp://$3:$4@$1/$2/" +cd /tmp +wput -u deblatest.txt "ftp://$3:$4@$1/$2/" + +# remove temp-packaging-dir + +rm -rf $6