Created
April 11, 2017 22:03
-
-
Save boina-n/c0520fcfba65cfe9ac4f8af44d3fc980 to your computer and use it in GitHub Desktop.
This script automatically download the sources of bind and compile them. in order to create an install on the server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp | |
url=http://ftp.isc.org/isc/bind9/9.9.8-P2/bind-9.9.8-P2.tar.gz | |
wget $url | |
bindv=9.9.8-P2 | |
compil=TCP3sec-nossl-rrl-xtds-ipv6-64bits | |
tar -zxvf bind-$bindv.tar.gz | |
patch /tmp/bind-$bindv/bin/named/client.c < /usr/local/progs/compil-resources/client.patch | |
less /tmp/bind-$bindv/bin/named/client.c | |
cd bind-$bindv | |
./configure --prefix=/usr/local/progs/bind-$bindv-$compil/ --enable-threads --without-openssl --enable-rrl --enable-ipv6 | |
make | |
make intall | |
unlink /exec/applis/named | |
ln -s /exec/applis/bind-$bindv-$compil /exec/applis/named | |
mkdir /exec/applis/bind-$bindv-$compil/var/log/ | |
/exec/applis/bind-$bindv-$compil/sbin/named -V | |
mkdir /usr/local/progs/named/share/init-script/ | |
/bin/cp -prfv /usr/local/progs/compil-resources/etc/* /usr/local/progs/named/etc/ | |
/bin/cp -vprf /usr/local/progs/compil-resources/init-script/* /usr/local/progs/named/share/init-script/ | |
cd /usr/local/progs/ | |
chown -R dns:prog /usr/local/progs | |
tar -czvf bind-$bindv-$compil.tgz bind-$bindv-$compil/ | |
md5sum bind-$bindv-$compil.tg | |
1961dcd572bc81e4bf07ecda1394acd2 bind-$bindv-$compil.tgz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment