[mapguide-commits] r4754 - trunk/Installer/scripts

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Apr 7 15:38:09 EDT 2010


Author: trevorwekel
Date: 2010-04-07 15:38:08 -0400 (Wed, 07 Apr 2010)
New Revision: 4754

Added:
   trunk/Installer/scripts/dpkgmaestro.sh
Modified:
   trunk/Installer/scripts/dpkgbuild.sh
   trunk/Installer/scripts/dpkgmapguide.sh
   trunk/Installer/scripts/mginstallubuntu.sh
Log:
Ticket #1295 Improve build scripts for 2.2 release cycle
- Fix execute attributes on scripts
- Add correct copyright information
- Implement Ubuntu packaging for Maestro 



Property changes on: trunk/Installer/scripts/dpkgbuild.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/Installer/scripts/dpkgmaestro.sh
===================================================================
--- trunk/Installer/scripts/dpkgmaestro.sh	                        (rev 0)
+++ trunk/Installer/scripts/dpkgmaestro.sh	2010-04-07 19:38:08 UTC (rev 4754)
@@ -0,0 +1,123 @@
+#!/bin/bash
+
+# Build directory structure underneath directory of this script
+# debian/ - common build directory for all packages
+#   control - generated all packages control file with subst params
+#   changelog - generated changelog file
+#   substvars - subst params created by dpkg-shlibdeps
+#   mapguidemaestro/ - packaging directory for common MapGuide components
+#     usr/local/mapguidemaestro-2.0.0/ - copied tree for common components
+#     DEBIAN/
+#       control - control file generated from dpkg-gencontrol
+#       symbols - symbols file generated from dpkg-gensymbols
+#
+BUILDROOT=`pwd`
+MGBUILD=2.0.0
+MGINST=usr/local/mapguidemaestro-${MGBUILD}
+ROOT=${BUILDROOT}/debian/mapguidemaestro
+TREE=${BUILDROOT}/debian
+CPROOT=${ROOT}/${MGINST}
+
+# Create output directory structure and ignore errors
+#
+if [ ! -d tmp ]; then
+  mkdir tmp >& /dev/null
+  mkdir bin >& /dev/null
+  mkdir debian >& /dev/null
+else
+# clean out existing build tree
+  rm -rf tmp/*
+  rm -rf bin/*
+  rm -rf debian/*
+fi
+
+
+# Read and validate command line parameters
+#
+ARCH="$1"
+BUILDNUM="$2"
+if test -z ${ARCH}; then 
+  echo Usage: dpkgmaestro.sh [i386/amd64] svnChangeNum
+  exit -1
+fi
+if test -z ${BUILDNUM}; then 
+  echo Usage: dpkgmaestro.sh [i386/amd64] svnChangeNum
+  exit -1
+fi
+
+case $ARCH in 
+i386)
+  echo Setting architecture to i386.
+  ;;
+amd64)
+  echo Setting architecture to amd64.
+  ;;
+*)
+  echo Usage: dpkgmaestro.sh [i386/amd64] svnChangeNum
+  echo Invalid architecture.  Please specify i386 or amd64.
+  exit -1
+  ;;
+esac
+
+
+# Create control file
+#
+cat > debian/control <<END-OF-CONTROL
+Source: mapguideopensource-maestro-src
+Maintainer: MapGuide Internals Mail List <mapguide-internals at lists.osgeo.org>
+Section: misc
+Priority: optional
+Homepage: http://mapguide.osgeo.org
+
+Package: mapguideopensource-maestro
+Architecture: ${ARCH}
+Section: misc
+Priority: optional
+Depends: mono-runtime (>= 2.4), libmono-winforms2.0-cil (>= 2.4)
+Description:  OSGeo MapGuide Maestro ${MGBUILD}
+END-OF-CONTROL
+
+
+# Create changelog file
+# TODO: pull revision history from Subversion
+#
+CURRTIME=`date -R`
+cat > debian/changelog <<END-OF-CHANGELOG
+mapguideopensource-maestro-src (${MGBUILD}-${BUILDNUM}) experimental; urgency=low
+
+  * Beta build.
+
+ -- MapGuide Internals Mail List <mapguide-internals at lists.osgeo.org>  ${CURRTIME}
+END-OF-CHANGELOG
+
+
+# TODO: Pull copyright file from Subversion vault 
+#
+cat > tmp/copyright <<END-OF-COPYRIGHT
+Copyright (C) 2009 - 2010, Kenneth Skovhede
+http://www.hexad.dk, opensource at hexad.dk
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+END-OF-COPYRIGHT
+iconv -f ISO-8859-1 -t UTF-8 tmp/copyright > debian/copyright
+
+PACKAGENAME=mapguideopensource-maestro
+PACKAGEDIR=mapguidemaestro
+DIRLIST="."
+REMOVELIST=""
+STRIPLIST=""
+
+source ./dpkgbuild.sh
+


Property changes on: trunk/Installer/scripts/dpkgmaestro.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: trunk/Installer/scripts/dpkgmapguide.sh
===================================================================
--- trunk/Installer/scripts/dpkgmapguide.sh	2010-04-07 18:59:15 UTC (rev 4753)
+++ trunk/Installer/scripts/dpkgmapguide.sh	2010-04-07 19:38:08 UTC (rev 4754)
@@ -44,10 +44,9 @@
   mkdir debian >& /dev/null
 else
 # clean out existing build tree
-   echo Fix me later
-#  rm -rf tmp/*
-#  rm -rf bin/*
-#  rm -rf debian/*
+  rm -rf tmp/*
+  rm -rf bin/*
+  rm -rf debian/*
 fi
 
 
@@ -125,15 +124,14 @@
 cat > debian/changelog <<END-OF-CHANGELOG
 mapguideopensource-src (${MGBUILD}-${BUILDNUM}) experimental; urgency=low
 
-  * Pre-release build.
+  * Beta build.
 
  -- MapGuide Internals Mail List <mapguide-internals at lists.osgeo.org>  ${CURRTIME}
 END-OF-CHANGELOG
 
 
 # Pull copyright file from Subversion vault 
-# TODO: Create a copyright file for MapGuide, use FDO for now
-wget -N http://svn.osgeo.org/fdo/branches/3.5/License_README.txt -O tmp/copyright
+wget -N http://svn.osgeo.org/mapguide/trunk/MgDev/License.txt -O tmp/copyright
 iconv -f ISO-8859-1 -t UTF-8 tmp/copyright > debian/copyright
 
 PACKAGENAME=mapguideopensource-common
@@ -142,7 +140,7 @@
 REMOVELIST="\.a\$ \.la\$"
 STRIPLIST="\.so\$ libdwf"
 
-# source ./dpkgbuild.sh
+source ./dpkgbuild.sh
 
 MGINST=usr/local/mapguideopensource-${MGBUILD}/server
 ROOT=${BUILDROOT}/debian/mapguideserver
@@ -154,7 +152,7 @@
 REMOVELIST="\.a\$ \.la\$"
 STRIPLIST="\.so\$"
 
-# source ./dpkgbuild.sh
+source ./dpkgbuild.sh
 
 MGINST=usr/local/mapguideopensource-${MGBUILD}/webserverextensions
 ROOT=${BUILDROOT}/debian/mapguidewebextensions
@@ -166,7 +164,7 @@
 REMOVELIST="\.a\$ \.la\$"
 STRIPLIST="\.so\$"
 
-#source ./dpkgbuild.sh
+source ./dpkgbuild.sh
 
 MGINST=usr/local/mapguideopensource-${MGBUILD}/webserverextensions
 ROOT=${BUILDROOT}/debian/mapguidehttpd

Modified: trunk/Installer/scripts/mginstallubuntu.sh
===================================================================
--- trunk/Installer/scripts/mginstallubuntu.sh	2010-04-07 18:59:15 UTC (rev 4753)
+++ trunk/Installer/scripts/mginstallubuntu.sh	2010-04-07 19:38:08 UTC (rev 4754)
@@ -3,12 +3,15 @@
 URL="http://download.osgeo.org/mapguide/testing"
 FDOVER=3.5.0-5343_i386
 MGVER=2.2.0-4724_i386
+MAESTROVER=2.0.0-4650_i386
 # Create temporary download directory
 mkdir -p ${TEMPDIR}
 pushd ${TEMPDIR}
 
 # Install required packages 
-apt-get -y install libexpat1 libssl0.9.8 odbcinst1debian1 unixodbc libmysqlclient15off
+apt-get -y install libexpat1 libssl0.9.8 odbcinst1debian1 unixodbc
+apt-get -y install mono-runtime libmono-winforms2.0-cil
+apt-get -y install libmysqlclient15off
 
 # Resolve CentOS 5.4 / Ubuntu 9.10 shared lib differences with symlinks
 if [ ! -e /lib/libcrypto.so.6 ]; then
@@ -35,6 +38,9 @@
   wget -N ${URL}/mapguideopensource-${file}_${MGVER}.deb
 done
 
+# Download Ubuntu package for Maestro
+wget -N ${URL}/mapguideopensource-maestro_${MAESTROVER}.deb
+
 # Install Ubuntu packages for FDO
 for file in core gdal kingoracle ogr postgis rdbms sdf shp sqlite wfs wms
 do
@@ -47,5 +53,8 @@
   dpkg -E -G --install mapguideopensource-${file}_${MGVER}.deb
 done
 
+# Install Ubuntu Package for Maestro
+dpkg -E -G --install mapguideopensource-maestro_${MAESTROVER}.deb
+
 popd
 


Property changes on: trunk/Installer/scripts/mginstallubuntu.sh
___________________________________________________________________
Added: svn:executable
   + *



More information about the mapguide-commits mailing list