Beginning work on tying debian package together.

This commit is contained in:
Matthew Bowra-Dean
2010-09-14 03:30:08 +12:00
parent 5a513bc69d
commit 8452e1bdf0
6 changed files with 123 additions and 1 deletions

View File

@@ -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)"

View File

@@ -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 <ma1kelvdh@gmail.com> Thu, 09 Sep 2010 16:34:03 +0200

View File

@@ -0,0 +1,15 @@
Package: openra
Version: 20100907-1
Architecture: i386
Maintainer: Matthew Bowra-Dean <matthew@ijw.co.nz>
Uploaders: Maikel van den Hout <ma1kelvdh@gmail.com>
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).

View File

@@ -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

View File

@@ -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

View File

@@ -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