<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Mac OS X 10.5 compiled packages of BIND 9.4.3-P3, 9.5.1-P3, and 9.6.1-P1"]]></title>
		<link>http://support.menandmice.com/jforum/posts/list/5.page</link>
		<description><![CDATA[Latest messages posted in the topic "Mac OS X 10.5 compiled packages of BIND 9.4.3-P3, 9.5.1-P3, and 9.6.1-P1"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Mac OS X 10.5 compiled packages of BIND 9.4.3-P3, 9.5.1-P3, and 9.6.1-P1</title>
				<description><![CDATA[ Compiled distributions of these new BIND versions built for Leopard can be found here:

http://support.menandmice.com/download/bind/macosx/

To install, use these commands in a command shell:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
sudo -s
tar xzC / -f bind-&lt;ver&gt;-binary-&lt;arch&gt;.tar.gz
killall named
exit
</pre>
		</div>

To view the list of files in the archive before installing, use this command:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
tar tzf bind-&lt;ver&gt;-binary-&lt;arch&gt;.tar.gz
</pre>
		</div>

These binaries are available in both i386 and PPC7400 flavors (32-bit Intel and PowerPC architectures, i.e. G4 and Core [Solo|Duo]). They will run just fine on 64-bit operating systems and architectures.

Support for openssl and IPv6 are built in, along with support for large files (mainly for the purpose of writing log files). Threads are disabled for stability; if every ounce of speed is needed, recompile with threads enabled (see script below).

MD5 hashes are as follows:

Intel architecture:
15e863b4d2bc0608ec1fc96c8a20cb48  bind-9.4.3-P3-binary-i386.tar.gz
f7ac5625fd80468170ff3c9f813402ce  bind-9.5.1-P3-binary-i386.tar.gz
956d8d6ec9aedc9f88fdce0b98afca90  bind-9.6.1-P1-binary-i386.tar.gz

PowerPC architecture:
0385c59aaf2286df1257765351cbc5c3  bind-9.4.3-P3-binary-ppc.tar.gz
026bb8effc3342d2a086bef6cb600b36  bind-9.5.1-P3-binary-ppc.tar.gz
4217b9f9a13bb86ba9dd331f6c6a879d  bind-9.6.1-P1-binary-ppc.tar.gz

Compare against your download using the 'md5' command in a Terminal window. No warranty is expressed or implied.

These builds were created using the following script. Permission is granted to use and modify the script.
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
#!/bin/bash
# mkbind
# version 20090730
# copyright 2009 Men & Mice
# No warranty is expressed or implied.

# Check for the version argument:
if &#91; -z "$1" &#93; ; then
    echo "Usage: $0 bind-ver"
    echo "  bind-ver = the version of BIND to build"
    exit 1
else
    bindver=$1
    echo "Preparing binary package for BIND version $bindver"
fi

HOME="$&#40;pwd&#41;"
mkdir -p "${bindver}-logs"

fetch_commands&#40;&#41;
{ :
    if &#91; -f bind-${bindver}.tar.gz &#93;
    then
        echo "Source archive already downloaded"
    else
        curl --progress-bar --stderr - -O \
            ftp://ftp.isc.org/isc/bind/${bindver}/bind-${bindver}.tar.gz
    fi
}

# Unpack the tarball
unpack_commands&#40;&#41;
{ :
    tar xzvf bind-${bindver}.tar.gz
}

# Configure
# We're disabling threads, because it's more stable that way. For
# absolute best performance, enable them, but beware of stability
# issues.
configure_commands&#40;&#41;
{ :
    ./configure \
        --prefix=/usr \
        --sysconfdir=/private/etc \
        --localstatedir=/private/var \
        --enable-largefile \
        --with-openssl \
        --with-pic \
        --disable-threads
}

# Build
make_commands&#40;&#41;
{ :
    make
}

# Bundle up into a tarball
package_commands&#40;&#41;
{ :
    mkdir -p DEST && \
    make DESTDIR=$&#40;pwd&#41;/DEST install && \
    cd DEST && \
    tar czf "$HOME/bind-${bindver}-binary.tar.gz" \
        usr/bin/{dig,host,ns{lookup,update}} \
        usr/sbin/dnssec-{keygen,signzone} \
        usr/sbin/named{,-check{conf,zone},-compilezone} \
        usr/sbin/rndc{,-confgen} \
        usr/share/man/man1/{dig,host,ns{lookup,update}}* \
        usr/share/man/man5/{named,rndc}* \
        usr/share/man/man8/{dnssec,named,rndc}*
}

# Clean up
clean_commands&#40;&#41;
{ :
    rm -rf bind-${bindver}
}

test_pipe&#40;&#41;
{
    for i in "${PIPESTATUS&#91;@&#93;}"
    do
        &#91; $i == 0 &#93; || { echo FAILED ; exit 1 ; }
    done
    echo successful
    return 0
}

go&#40;&#41;
{
    { ${1}_commands 3&gt;&1 1&gt;&2 2&gt;&3 | \
        tee "$HOME/${bindver}-logs/${1}.err" ;} \
        &&gt;"$HOME/${bindver}-logs/${1}.log"
    test_pipe || exit 1
};

# Here we go:
echo -n "Fetching... "      && go fetch        || exit 3
echo -n "Unpacking... "     && go unpack       || exit 4
cd bind-$bindver
echo -n "Configuring... "   && go configure    || exit 5
echo -n "Building... "      && go make         || exit 6
echo -n "Packaging... "     && go package      || exit 7
cd ..
echo -n "Cleaning Up... "   && go clean        || exit 8

# All done
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://support.menandmice.com/jforum/posts/list/148.page#795</guid>
				<link>http://support.menandmice.com/jforum/posts/list/148.page#795</link>
				<pubDate><![CDATA[Thu, 30 Jul 2009 22:06:56]]> GMT</pubDate>
				<author><![CDATA[ Chris Buxton]]></author>
			</item>
	</channel>
</rss>