Rebuilding Debian/Ubuntu Packages

These instructions will allow for rebuilding opsview-base, opsview-core, opsview-perl and opsview-web, but not opsview, opsview-reports, opsview-agent or opsview-slave as they are not currently in a public repository.

Prerequisites

The following will need to be installed to build the packages:

build-essential fakeroot devscripts lsb-release libversion-perl netpbm libmcrypt-dev unzip imagemagick libgd-tools libgd2-noxpm-dev automake1.9 snmp

Steps

  1. Check out the correct Opsview sources
        svn co http://svn.opsview.org/opsview/trunk opsview
    
    and/or
        svn co http://svn.opsview.org/opsview-perl/trunk opsview-perl
    
  2. change into the relevant directory
      cd opsview-perl
    
  3. Set up the DEBMAIL environment variable
        export DEBMAIL="user@address"
    
  4. run
        make debpkg
    
    and wait a while
  5. debian packages should be created in the directory above, i.e.
        ls -la ../*.deb
    

Scripted Builds

The following script has been submitted by Karsten Müller to aid building the packages. Please amend the DEBMAIL email address as appropriate.

#!/bin/bash
#
# build opsview debian packages from source - Karsten 2008-11-05
#
basedir="/usr/local/src/opsview"
version="trunk"
export DEBMAIL="xxxx@yyyy.zzzz"

# debian build environment
aptitude -y install build-essential fakeroot
# debian build dependencies for opsview
aptitude -y install devscripts lsb-release libversion-perl netpbm libmcrypt-dev unzip imagemagick libgd-tools libgd2-noxpm-dev automake1.9 snmp

# doit
for i in opsview opsview-perl; do
       cd $basedir
       svn checkout http://svn.opsview.org/$i/$version $i
       cd $i && make debpkg
done

ls -l $basedir/opsview/*.deb $basedir/*.deb