📄 bind-9.2.1-patch
字号:
IDN patch for bind-9.2.1========================This is a patch file for ISC BIND 9.2.1 to make it work withinternationalized domain names. With this patch you'll get IDN-awaredig/host/nslookup.To apply this patch, you should go to the top directory of the BINDdistribution (where you see `README' file), then invoke `patch'command like this: % patch -p0 < this-fileThen follow the instructions described in `README.idnkit' to compileand install.Index: README.idnkitdiff -c /dev/null mdn/othersrc/bind9/README.idnkit:1.2*** README.idnkit Mon May 27 16:53:24 2002--- README.idnkit Tue Mar 26 16:35:05 2002****************** 0 ****--- 1,113 ----+ + BIND-9 IDN patch+ + Japan Network Information Center (JPNIC)+ + + * What is this patch for?+ + This patch adds internationalized domain name (IDN) support to BIND-9.+ You'll get internationalized version of dig/host/nslookup commands.+ + + internationalized dig/host/nslookup+ dig/host/nslookup accepts non-ASCII domain names in the local+ codeset (such as Shift JIS, Big5 or ISO8859-1) determined by+ the locale information. The domain names are normalized and+ converted to the encoding on the DNS protocol, and sent to DNS+ servers. The replies are converted back to the local codeset+ and displayed.+ + + * Compilation & installation+ + 0. Prerequisite+ + You have to build and install idnkit before building this patched version+ of bind-9.+ + 1. Running configure script+ + Run `configure' in the top directory. See `README' for the+ configuration options.+ + This patch adds the following 4 options to `configure'. You should+ at least specify `--with-idn' option to enable IDN support.+ + --with-idn[=IDN_PREFIX]+ To enable IDN support, you have to specify `--with-idn' option.+ The argument IDN_PREFIX is the install prefix of idnkit. If+ IDN_PREFIX is omitted, PREFIX (derived from `--prefix=PREFIX')+ is assumed.+ + --with-libiconv[=LIBICONV_PREFIX]+ Specify this option if idnkit you have installed links GNU+ libiconv. The argument LIBICONV_PREFIX is install prefix of+ GNU libiconv. If the argument is omitted, PREFIX (derived+ from `--prefix=PREFIX') is assumed.+ + `--with-libiconv' is shorthand option for GNU libiconv.+ + --with-libiconv=/usr/local+ + This is equivalent to:+ + --with-iconv='-L/usr/local/lib -R/usr/local/lib -liconv'+ + `--with-libiconv' assumes that your C compiler has `-R'+ option, and that the option adds the specified run-time path+ to an exacutable binary. If `-R' option of your compiler has+ different meaning, or your compiler lacks the option, you+ should use `--with-iconv' option instead. Binary command+ without run-time path information might be unexecutable.+ In that case, you would see an error message like:+ + error in loading shared libraries: libiconv.so.2: cannot+ open shared object file+ + If both `--with-libiconv' and `--with-iconv' options are+ specified, `--with-iconv' is prior to `--with-libiconv'.+ + --with-iconv=ICONV_LIBSPEC+ If your libc doens't provide iconv(), you need to specify the+ library containing iconv() with this option. `ICONV_LIBSPEC'+ is the argument(s) to `cc' or `ld' to link the library, for+ example, `--with-iconv="-L/usr/local/lib -liconv"'.+ You don't need to specify the header file directory for "iconv.h"+ to the compiler, as it isn't included directly by bind-9 with+ this patch.+ + --with-idnlib=IDN_LIBSPEC+ With this option, you can explicitly specify the argument(s)+ to `cc' or `ld' to link the idnkit's library, `libidnkit'. If+ this option is not specified, `-L${PREFIX}/lib -lidnkit' is+ assumed, where ${PREFIX} is the installation prefix specified+ with `--with-idn' option above. You may need to use this+ option to specify extra argments, for example,+ `--with-idnlib="-L/usr/local/lib -R/usr/local/lib -lidnkit"'.+ + Please consult `README' for other configuration options.+ + Note that if you want to specify some extra header file directories,+ you should use the environment variable STD_CINCLUDES instead of+ CFLAGS, as described in README.+ + 2. Compilation and installation+ + After running "configure", just do+ + make+ make install+ + for compiling and installing.+ + + * Contact information+ + Please see http//www.nic.ad.jp/jp/research/mdn/ for the latest news+ about idnkit and this patch.+ + Bug reports and comments on this kit should be sent to+ mdnkit-bugs@nic.ad.jp and mdn-cmt@nic.ad.jp, respectively.+ + + ; $Id: bind-9.2.1-patch,v 1.1.1.1 2003/06/04 00:27:30 marka Exp $Index: config.h.indiff -c mdn/othersrc/bind9/config.h.in:1.1.1.6 mdn/othersrc/bind9/config.h.in:1.12*** config.h.in Tue Nov 27 16:55:45 2001--- config.h.in Tue Mar 19 16:45:35 2002****************** 141,146 ****--- 141,149 ---- /* define if you have strerror in the C library. */ #undef HAVE_STRERROR + /* Define if you have the setlocale function. */+ #undef HAVE_SETLOCALE+ /* Define if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H ****************** 150,155 ****--- 153,161 ---- /* Define if you have the <linux/capability.h> header file. */ #undef HAVE_LINUX_CAPABILITY_H + /* Define if you have the <locale.h> header file. */+ #undef HAVE_LOCALE_H+ /* Define if you have the <sys/prctl.h> header file. */ #undef HAVE_SYS_PRCTL_H ****************** 176,178 ****--- 182,188 ---- /* Define if you have the socket library (-lsocket). */ #undef HAVE_LIBSOCKET+ + /* define if idnkit support is to be included. */+ #undef WITH_IDN+ Index: configurediff -c mdn/othersrc/bind9/configure:1.1.1.9 mdn/othersrc/bind9/configure:1.15*** configure Wed May 22 17:14:53 2002--- configure Mon May 27 12:10:14 2002****************** 369,374 ****--- 369,382 ---- --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]" ac_help="$ac_help --disable-linux-caps disable linux capabilities"+ ac_help="$ac_help+ --with-idn[=MPREFIX] enable IDN support using idnkit [default PREFIX]"+ ac_help="$ac_help+ --with-libiconv[=IPREFIX] GNU libiconv are in IPREFIX [default PREFIX]"+ ac_help="$ac_help+ --with-iconv[=LIBSPEC] specify iconv library [default -liconv]"+ ac_help="$ac_help+ --with-idnlib=ARG specify libidnkit" # Initialize some variables set by options. # The variables have the same names as the options, with****************** 911,917 **** fi echo $ac_n "checking host system type""... $ac_c" 1>&6! echo "configure:915: checking host system type" >&5 host_alias=$host case "$host_alias" in--- 919,925 ---- fi echo $ac_n "checking host system type""... $ac_c" 1>&6! echo "configure:923: checking host system type" >&5 host_alias=$host case "$host_alias" in****************** 933,939 **** echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6! echo "configure:937: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6--- 941,947 ---- echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6! echo "configure:945: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6****************** 962,968 **** # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:966: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else--- 970,976 ---- # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:974: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else****************** 1001,1007 **** # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6! echo "configure:1005: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6--- 1009,1015 ---- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6! echo "configure:1013: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6****************** 1062,1068 **** # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1066: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else--- 1070,1076 ---- # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1074: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else****************** 1121,1127 **** # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1125: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else--- 1129,1135 ---- # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1133: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else****************** 1163,1169 **** # if test "X$ETAGS" != "X"; then echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6! echo "configure:1167: checking for Exuberant Ctags etags" >&5 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then echo "$ac_t""yes" 1>&6 ETAGS="$ETAGS -L"--- 1171,1177 ---- # if test "X$ETAGS" != "X"; then echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6! echo "configure:1175: checking for Exuberant Ctags etags" >&5 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then echo "$ac_t""yes" 1>&6 ETAGS="$ETAGS -L"****************** 1181,1187 **** # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1185: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else--- 1189,1195 ---- # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1193: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else****************** 1328,1334 **** # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1332: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else--- 1336,1342 ---- # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1340: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else****************** 1358,1364 **** # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1362: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else--- 1366,1372 ---- # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1370: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else****************** 1409,1415 **** # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1413: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else--- 1417,1423 ---- # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6! echo "configure:1421: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else****************** 1441,1447 **** fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6! echo "configure:1445: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -