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
- Check out the correct Opsview sources
svn co http://svn.opsview.org/opsview/trunk opsview
and/orsvn co http://svn.opsview.org/opsview-perl/trunk opsview-perl
- change into the relevant directory
cd opsview-perl
- Set up the DEBMAIL environment variable
export DEBMAIL="user@address"
- run
make debpkg
and wait a while - 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
