From 0dd0c4c9a9a1d328ad6f19ba0e833e90dda2c9e9 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 16 Jun 2010 11:37:49 +0100 Subject: [PATCH] COMP: initial files for debian building --- doc/changes/allChanges.txt | 40 +++++++++++++++ doc/changes/debianPackage.txt | 112 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 152 insertions(+) create mode 100644 doc/changes/allChanges.txt create mode 100644 doc/changes/debianPackage.txt diff --git a/doc/changes/allChanges.txt b/doc/changes/allChanges.txt new file mode 100644 index 00000000..56d3d8f0 --- /dev/null +++ b/doc/changes/allChanges.txt @@ -0,0 +1,40 @@ +src/autoMesh/ + lower memory for snappyHexMesh (pre-balancing, non-blocking mesh transfers) + +src/dynamicMesh/polyTopoChange/ + avoiding hashtable::erase slowness + preserve facezone orientation in snappyHexMesh + +src/finiteVolume/ + - Use isA instead of isType : + -wall functions on directMappedWall + -derived cyclic types + + - TimeActivatedExplicitSource now templated on type + - new: timeActivatedExplicitCellSource : explicit source + for selected number of cells. Replaces timeActivatedExplict + - new: timeActivatedExplicitMultiComponentPointSource : explicit source + for multicomponent flows + - removed:expDirectionMixedFvPatchField + - new:timeVaryingMappedPressureDirectedInletVelocityFvPatchVectorField + - new:timeVaryingMappedTotalPressureFvPatchScalarField + - new:timeVaryingUniformInletOutlet + - new:translatingWallVelocity + + - new:fvm::adjDiv ? + - MULES+subcycling on moving mesh + - new: MC limitedScheme + +src/lagrangian/ + - new: uniform cloud properties file + +src/lagrangian/dsmc/ + - new: MixedDiffuseSpecular wall interaction model + +src/lagrangian/intermediate/ + - new: active switch in KinematicCloud + - new: kinematicParcelInjectionData[CH] + +src/meshTools/ + - new: cellZoneSet, faceZoneSet, pointZoneSet. + diff --git a/doc/changes/debianPackage.txt b/doc/changes/debianPackage.txt new file mode 100644 index 00000000..cfbd1ad0 --- /dev/null +++ b/doc/changes/debianPackage.txt @@ -0,0 +1,112 @@ +mount -t vboxsf share + + +How to create a Debian package. + +- install OpenFOAM as usual +(I installed the 1.7.0 git version: + cd ~/OpenFOAM + git clone ssh://mattijs@10.0.0.4/home/noisy3/OpenFOAM/OpenFOAM-1.7.0.git +) + +Get all your dependencies: + +Package building: + sudo apt-get install dh-make + sudo apt-get install dpkg + sudo apt-get install lintian # contains package checking + sudo apt-get install devscripts # contains debuild package building + +OpenFOAM building: + + sudo apt-get install binutils-dev + sudo apt-get install flex + sudo apt-get install libscotch-dev + sudo apt-get install libopenmpi-dev + sudo apt-get install libxt-dev (tecplot360 converter) + +Compile all. Metis will fail. + +Create a directory with a tar.bz2 pack of all: + + cd ~/OpenFOAM + mkdir openfoam-1.7.0 + tar czf openfoam-1.7.0/openfoam-1.7.0.orig.tar.gz OpenFOAM-1.7.0 + cd openfoam-1.7.0 + +Packaging: + + dh_make -f openfoam-1.7.0.orig.tar.gz + + cd debian + rm emacs* + rm cron.d.ex + rm init.d.ex + rm init.d.lsb.ex + rm openfoam.default.ex + rm postrm.ex <- probably not sourced so we cannot use it + to do a foamCleanPath + preinst.ex : + - change etc/ files to have hardcoded current installation + (/opt/OpenFOAM/openfoam-1.7.0) + - source /opt/OpenFOAM/openfoam-1.7.0/etc/bashrc + postinst.ex : + - have it print message about users needing to add + source /opt/OpenFOAM/openfoam-1.7.0/etc/bashrc + + + cp ../README README.source + + vi control + - section=optional + - Maintainer=patches + - homepage= + - Architecture=i386 (or amd64) + - Depends: binutils-dev, flex, ... + - Description: OpenFOAM-1.7.0 + OpenFOAM is a free, open source CFD software package produced by a + commercial company, OpenCFD Ltd. It has a large user base across most + areas of engineering and science, from both commercial and academic + organisations. OpenFOAM has an extensive range of features to solve + anything from complex fluid flows involving chemical reactions, + turbulence and heat transfer, to solid dynamics and + electromagnetics. + vi copyright + - change to our v3. + vi rules and change to makefile with rules: + + make clean: + -> ./Allwclean + make build: + -> ./Allwmake + make binary: + -> ./Allwmake + + vi changeLog + - update email address + - possibly add git log + + rm watch.ex (could be used to check for updates) + rm README.Debian <- already in our readme. Or maybe note lack of *Metis. + +Test of packaging +----------------- + dpkg - creates a .deb package: + + dpdg-buildpackage -rfakeroot + + + rename into + + openfoam-1.7.0-0ubuntu1.deb + ^ + ^ package counter. incremented (by hand) for every new deb pack + from us + + + lintian - checks .deb package + + + + + + -- 2.11.4.GIT