#!/bin/sh -e # $Id: bind.osx, 2010-03-04 12:36 #groupadd named #useradd -d /dev/null -g named -s /bin/false named URL=http://ftp.isc.org/isc/bind9/9.7.0-P1/bind-9.7.0-P1.tar.gz ARCHIVE=${URL##*/} PACKAGE=${ARCHIVE%.tar.*} cd /usr/local/src test -f $ARCHIVE || curl -LOO ${URL}{,.asc} test -d $PACKAGE && rm -rf $PACKAGE # gpg --keyserver hkp://subkeys.pgp.net --keyserver-options auto-key-retrieve --verify ${ARCHIVE}.asc tar --no-same-owner --no-same-permissions -xzvf $ARCHIVE cd $PACKAGE ./configure --prefix=/usr/local --localstatedir=/usr/local/var \ --sysconfdir=/usr/local/etc --mandir=/usr/local/man \ --with-openssl=no --enable-threads --enable-shared \ --disable-static --with-libtool make # make test sudo make install sudo dig @a.root-servers.net . ns > /usr/local/etc/root.hints