-------------------------------------------------------------------------- Adding this repository to apt. -------------------------------------------------------------------------- Add this line to /etc/apt/sources.list: deb http://debian.gfoss.it/ lenny main Adding the repository key to apt keys: wget http://debian.gfoss.it/debian-gfoss.key apt-key add debian-gfoss.key or with a single command: wget -O - http://debian.gfoss.it/debian-gfoss.key | apt-key add - -------------------------------------------------------------------------- NOTES -------------------------------------------------------------------------- Packages on this repository are built on a Debian Stable (Lenny) box. They are by no means official Debian packages. Official Debian Developers work on Debian Unstable and they are committed to the Debian quality control and official repository policies. This is why official Debian Testing packages appear not so quickly as you may desire. This repository is a quick and dirty hack. I do not guarantee any quality at all, and also I do not assure smooth upgrades between old and new versions (dependencies are not guaranteed to be 100% accurate). I suggest to do "dpkg --purge packages" manually, then "apt-get update" followed by "apt-get install package" to upgrade from an old version to the available one. For a better control: download the required .deb packages and do a "dpkg -i package_file.deb". Doing this do not require to add the repository to the apt sources.list. Niccolo -------------------------------------------------------------------------- GIS packages compile chain -------------------------------------------------------------------------- Packages were built in this order: * proj * geos * gdal * grass * libgdal-grass * spatialite * qgis -------------------------------------------------------------------------- How to backport proj, geos, gdal, grass, libgdal-grass and spatialite from Squeeze to Lenny (2009-06-03) -------------------------------------------------------------------------- Just download the sources from Debian Squeeze (Testing) and build the package on Debian Lenny with dpkg-buildpackage: dpkg-source -x .dsc cd dpkg-buildpackage -------------------------------------------------------------------------- How to build QGIS 1.1.0 (2009-06-03) -------------------------------------------------------------------------- This build includes also the experimental OpenStreetMap provider. To use the OSM provider you have to install also the OpenStreetMap Python plugin. From the menu Plugins, Fetch Python Plugins, add the repository http://mapserver.sk/~wonder/qgis/plugins-sandbox.xml and install the OpenStreetMap plugin. Enable the OSM plugin from the menu Plugins, Manage plugins. #!/bin/sh -e PACKAGE="qgis" VER="1.1.0" SVN_DIR="branches" SVN_TAG="Release-1_1_0" LOCAL_BUILD="gfossit$(date +%Y%m%d)" LOCAL_REV="1" test "$UID" = "0" && echo "Do not run as root!" && exit 1 # First time download, get the SVN tree. #--------------------------------------- if [ ! -d orig ]; then mkdir orig cd orig svn co https://svn.osgeo.org/qgis/$SVN_DIR/$SVN_TAG ${PACKAGE}-${VER} cd .. fi # Get the OpenStreetMap provider. #-------------------------------- if [ ! -f osm_provider-snapshot-090601.tar.gz ]; then wget http://mapserver.sk/~wonder/qgis/osm_provider-snapshot-090601.tar.gz fi # Build package. #--------------- test -d "${VER}~${LOCAL_BUILD}" || mkdir "${VER}~${LOCAL_BUILD}" cd "${VER}~${LOCAL_BUILD}" if [ ! -f "${PACKAGE}_${VER}~${LOCAL_BUILD}.orig.tar.gz" ]; then # Prepare the buil tree. cp -a "../orig/${PACKAGE}-${VER}" "${PACKAGE}-${VER}~${LOCAL_BUILD}" find . -type d -name '.svn' -print0 | xargs -r -0 rm -r tar zcvf "${PACKAGE}_${VER}~${LOCAL_BUILD}.orig.tar.gz" "${PACKAGE}-${VER}~${LOCAL_BUILD}" else # Remove the build tree and untar the archive. rm -rf "${PACKAGE}-${VER}~${LOCAL_BUILD}" tar zxvf "${PACKAGE}_${VER}~${LOCAL_BUILD}.orig.tar.gz" fi cd .. # Unpack the OSM provider source. tar zxvf osm_provider-snapshot-090601.tar.gz -C "${VER}~${LOCAL_BUILD}/${PACKAGE}-${VER}~${LOCAL_BUILD}/src/providers" # Write a fresh and new changelog. test -d "local_changes/debian" || mkdir -p "local_changes/debian" cat > "local_changes/debian/changelog" << EOF ${PACKAGE} (${VER}~${LOCAL_BUILD}-${LOCAL_REV}) NOT-FOR-RELEASE; urgency=low * Packaged on Debian Lenny. -- Niccolo Rigacci $(date -R) EOF cat "orig/${PACKAGE}-${VER}/debian/changelog" >> "local_changes/debian/changelog" # Add the (locally changed) Debian files to the build tree. cd "${VER}~${LOCAL_BUILD}/${PACKAGE}-${VER}~${LOCAL_BUILD}" cp -p ../../local_changes/src/providers/CMakeLists.txt src/providers/CMakeLists.txt cp -p ../../local_changes/debian/changelog debian/changelog cp -p ../../local_changes/debian/qgis.install debian/qgis.install cd ../.. # Build the Debian packages. cd "${VER}~${LOCAL_BUILD}/${PACKAGE}-${VER}~${LOCAL_BUILD}" dpkg-buildpackage -rfakeroot -------------------------------------------------------------------------- Navit -------------------------------------------------------------------------- Navit is in Debian Squeeze. The backport to Debian Lenny is as simple as: dpkg-source -x navit_0.2.0~svn2663+dfsg.1-1.dsc cd navit-0.2.0~svn2663+dfsg.1 dpkg-buildpackage -rfakeroot -------------------------------------------------------------------------- How GRASS 6.3~gfossit20080508-1 was compiled (2008-05-08) -------------------------------------------------------------------------- #!/bin/sh -e PACKAGE="grass" VER="6.3" PREFIX="gfossit" TODAY="$(date +%Y%m%d)" ORIG_DIR='grass63_release' # First time download. # Download what? http://trac.osgeo.org/grass/wiki/DownloadSource mkdir orig cd orig # The current release branch version svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_6_3 grass63_release cd .. # Get the latest Debian files. mkdir -p debian/${VER} cd debian/${VER} svn export svn://svn.debian.org/pkg-grass/packages/grass/branches/6.3/debian cd ../.. # Build package. # Prepare the buil tree. mkdir ${VER}.${PREFIX}${TODAY} cd ${VER}.${PREFIX}${TODAY} cp -a "../orig/$ORIG_DIR" "${PACKAGE}-${VER}~${PREFIX}${TODAY}" tar zcvf "${PACKAGE}_${VER}~${PREFIX}${TODAY}.orig.tar.gz" "${PACKAGE}-${VER}~${PREFIX}${TODAY}" cd .. # Write a fresh and new changelog. cat > local_changes/debian/changelog << EOF ${PACKAGE} (${VER}~${PREFIX}${TODAY}-1) NOT-FOR-RELEASE; urgency=low * Packaged on Debian Lenny. -- Niccolo Rigacci $(date -R) EOF cat debian/${VER}/debian/changelog >> local_changes/debian/changelog # Add the Debian files to the build tree. # cd ${VER}.${PREFIX}${TODAY}/${PACKAGE}-${VER} cd "${VER}.${PREFIX}${TODAY}/${PACKAGE}-${VER}~${PREFIX}${TODAY}" test -d debian && mv debian debian_from_svn cp -a ../../debian/${VER}/debian . cp -p ../../local_changes/debian/changelog debian/changelog cp -p ../../local_changes/debian/patches/00list debian/patches cp -p ../../local_changes/debian/patches/www-browser.dpatch debian/patches rm debian/patches/xterm.dpatch cd ../.. # Build the Debian packages. # cd ${VER}.${PREFIX}${TODAY}/${PACKAGE}-${VER} cd "${VER}.${PREFIX}${TODAY}/${PACKAGE}-${VER}~${PREFIX}${TODAY}" #dpkg-buildpackage -rfakeroot dpkg-buildpackage -------------------------------------------------------------------------- How libgdal-grass_1.5.0-1 was compiled (2008-03-20) -------------------------------------------------------------------------- The gdal-grass tarball is created from the main gdal tarball by doing: cd gdal-$(VERSION) ./configure cd frmts/grass make dist Then we used the Debian files from libgdal1-1.4.0-grass.