mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-27 04:19:12 +00:00
45 lines
1.7 KiB
Bash
45 lines
1.7 KiB
Bash
|
#!/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.2 2009/10/28 04:12:30 sar Exp $
|
||
|
|
||
|
# Configure, build and install the bind export libraries for use by DHCP
|
||
|
#
|
||
|
# Usage: sh bindlib.sh <bind directory> <bind source directory>
|
||
|
# The intention is for this script to be called by other scrips
|
||
|
# (bind.sh or bindcus.sh) rather than be called directly.
|
||
|
#
|
||
|
# <bind directory> = directory for bind stuff within DHCP, typically
|
||
|
# <dhcp>/bind
|
||
|
#
|
||
|
# <bind source directory> = directory for the unpacked bind source code
|
||
|
# typically <dhcp>/bind/bind-<version>
|
||
|
#
|
||
|
|
||
|
binddir="$1"
|
||
|
bindsrcdir="$2"
|
||
|
|
||
|
# Configure the export libraries
|
||
|
cd $bindsrcdir
|
||
|
./configure --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
|