#!/bin/bash -x # description: monitor-core build script # # Copyright 2007 GroundWork Open Source, Inc. (“GroundWork”) # All rights reserved. This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License version 2 # as published by the Free Software Foundation. # # This program 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 General Public License for # more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin # Street, Fifth Floor, Boston, MA 02110-1301, USA. # BUILD_DIR=$PWD/../monitor-core LOG_DIR=$PWD/log prefix=/usr/local/groundwork # Clean up install directory rm -rf $prefix # Create build and log directory mkdir -p $LOG_DIR mkdir -p $BUILD_DIR # Start Building packages from downloaded sources # Berkeley db mkdir -p $BUILD_DIR/syslib cd $BUILD_DIR/syslib maven db4 /sbin/ldconfig