#!/bin/sh # # Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # $Id: bindlib.sh,v 1.3 2009/10/29 00:46:48 sar Exp $ # Configure, build and install the bind export libraries for use by DHCP # # Usage: sh bindlib.sh # The intention is for this script to be called by other scrips # (bind.sh or bindcus.sh) rather than be called directly. # # = directory for bind stuff within DHCP, typically # /bind # # = directory for the unpacked bind source code # typically /bind/bind- # binddir="$1" bindsrcdir="$2" # Configure the export libraries cd $bindsrcdir ./configure --without-openssl --without-libxml2 --enable-exportlib --enable-threads=no --with-export-includedir=$binddir/include --with-export-libdir=$binddir/lib > $binddir/configure.log # Build the export librares cd lib/export gmake > $binddir/build.log # Install the libraries and includes gmake install > $binddir/install.log