Switch from BIND 8 to BIND 9.
Submitted by: (in part) dougb@, trhodes@ Reviewed by: dougb@, trhodes@, re@ MFC after: 5 days
This commit is contained in:
parent
95c973ff52
commit
cd3ee173f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135549
@ -900,6 +900,13 @@ _prebuild_libs+= lib/libcom_err lib/libcrypt lib/libexpat \
|
|||||||
|
|
||||||
lib/libopie__L lib/libtacplus__L: lib/libmd__L
|
lib/libopie__L lib/libtacplus__L: lib/libmd__L
|
||||||
|
|
||||||
|
.if !defined(NO_BIND)
|
||||||
|
_prebuild_libs+= lib/libpthread
|
||||||
|
_generic_libs+= lib/bind
|
||||||
|
|
||||||
|
lib/bind__L: lib/libpthread__L
|
||||||
|
.endif
|
||||||
|
|
||||||
_generic_libs+= lib
|
_generic_libs+= lib
|
||||||
|
|
||||||
.if !defined(NOCRYPT)
|
.if !defined(NOCRYPT)
|
||||||
|
17
contrib/bind9/FREEBSD-Upgrade
Normal file
17
contrib/bind9/FREEBSD-Upgrade
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
# Bug trhodes@ and des@ to actually throw some text in here.
|
||||||
|
#
|
||||||
|
|
||||||
|
while read pattern ; do rm -rf $pattern ; done <FREEBSD-Xlist
|
||||||
|
|
||||||
|
sed -i.orig -e '/\/tests/d; /docutil/d;' configure.in Makefile.in */Makefile.in
|
||||||
|
|
||||||
|
autoconf253
|
||||||
|
|
||||||
|
autoheader253
|
||||||
|
|
||||||
|
./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man \
|
||||||
|
--enable-threads --enable-libbind --disable-ipv6 \
|
||||||
|
--enable-getifaddrs --disable-linux-caps \
|
||||||
|
--with-openssl=/usr --with-randomdev=/dev/random
|
@ -114,8 +114,10 @@ distribution:
|
|||||||
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
|
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
|
||||||
cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||||
${MTREE} ${DESTDIR}/etc/mtree
|
${MTREE} ${DESTDIR}/etc/mtree
|
||||||
|
.if 0
|
||||||
cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
${NAMEDB} ${DESTDIR}/etc/namedb
|
${NAMEDB} ${DESTDIR}/etc/namedb
|
||||||
|
.endif
|
||||||
cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
||||||
${PPPCNF} ${DESTDIR}/etc/ppp
|
${PPPCNF} ${DESTDIR}/etc/ppp
|
||||||
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
|
@ -9,6 +9,10 @@
|
|||||||
..
|
..
|
||||||
arpa
|
arpa
|
||||||
..
|
..
|
||||||
|
bind
|
||||||
|
..
|
||||||
|
bind9
|
||||||
|
..
|
||||||
bsnmp
|
bsnmp
|
||||||
..
|
..
|
||||||
c++
|
c++
|
||||||
@ -53,6 +57,10 @@
|
|||||||
wi
|
wi
|
||||||
..
|
..
|
||||||
..
|
..
|
||||||
|
dns
|
||||||
|
..
|
||||||
|
dst
|
||||||
|
..
|
||||||
fs
|
fs
|
||||||
autofs
|
autofs
|
||||||
..
|
..
|
||||||
@ -105,6 +113,10 @@
|
|||||||
..
|
..
|
||||||
isc
|
isc
|
||||||
..
|
..
|
||||||
|
isccc
|
||||||
|
..
|
||||||
|
isccfg
|
||||||
|
..
|
||||||
isofs
|
isofs
|
||||||
cd9660
|
cd9660
|
||||||
..
|
..
|
||||||
@ -113,6 +125,8 @@
|
|||||||
..
|
..
|
||||||
libmilter
|
libmilter
|
||||||
..
|
..
|
||||||
|
lwres
|
||||||
|
..
|
||||||
machine
|
machine
|
||||||
pc
|
pc
|
||||||
..
|
..
|
||||||
|
@ -31,12 +31,6 @@
|
|||||||
mail
|
mail
|
||||||
..
|
..
|
||||||
mtree
|
mtree
|
||||||
..
|
|
||||||
namedb
|
|
||||||
# leave commented out until buildworld/installworld can
|
|
||||||
# handle new user ids
|
|
||||||
# s uname=bind gname=bind mode=0750
|
|
||||||
# ..
|
|
||||||
..
|
..
|
||||||
ntp mode=0700
|
ntp mode=0700
|
||||||
..
|
..
|
||||||
|
@ -24,15 +24,15 @@
|
|||||||
|
|
||||||
SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \
|
SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \
|
||||||
libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
|
libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
|
||||||
${_libypclnt} libalias libarchive ${_libatm} ${_libbind} \
|
${_libypclnt} libalias libarchive ${_libatm} \
|
||||||
${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
|
${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
|
||||||
libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
|
libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
|
||||||
libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
|
libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
|
||||||
libipx libisc libkiconv libmagic libmenu ${_libmilter} ${_libmp} \
|
libipx libkiconv libmagic libmenu ${_libmilter} ${_libmp} \
|
||||||
${_libncp} ${_libngatm} libopie libpam libautofs libpanel libpcap \
|
${_libncp} ${_libngatm} libopie libpam libautofs libpanel libpcap \
|
||||||
${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
|
${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
|
||||||
${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
|
${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
|
||||||
libugidfw ${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz
|
libugidfw ${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz ${_bind}
|
||||||
|
|
||||||
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
|
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
|
||||||
_csu=csu/${MACHINE_ARCH}-elf
|
_csu=csu/${MACHINE_ARCH}-elf
|
||||||
@ -48,7 +48,7 @@ _libngatm= libngatm
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NO_BIND)
|
.if !defined(NO_BIND)
|
||||||
_libbind= libbind
|
_bind= bind
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NO_BLUETOOTH)
|
.if !defined(NO_BLUETOOTH)
|
||||||
|
5
lib/bind/Makefile
Normal file
5
lib/bind/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
SUBDIR= bind bind9 dns isc isccc isccfg lwres
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
80
lib/bind/bind/Makefile
Normal file
80
lib/bind/bind/Makefile
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/..
|
||||||
|
SRCDIR= ${BIND_DIR}/lib/bind
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
LIB= bind
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/bsd
|
||||||
|
SRCS+= ftruncate.c gettimeofday.c \
|
||||||
|
mktemp.c putenv.c readv.c setenv.c \
|
||||||
|
setitimer.c strcasecmp.c strdup.c \
|
||||||
|
strerror.c strpbrk.c strtoul.c utimes.c \
|
||||||
|
writev.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/dst
|
||||||
|
SRCS+= dst_api.c hmac_link.c md5_dgst.c support.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/inet
|
||||||
|
SRCS+= inet_addr.c inet_cidr_ntop.c inet_cidr_pton.c \
|
||||||
|
inet_data.c inet_lnaof.c inet_makeaddr.c \
|
||||||
|
inet_net_ntop.c inet_net_pton.c inet_neta.c \
|
||||||
|
inet_netof.c inet_network.c inet_ntoa.c \
|
||||||
|
inet_ntop.c inet_pton.c nsap_addr.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/irs
|
||||||
|
SRCS+= gethostent_r.c getnetgrent_r.c \
|
||||||
|
getprotoent_r.c getservent_r.c \
|
||||||
|
dns.c dns_ho.c dns_nw.c dns_pr.c \
|
||||||
|
dns_sv.c gai_strerror.c gen.c gen_ho.c \
|
||||||
|
gen_ng.c gen_nw.c gen_pr.c gen_sv.c \
|
||||||
|
getaddrinfo.c gethostent.c getnameinfo.c \
|
||||||
|
getnetent.c getnetent_r.c getnetgrent.c \
|
||||||
|
getprotoent.c getservent.c hesiod.c \
|
||||||
|
irp.c irp_ho.c irp_ng.c irp_nw.c \
|
||||||
|
irp_pr.c irp_sv.c irpmarshall.c irs_data.c \
|
||||||
|
lcl.c lcl_ho.c lcl_ng.c lcl_nw.c \
|
||||||
|
lcl_pr.c lcl_sv.c nis.c nul_ng.c util.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/isc
|
||||||
|
SRCS+= assertions.c base64.c bitncmp.c ctl_clnt.c \
|
||||||
|
ctl_p.c ctl_srvr.c ev_connects.c ev_files.c \
|
||||||
|
ev_streams.c ev_timers.c ev_waits.c \
|
||||||
|
eventlib.c heap.c hex.c logging.c \
|
||||||
|
memcluster.c movefile.c tree.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/nameser
|
||||||
|
SRCS+= ns_date.c ns_name.c ns_netint.c \
|
||||||
|
ns_parse.c ns_print.c ns_samedomain.c \
|
||||||
|
ns_sign.c ns_ttl.c ns_verify.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/resolv
|
||||||
|
SRCS+= herror.c res_comp.c res_data.c \
|
||||||
|
res_debug.c res_findzonecut.c res_init.c \
|
||||||
|
res_mkquery.c res_mkupdate.c res_query.c \
|
||||||
|
res_send.c res_sendsigned.c res_update.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/port/freebsd/include -I${SRCDIR}/include
|
||||||
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
|
||||||
|
|
||||||
|
DPADD= ${LIBPTHREAD}
|
||||||
|
LDADD= -lpthread
|
||||||
|
|
||||||
|
#INCS= ${SRCDIR}/include/isc/assertions.h \
|
||||||
|
# ${SRCDIR}/include/isc/ctl.h \
|
||||||
|
# ${SRCDIR}/include/isc/dst.h \
|
||||||
|
# ${SRCDIR}/include/isc/eventlib.h \
|
||||||
|
# ${SRCDIR}/include/isc/heap.h \
|
||||||
|
# ${SRCDIR}/include/isc/irpmarshall.h \
|
||||||
|
# ${SRCDIR}/include/isc/list.h \
|
||||||
|
# ${SRCDIR}/include/isc/logging.h \
|
||||||
|
# ${SRCDIR}/include/isc/memcluster.h \
|
||||||
|
# ${SRCDIR}/include/isc/misc.h \
|
||||||
|
# ${SRCDIR}/include/isc/tree.h
|
||||||
|
#
|
||||||
|
#INCSDIR= ${INCLUDEDIR}/isc
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
48
lib/bind/bind/config.h
Normal file
48
lib/bind/bind/config.h
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
/* config.h. Generated by configure. */
|
||||||
|
/* #undef _SOCKADDR_LEN */
|
||||||
|
#define HAVE_FCNTL_H 1
|
||||||
|
#define HAVE_PATHS_H 1
|
||||||
|
#define HAVE_SYS_TIMERS_H 1
|
||||||
|
/* #undef SYS_CDEFS_H */
|
||||||
|
/* #undef _POSIX_PTHREAD_SEMANTICS */
|
||||||
|
/* #undef POSIX_GETPWUID_R */
|
||||||
|
/* #undef POSIX_GETPWNAM_R */
|
||||||
|
/* #undef POSIX_GETGRGID_R */
|
||||||
|
/* #undef POSIX_GETGRNAM_R */
|
||||||
|
|
||||||
|
/* #undef NEED_SETGROUPENT */
|
||||||
|
/* #undef NEED_GETGROUPLIST */
|
||||||
|
|
||||||
|
/* define if prototype for getgrnam_r() is required */
|
||||||
|
/* #undef NEED_GETGRNAM_R */
|
||||||
|
/* #undef NEED_GETGRGID_R */
|
||||||
|
/* #undef NEED_GETGRENT_R */
|
||||||
|
#define NEED_SETGRENT_R 1
|
||||||
|
#define NEED_ENDGRENT_R 1
|
||||||
|
|
||||||
|
#define NEED_INNETGR_R 1
|
||||||
|
/* #undef NEED_SETNETGRENT_R */
|
||||||
|
#define NEED_ENDNETGRENT_R 1
|
||||||
|
|
||||||
|
/* #undef NEED_GETPWNAM_R */
|
||||||
|
/* #undef NEED_GETPWUID_R */
|
||||||
|
#define NEED_SETPWENT_R 1
|
||||||
|
#define NEED_SETPASSENT_R 1
|
||||||
|
#define NEED_SETPWENT_R 1
|
||||||
|
/* #undef NEED_GETPWENT_R */
|
||||||
|
#define NEED_ENDPWENT_R 1
|
||||||
|
|
||||||
|
/* #undef NEED_SETPASSENT */
|
||||||
|
|
||||||
|
#define HAS_PW_CLASS 1
|
||||||
|
|
||||||
|
/* Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
|
||||||
|
/* #undef SHUTUP_SPUTAUX */
|
||||||
|
#ifdef SHUTUP_SPUTAUX
|
||||||
|
struct __sFILE;
|
||||||
|
extern __inline int __sputaux(int _c, struct __sFILE *_p);
|
||||||
|
#endif
|
||||||
|
/* #undef BROKEN_IN6ADDR_INIT_MACROS */
|
||||||
|
#define HAVE_STRLCAT 1
|
397
lib/bind/bind/port_after.h
Normal file
397
lib/bind/bind/port_after.h
Normal file
@ -0,0 +1,397 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
#ifndef port_after_h
|
||||||
|
#define port_after_h
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/param.h>
|
||||||
|
#if (!defined(BSD)) || (BSD < 199306)
|
||||||
|
#include <sys/bitypes.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#undef NEED_PSELECT
|
||||||
|
#define HAVE_SA_LEN 1
|
||||||
|
#define HAVE_MINIMUM_IFREQ 1
|
||||||
|
#undef NEED_DAEMON
|
||||||
|
#undef NEED_STRSEP
|
||||||
|
#undef NEED_STRERROR
|
||||||
|
#define HAS_INET6_STRUCTS 1
|
||||||
|
#define HAVE_SIN6_SCOPE_ID 1
|
||||||
|
#undef NEED_IN6ADDR_ANY
|
||||||
|
#undef HAS_IN_ADDR6
|
||||||
|
#define HAVE_SOCKADDR_STORAGE 1
|
||||||
|
#undef NEED_GETTIMEOFDAY
|
||||||
|
#undef HAVE_STRNDUP
|
||||||
|
#undef USE_FIONBIO_IOCTL
|
||||||
|
#undef USE_SYSERROR_LIST
|
||||||
|
#undef INNETGR_ARGS
|
||||||
|
#undef SETNETGRENT_ARGS
|
||||||
|
#define USE_IFNAMELINKID 1
|
||||||
|
|
||||||
|
/* XXX sunos and cygwin needs O_NDELAY */
|
||||||
|
#define PORT_NONBLOCK O_NONBLOCK
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We need to know the IPv6 address family number even on IPv4-only systems.
|
||||||
|
* Note that this is NOT a protocol constant, and that if the system has its
|
||||||
|
* own AF_INET6, different from ours below, all of BIND's libraries and
|
||||||
|
* executables will need to be recompiled after the system <sys/socket.h>
|
||||||
|
* has had this type added. The type number below is correct on most BSD-
|
||||||
|
* derived systems for which AF_INET6 is defined.
|
||||||
|
*/
|
||||||
|
#ifndef AF_INET6
|
||||||
|
#define AF_INET6 24
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef PF_INET6
|
||||||
|
#define PF_INET6 AF_INET6
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAS_IN_ADDR6
|
||||||
|
/* Map to pre-RFC structure. */
|
||||||
|
#define in6_addr in_addr6
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAS_INET6_STRUCTS
|
||||||
|
/* Replace with structure from later rev of O/S if known. */
|
||||||
|
struct in6_addr {
|
||||||
|
u_int8_t s6_addr[16];
|
||||||
|
};
|
||||||
|
|
||||||
|
#define IN6ADDR_ANY_INIT \
|
||||||
|
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
|
||||||
|
|
||||||
|
#define IN6ADDR_LOOPBACK_INIT \
|
||||||
|
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}
|
||||||
|
|
||||||
|
/* Replace with structure from later rev of O/S if known. */
|
||||||
|
struct sockaddr_in6 {
|
||||||
|
#ifdef HAVE_SA_LEN
|
||||||
|
u_int8_t sin6_len; /* length of this struct */
|
||||||
|
u_int8_t sin6_family; /* AF_INET6 */
|
||||||
|
#else
|
||||||
|
u_int16_t sin6_family; /* AF_INET6 */
|
||||||
|
#endif
|
||||||
|
u_int16_t sin6_port; /* transport layer port # */
|
||||||
|
u_int32_t sin6_flowinfo; /* IPv6 flow information */
|
||||||
|
struct in6_addr sin6_addr; /* IPv6 address */
|
||||||
|
u_int32_t sin6_scope_id; /* set of interfaces for a scope */
|
||||||
|
};
|
||||||
|
#endif /* HAS_INET6_STRUCTS */
|
||||||
|
|
||||||
|
#ifdef BROKEN_IN6ADDR_INIT_MACROS
|
||||||
|
#undef IN6ADDR_ANY_INIT
|
||||||
|
#undef IN6ADDR_LOOPBACK_INIT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6ADDR_ANY_INIT
|
||||||
|
#ifdef s6_addr
|
||||||
|
#define IN6ADDR_ANY_INIT \
|
||||||
|
{{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}}
|
||||||
|
#else
|
||||||
|
#define IN6ADDR_ANY_INIT \
|
||||||
|
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef IN6ADDR_LOOPBACK_INIT
|
||||||
|
#ifdef s6_addr
|
||||||
|
#define IN6ADDR_LOOPBACK_INIT \
|
||||||
|
{{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}}
|
||||||
|
#else
|
||||||
|
#define IN6ADDR_LOOPBACK_INIT \
|
||||||
|
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_SOCKADDR_STORAGE
|
||||||
|
#define __SS_MAXSIZE 128
|
||||||
|
#define __SS_ALLIGSIZE (sizeof (long))
|
||||||
|
|
||||||
|
struct sockaddr_storage {
|
||||||
|
#ifdef HAVE_SA_LEN
|
||||||
|
u_int8_t ss_len; /* address length */
|
||||||
|
u_int8_t ss_family; /* address family */
|
||||||
|
char __ss_pad1[__SS_ALLIGSIZE - 2 * sizeof(u_int8_t)];
|
||||||
|
long __ss_align;
|
||||||
|
char __ss_pad2[__SS_MAXSIZE - 2 * __SS_ALLIGSIZE];
|
||||||
|
#else
|
||||||
|
u_int16_t ss_family; /* address family */
|
||||||
|
char __ss_pad1[__SS_ALLIGSIZE - sizeof(u_int16_t)];
|
||||||
|
long __ss_align;
|
||||||
|
char __ss_pad2[__SS_MAXSIZE - 2 * __SS_ALLIGSIZE];
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(HAS_INET6_STRUCTS) || defined(NEED_IN6ADDR_ANY)
|
||||||
|
#define in6addr_any isc_in6addr_any
|
||||||
|
extern const struct in6_addr in6addr_any;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* IN6_ARE_ADDR_EQUAL, IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_V4COMPAT and
|
||||||
|
* IN6_IS_ADDR_V4MAPPED are broken in glibc 2.1.
|
||||||
|
*/
|
||||||
|
#ifdef __GLIBC__
|
||||||
|
#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2)
|
||||||
|
#undef IN6_ARE_ADDR_EQUAL
|
||||||
|
#undef IN6_IS_ADDR_UNSPECIFIED
|
||||||
|
#undef IN6_IS_ADDR_V4COMPAT
|
||||||
|
#undef IN6_IS_ADDR_V4MAPPED
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_ARE_ADDR_EQUAL
|
||||||
|
#define IN6_ARE_ADDR_EQUAL(a,b) \
|
||||||
|
(memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_UNSPECIFIED
|
||||||
|
#define IN6_IS_ADDR_UNSPECIFIED(a) \
|
||||||
|
IN6_ARE_ADDR_EQUAL(a, &in6addr_any)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_LOOPBACK
|
||||||
|
extern const struct in6_addr isc_in6addr_loopback;
|
||||||
|
#define IN6_IS_ADDR_LOOPBACK(a) \
|
||||||
|
IN6_ARE_ADDR_EQUAL(a, &isc_in6addr_loopback)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_V4MAPPED
|
||||||
|
#define IN6_IS_ADDR_V4MAPPED(a) \
|
||||||
|
((a)->s6_addr[0] == 0x00 && (a)->s6_addr[1] == 0x00 && \
|
||||||
|
(a)->s6_addr[2] == 0x00 && (a)->s6_addr[3] == 0x00 && \
|
||||||
|
(a)->s6_addr[4] == 0x00 && (a)->s6_addr[5] == 0x00 && \
|
||||||
|
(a)->s6_addr[6] == 0x00 && (a)->s6_addr[9] == 0x00 && \
|
||||||
|
(a)->s6_addr[8] == 0x00 && (a)->s6_addr[9] == 0x00 && \
|
||||||
|
(a)->s6_addr[10] == 0xff && (a)->s6_addr[11] == 0xff)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_SITELOCAL
|
||||||
|
#define IN6_IS_ADDR_SITELOCAL(a) \
|
||||||
|
(((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_LINKLOCAL
|
||||||
|
#define IN6_IS_ADDR_LINKLOCAL(a) \
|
||||||
|
(((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_MULTICAST
|
||||||
|
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __IPV6_ADDR_MC_SCOPE
|
||||||
|
#define __IPV6_ADDR_MC_SCOPE(a) ((a)->s6_addr[1] & 0x0f)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __IPV6_ADDR_SCOPE_SITELOCAL
|
||||||
|
#define __IPV6_ADDR_SCOPE_SITELOCAL 0x05
|
||||||
|
#endif
|
||||||
|
#ifndef __IPV6_ADDR_SCOPE_ORGLOCAL
|
||||||
|
#define __IPV6_ADDR_SCOPE_ORGLOCAL 0x08
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_MC_SITELOCAL
|
||||||
|
#define IN6_IS_ADDR_MC_SITELOCAL(a) \
|
||||||
|
(IN6_IS_ADDR_MULTICAST(a) && \
|
||||||
|
(__IPV6_ADDR_MC_SCOPE(a) == __IPV6_ADDR_SCOPE_SITELOCAL))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN6_IS_ADDR_MC_ORGLOCAL
|
||||||
|
#define IN6_IS_ADDR_MC_ORGLOCAL(a) \
|
||||||
|
(IN6_IS_ADDR_MULTICAST(a) && \
|
||||||
|
(__IPV6_ADDR_MC_SCOPE(a) == __IPV6_ADDR_SCOPE_ORGLOCAL))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef INADDR_NONE
|
||||||
|
#define INADDR_NONE 0xffffffff
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MAXHOSTNAMELEN
|
||||||
|
#define MAXHOSTNAMELEN 256
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef INET6_ADDRSTRLEN
|
||||||
|
/* sizeof("aaaa:bbbb:cccc:dddd:eeee:ffff:123.123.123.123") */
|
||||||
|
#define INET6_ADDRSTRLEN 46
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MIN
|
||||||
|
#define MIN(x,y) (((x) <= (y)) ? (x) : (y))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MAX
|
||||||
|
#define MAX(x,y) (((x) >= (y)) ? (x) : (y))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_DAEMON
|
||||||
|
int daemon(int nochdir, int noclose);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_STRSEP
|
||||||
|
char * strsep(char **stringp, const char *delim);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ALIGN
|
||||||
|
#define ALIGN(p) (((unsigned int)(p) + (sizeof(int) - 1)) & ~(sizeof(int) - 1))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_SETGROUPENT
|
||||||
|
int setgroupent(int stayopen);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GETGROUPLIST
|
||||||
|
int getgrouplist(GETGROUPLIST_ARGS);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef POSIX_GETGRNAM_R
|
||||||
|
int
|
||||||
|
__posix_getgrnam_r(const char *, struct group *, char *, int, struct group **);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GETGRNAM_R
|
||||||
|
int
|
||||||
|
getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef POSIX_GETGRGID_R
|
||||||
|
int
|
||||||
|
__posix_getgrgid_r(gid_t, struct group *, char *, int, struct group **) ;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GETGRGID_R
|
||||||
|
int
|
||||||
|
getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GETGRENT_R
|
||||||
|
GROUP_R_RETURN getgrent_r(struct group *gptr, GROUP_R_ARGS);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_SETGRENT_R
|
||||||
|
GROUP_R_SET_RETURN setgrent_r(GROUP_R_ENT_ARGS);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_ENDGRENT_R
|
||||||
|
GROUP_R_END_RETURN endgrent_r(GROUP_R_ENT_ARGS);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_INNETGR_R
|
||||||
|
NGR_R_RETURN
|
||||||
|
innetgr_r(const char *, const char *, const char *, const char *);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_SETNETGRENT_R
|
||||||
|
#ifdef NGR_R_ENT_ARGS
|
||||||
|
NGR_R_SET_RETURN setnetgrent_r(const char *netgroup, NGR_R_ENT_ARGS);
|
||||||
|
#else
|
||||||
|
NGR_R_SET_RETURN setnetgrent_r(const char *netgroup);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_ENDNETGRENT_R
|
||||||
|
#ifdef NGR_R_ENT_ARGS
|
||||||
|
NGR_R_END_RETURN endnetgrent_r(NGR_R_ENT_ARGS);
|
||||||
|
#else
|
||||||
|
NGR_R_END_RETURN endnetgrent_r(void);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef POSIX_GETPWNAM_R
|
||||||
|
int
|
||||||
|
__posix_getpwnam_r(const char *login, struct passwd *pwptr,
|
||||||
|
char *buf, size_t buflen, struct passwd **result);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GETPWNAM_R
|
||||||
|
int
|
||||||
|
getpwnam_r(const char *login, struct passwd *pwptr,
|
||||||
|
char *buf, size_t buflen, struct passwd **result);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef POSIX_GETPWUID_R
|
||||||
|
int
|
||||||
|
__posix_getpwuid_r(uid_t uid, struct passwd *pwptr,
|
||||||
|
char *buf, int buflen, struct passwd **result);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GETPWUID_R
|
||||||
|
int
|
||||||
|
getpwuid_r(uid_t uid, struct passwd *pwptr,
|
||||||
|
char *buf, size_t buflen, struct passwd **result);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_SETPWENT_R
|
||||||
|
#ifdef PASS_R_ENT_ARGS
|
||||||
|
PASS_R_SET_RETURN setpwent_r(PASS_R_ENT_ARGS);
|
||||||
|
#else
|
||||||
|
PASS_R_SET_RETURN setpwent_r(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_SETPASSENT_R
|
||||||
|
#ifdef PASS_R_ENT_ARGS
|
||||||
|
PASS_R_SET_RETURN setpassent_r(int stayopen, PASS_R_ENT_ARGS);
|
||||||
|
#else
|
||||||
|
PASS_R_SET_RETURN setpassent_r(int stayopen);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GETPWENT_R
|
||||||
|
PASS_R_RETURN getpwent_r(struct passwd *pwptr, PASS_R_ARGS);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_ENDPWENT_R
|
||||||
|
void endpwent_r(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_SETPASSENT
|
||||||
|
int setpassent(int stayopen);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define gettimeofday isc__gettimeofday
|
||||||
|
#ifdef NEED_GETTIMEOFDAY
|
||||||
|
int isc__gettimeofday(struct timeval *tvp, struct _TIMEZONE *tzp);
|
||||||
|
#else
|
||||||
|
int isc__gettimeofday(struct timeval *tp, struct timezone *tzp);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int getnetgrent(char **machinep, char **userp, char **domainp);
|
||||||
|
|
||||||
|
int getnetgrent_r(char **machinep, char **userp, char **domainp, NGR_R_ARGS);
|
||||||
|
|
||||||
|
#ifdef SETNETGRENT_ARGS
|
||||||
|
void setnetgrent(SETNETGRENT_ARGS);
|
||||||
|
#else
|
||||||
|
void setnetgrent(const char *netgroup);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void endnetgrent(void);
|
||||||
|
|
||||||
|
#ifdef INNETGR_ARGS
|
||||||
|
int innetgr(INNETGR_ARGS);
|
||||||
|
#else
|
||||||
|
int innetgr(const char *netgroup, const char *machine,
|
||||||
|
const char *user, const char *domain);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NGR_R_ENT_ARGS
|
||||||
|
NGR_R_SET_RETURN
|
||||||
|
setnetgrent_r(const char *netgroup, NGR_R_ENT_ARGS);
|
||||||
|
#else
|
||||||
|
NGR_R_SET_RETURN
|
||||||
|
setnetgrent_r(const char *netgroup);
|
||||||
|
#endif
|
||||||
|
#endif
|
140
lib/bind/bind/port_before.h
Normal file
140
lib/bind/bind/port_before.h
Normal file
@ -0,0 +1,140 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
#ifndef port_before_h
|
||||||
|
#define port_before_h
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
struct group; /* silence warning */
|
||||||
|
struct passwd; /* silence warning */
|
||||||
|
struct timeval; /* silence warning */
|
||||||
|
struct timezone; /* silence warning */
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_TIMERS_H
|
||||||
|
#include <sys/timers.h>
|
||||||
|
#endif
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
|
|
||||||
|
#undef WANT_IRS_GR
|
||||||
|
#undef WANT_IRS_NIS
|
||||||
|
#undef WANT_IRS_PW
|
||||||
|
|
||||||
|
#undef BSD_COMP
|
||||||
|
|
||||||
|
#define DO_PTHREADS 1
|
||||||
|
#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups
|
||||||
|
#define GETNETBYADDR_ADDR_T long
|
||||||
|
#define SETPWENT_VOID 1
|
||||||
|
#undef SETGRENT_VOID
|
||||||
|
|
||||||
|
#define NET_R_ARGS char *buf, int buflen
|
||||||
|
#define NET_R_BAD NULL
|
||||||
|
#define NET_R_COPY buf, buflen
|
||||||
|
#define NET_R_COPY_ARGS NET_R_ARGS
|
||||||
|
#define NET_R_END_RESULT(x) /*empty*/
|
||||||
|
#define NET_R_END_RETURN void
|
||||||
|
#undef NET_R_ENT_ARGS /*empty*/
|
||||||
|
#define NET_R_OK nptr
|
||||||
|
#define NET_R_RETURN struct netent *
|
||||||
|
#undef NET_R_SET_RESULT /*empty*/
|
||||||
|
#undef NET_R_SETANSWER
|
||||||
|
#define NET_R_SET_RETURN void
|
||||||
|
#undef NETENT_DATA
|
||||||
|
|
||||||
|
|
||||||
|
#define GROUP_R_SET_RETURN void
|
||||||
|
#undef GROUP_R_SET_RESULT /*empty*/
|
||||||
|
#define GROUP_R_END_RETURN void
|
||||||
|
#define GROUP_R_END_RESULT(x) /*empty*/
|
||||||
|
|
||||||
|
#define GROUP_R_ENT_ARGS void
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define HOST_R_ARGS char *buf, int buflen, int *h_errnop
|
||||||
|
#define HOST_R_BAD NULL
|
||||||
|
#define HOST_R_COPY buf, buflen
|
||||||
|
#define HOST_R_COPY_ARGS char *buf, int buflen
|
||||||
|
#define HOST_R_END_RESULT(x) /*empty*/
|
||||||
|
#define HOST_R_END_RETURN void
|
||||||
|
#undef HOST_R_ENT_ARGS /*empty*/
|
||||||
|
#define HOST_R_ERRNO *h_errnop = h_errno
|
||||||
|
#define HOST_R_OK hptr
|
||||||
|
#define HOST_R_RETURN struct hostent *
|
||||||
|
#undef HOST_R_SETANSWER
|
||||||
|
#undef HOST_R_SET_RESULT
|
||||||
|
#define HOST_R_SET_RETURN void
|
||||||
|
#undef HOSTENT_DATA
|
||||||
|
|
||||||
|
#define NGR_R_ARGS char *buf, int buflen
|
||||||
|
#define NGR_R_BAD (0)
|
||||||
|
#define NGR_R_COPY buf, buflen
|
||||||
|
#define NGR_R_COPY_ARGS NGR_R_ARGS
|
||||||
|
#define NGR_R_END_RESULT(x) /*empty*/
|
||||||
|
#define NGR_R_END_RETURN void
|
||||||
|
#undef NGR_R_ENT_ARGS /*empty*/
|
||||||
|
#define NGR_R_OK 1
|
||||||
|
#define NGR_R_RETURN int
|
||||||
|
#undef NGR_R_SET_RESULT /*empty*/
|
||||||
|
#define NGR_R_SET_RETURN void
|
||||||
|
|
||||||
|
|
||||||
|
#define PROTO_R_ARGS char *buf, int buflen
|
||||||
|
#define PROTO_R_BAD NULL
|
||||||
|
#define PROTO_R_COPY buf, buflen
|
||||||
|
#define PROTO_R_COPY_ARGS PROTO_R_ARGS
|
||||||
|
#define PROTO_R_END_RESULT(x) /*empty*/
|
||||||
|
#define PROTO_R_END_RETURN void
|
||||||
|
#undef PROTO_R_ENT_ARGS /*empty*/
|
||||||
|
#define PROTO_R_OK pptr
|
||||||
|
#undef PROTO_R_SETANSWER
|
||||||
|
#define PROTO_R_RETURN struct protoent *
|
||||||
|
#undef PROTO_R_SET_RESULT
|
||||||
|
#define PROTO_R_SET_RETURN void
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define PASS_R_END_RESULT(x) /*empty*/
|
||||||
|
#define PASS_R_END_RETURN void
|
||||||
|
#undef PASS_R_ENT_ARGS
|
||||||
|
|
||||||
|
|
||||||
|
#undef PASS_R_SET_RESULT /*empty*/
|
||||||
|
#define PASS_R_SET_RETURN void
|
||||||
|
|
||||||
|
#define SERV_R_ARGS char *buf, int buflen
|
||||||
|
#define SERV_R_BAD NULL
|
||||||
|
#define SERV_R_COPY buf, buflen
|
||||||
|
#define SERV_R_COPY_ARGS SERV_R_ARGS
|
||||||
|
#define SERV_R_END_RESULT(x) /*empty*/
|
||||||
|
#define SERV_R_END_RETURN void
|
||||||
|
#undef SERV_R_ENT_ARGS /*empty*/
|
||||||
|
#define SERV_R_OK sptr
|
||||||
|
#undef SERV_R_SETANSWER
|
||||||
|
#define SERV_R_RETURN struct servent *
|
||||||
|
#undef SERV_R_SET_RESULT
|
||||||
|
#define SERV_R_SET_RETURN void
|
||||||
|
|
||||||
|
|
||||||
|
#define DE_CONST(konst, var) \
|
||||||
|
do { \
|
||||||
|
union { const void *k; void *v; } _u; \
|
||||||
|
_u.k = konst; \
|
||||||
|
var = _u.v; \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define UNUSED(x) (x) = (x)
|
||||||
|
|
||||||
|
#undef NEED_SOLARIS_BITTYPES
|
||||||
|
#define ISC_SOCKLEN_T socklen_t
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define ISC_FORMAT_PRINTF(fmt, args) \
|
||||||
|
__attribute__((__format__(__printf__, fmt, args)))
|
||||||
|
#else
|
||||||
|
#define ISC_FORMAT_PRINTF(fmt, args)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
25
lib/bind/bind9/Makefile
Normal file
25
lib/bind/bind9/Makefile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/..
|
||||||
|
SRCDIR= ${BIND_DIR}/lib/bind9
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
LIB= bind9
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS= check.c getaddresses.c version.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -I${.CURDIR}/..
|
||||||
|
|
||||||
|
DPADD= ${LIBPTHREAD}
|
||||||
|
LDADD= -lpthread
|
||||||
|
|
||||||
|
INCS= ${SRCDIR}/include/bind9/check.h \
|
||||||
|
${SRCDIR}/include/bind9/getaddresses.h \
|
||||||
|
${SRCDIR}/include/bind9/version.h
|
||||||
|
|
||||||
|
INCSDIR= ${INCLUDEDIR}/bind9
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
@ -1,3 +1,5 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
/* config.h. Generated by configure. */
|
/* config.h. Generated by configure. */
|
||||||
/* config.h.in. Generated from configure.in by autoheader. */
|
/* config.h.in. Generated from configure.in by autoheader. */
|
||||||
/*
|
/*
|
||||||
@ -19,8 +21,6 @@
|
|||||||
|
|
||||||
/* $Id: acconfig.h,v 1.35.2.4.2.8 2004/05/21 08:24:04 marka Exp $ */
|
/* $Id: acconfig.h,v 1.35.2.4.2.8 2004/05/21 08:24:04 marka Exp $ */
|
||||||
|
|
||||||
/* $FreeBSD$ */
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*** This file is not to be included by any public header files, because
|
*** This file is not to be included by any public header files, because
|
||||||
*** it does not get installed.
|
*** it does not get installed.
|
54
lib/bind/config.mk
Normal file
54
lib/bind/config.mk
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
CFLAGS+= -DVERSION='"9.3.0rc4"'
|
||||||
|
|
||||||
|
.if defined(SRCDIR) && exists(${SRCDIR}/api)
|
||||||
|
.include "${SRCDIR}/api"
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(LIB_BIND_DIR) && exists(${LIB_BIND_DIR}/config.h)
|
||||||
|
CFLAGS+= -I${LIB_BIND_DIR}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(LIBINTERFACE)
|
||||||
|
CFLAGS+= -DLIBINTERFACE=${LIBINTERFACE}
|
||||||
|
SHLIB_MAJOR= ${LIBINTERFACE}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(LIBREVISION)
|
||||||
|
CFLAGS+= -DLIBREVISION=${LIBREVISION}
|
||||||
|
SHLIB_MINOR= ${LIBINTERFACE}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(LIBAGE)
|
||||||
|
CFLAGS+= -DLIBAGE=${LIBAGE}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
CFLAGS+= -DHAVE_CONFIG_H
|
||||||
|
|
||||||
|
# GSSAPI support is incomplete in 9.3.0rc4
|
||||||
|
#.if !defined(NO_KERBEROS)
|
||||||
|
#CFLAGS+= -DGSSAPI
|
||||||
|
#.endif
|
||||||
|
|
||||||
|
.if !defined(NOINET6)
|
||||||
|
CFLAGS+= -DWANT_IPV6
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == sparc64
|
||||||
|
CFLAGS+= -DWORDS_BIGENDIAN
|
||||||
|
.endif
|
||||||
|
|
||||||
|
LOCALSTATEDIR= /var/run
|
||||||
|
SYSCONFDIR= /etc
|
||||||
|
|
||||||
|
CFLAGS+= -DNS_LOCALSTATEDIR='"${LOCALSTATEDIR}"'
|
||||||
|
CFLAGS+= -DNS_SYSCONFDIR='"${SYSCONFDIR}"'
|
||||||
|
CFLAGS+= -DNAMED_CONFFILE='"${SYSCONFDIR}/named.conf"'
|
||||||
|
CFLAGS+= -DRNDC_CONFFILE='"${SYSCONFDIR}/rndc.conf"'
|
||||||
|
CFLAGS+= -DRNDC_KEYFILE='"${SYSCONFDIR}/rndc.key"'
|
||||||
|
|
||||||
|
BIND_DPADD= ${LIBBIND9} ${LIBDNS} ${LIBISCCC} ${LIBISCCFG} \
|
||||||
|
${LIBISC} ${LIBLWRES} ${LIBCRYPTO} ${LIBPTHREAD}
|
||||||
|
BIND_LDADD= -lbind9 -ldns -lisccc -lisccfg -lisc -llwres \
|
||||||
|
-lcrypto -lpthread
|
145
lib/bind/dns/Makefile
Normal file
145
lib/bind/dns/Makefile
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/..
|
||||||
|
SRCDIR= ${BIND_DIR}/lib/dns
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
LIB= dns
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/sec/dst
|
||||||
|
SRCS+= dst_api.c \
|
||||||
|
dst_lib.c dst_parse.c \
|
||||||
|
dst_result.c gssapi_link.c \
|
||||||
|
gssapictx.c hmac_link.c \
|
||||||
|
key.c openssl_link.c \
|
||||||
|
openssldh_link.c openssldsa_link.c \
|
||||||
|
opensslrsa_link.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= acl.c adb.c byaddr.c \
|
||||||
|
cache.c callbacks.c compress.c \
|
||||||
|
db.c dbiterator.c dbtable.c diff.c dispatch.c \
|
||||||
|
dnssec.c ds.c forward.c journal.c keytable.c \
|
||||||
|
lib.c log.c lookup.c \
|
||||||
|
master.c masterdump.c message.c \
|
||||||
|
name.c ncache.c nsec.c order.c peer.c portlist.c \
|
||||||
|
rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c \
|
||||||
|
rdatalist.c \
|
||||||
|
rdataset.c rdatasetiter.c rdataslab.c request.c \
|
||||||
|
resolver.c result.c rootns.c sdb.c soa.c ssu.c \
|
||||||
|
stats.c tcpmsg.c time.c timer.c tkey.c \
|
||||||
|
tsig.c ttl.c validator.c \
|
||||||
|
version.c view.c xfrin.c zone.c zonekey.c zt.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/sec/dst/include -I${SRCDIR}/include -I${SRCDIR}
|
||||||
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
|
||||||
|
|
||||||
|
DPADD= ${LIBPTHREAD}
|
||||||
|
LDADD= -lpthread
|
||||||
|
|
||||||
|
DNSINCS= ${SRCDIR}/include/dns/acl.h \
|
||||||
|
${SRCDIR}/include/dns/adb.h \
|
||||||
|
${SRCDIR}/include/dns/bit.h \
|
||||||
|
${SRCDIR}/include/dns/byaddr.h \
|
||||||
|
${SRCDIR}/include/dns/cache.h \
|
||||||
|
${SRCDIR}/include/dns/callbacks.h \
|
||||||
|
${SRCDIR}/include/dns/cert.h \
|
||||||
|
${SRCDIR}/include/dns/compress.h \
|
||||||
|
${SRCDIR}/include/dns/db.h \
|
||||||
|
${SRCDIR}/include/dns/dbiterator.h \
|
||||||
|
${SRCDIR}/include/dns/dbtable.h \
|
||||||
|
${SRCDIR}/include/dns/diff.h \
|
||||||
|
${SRCDIR}/include/dns/dispatch.h \
|
||||||
|
${SRCDIR}/include/dns/dnssec.h \
|
||||||
|
${SRCDIR}/include/dns/ds.h \
|
||||||
|
${SRCDIR}/include/dns/events.h \
|
||||||
|
${SRCDIR}/include/dns/fixedname.h \
|
||||||
|
${SRCDIR}/include/dns/forward.h \
|
||||||
|
${SRCDIR}/include/dns/journal.h \
|
||||||
|
${SRCDIR}/include/dns/keyflags.h \
|
||||||
|
${SRCDIR}/include/dns/keytable.h \
|
||||||
|
${SRCDIR}/include/dns/keyvalues.h \
|
||||||
|
${SRCDIR}/include/dns/lib.h \
|
||||||
|
${SRCDIR}/include/dns/log.h \
|
||||||
|
${SRCDIR}/include/dns/lookup.h \
|
||||||
|
${SRCDIR}/include/dns/master.h \
|
||||||
|
${SRCDIR}/include/dns/masterdump.h \
|
||||||
|
${SRCDIR}/include/dns/message.h \
|
||||||
|
${SRCDIR}/include/dns/name.h \
|
||||||
|
${SRCDIR}/include/dns/ncache.h \
|
||||||
|
${SRCDIR}/include/dns/nsec.h \
|
||||||
|
${SRCDIR}/include/dns/opcode.h \
|
||||||
|
${SRCDIR}/include/dns/order.h \
|
||||||
|
${SRCDIR}/include/dns/peer.h \
|
||||||
|
${SRCDIR}/include/dns/portlist.h \
|
||||||
|
${SRCDIR}/include/dns/rbt.h \
|
||||||
|
${SRCDIR}/include/dns/rcode.h \
|
||||||
|
${SRCDIR}/include/dns/rdata.h \
|
||||||
|
${SRCDIR}/include/dns/rdatasetiter.h \
|
||||||
|
${SRCDIR}/include/dns/rdataclass.h \
|
||||||
|
${SRCDIR}/include/dns/rdatalist.h \
|
||||||
|
${SRCDIR}/include/dns/rdataset.h \
|
||||||
|
${SRCDIR}/include/dns/rdataslab.h \
|
||||||
|
${SRCDIR}/include/dns/rdatatype.h \
|
||||||
|
${SRCDIR}/include/dns/request.h \
|
||||||
|
${SRCDIR}/include/dns/resolver.h \
|
||||||
|
${SRCDIR}/include/dns/result.h \
|
||||||
|
${SRCDIR}/include/dns/rootns.h \
|
||||||
|
${SRCDIR}/include/dns/sdb.h \
|
||||||
|
${SRCDIR}/include/dns/secalg.h \
|
||||||
|
${SRCDIR}/include/dns/secproto.h \
|
||||||
|
${SRCDIR}/include/dns/soa.h \
|
||||||
|
${SRCDIR}/include/dns/ssu.h \
|
||||||
|
${SRCDIR}/include/dns/stats.h \
|
||||||
|
${SRCDIR}/include/dns/tcpmsg.h \
|
||||||
|
${SRCDIR}/include/dns/time.h \
|
||||||
|
${SRCDIR}/include/dns/timer.h \
|
||||||
|
${SRCDIR}/include/dns/tkey.h \
|
||||||
|
${SRCDIR}/include/dns/tsig.h \
|
||||||
|
${SRCDIR}/include/dns/ttl.h \
|
||||||
|
${SRCDIR}/include/dns/types.h \
|
||||||
|
${SRCDIR}/include/dns/validator.h \
|
||||||
|
${SRCDIR}/include/dns/version.h \
|
||||||
|
${SRCDIR}/include/dns/view.h \
|
||||||
|
${SRCDIR}/include/dns/xfrin.h \
|
||||||
|
${SRCDIR}/include/dns/zone.h \
|
||||||
|
${SRCDIR}/include/dns/zonekey.h \
|
||||||
|
${SRCDIR}/include/dns/zt.h \
|
||||||
|
dns/enumtype.h \
|
||||||
|
dns/enumclass.h \
|
||||||
|
dns/rdatastruct.h
|
||||||
|
|
||||||
|
DNSINCSDIR= ${INCLUDEDIR}/dns
|
||||||
|
|
||||||
|
DSTINCS= ${SRCDIR}/sec/dst/include/dst/dst.h \
|
||||||
|
${SRCDIR}/sec/dst/include/dst/gssapi.h \
|
||||||
|
${SRCDIR}/sec/dst/include/dst/lib.h \
|
||||||
|
${SRCDIR}/sec/dst/include/dst/result.h \
|
||||||
|
|
||||||
|
DSTINCSDIR= ${INCLUDEDIR}/dst
|
||||||
|
|
||||||
|
INCSGROUPS= DNSINCS DSTINCS
|
||||||
|
|
||||||
|
.if defined(MAINTAINER_MODE)
|
||||||
|
generate: ${.CURDIR}/dns/enumtype.h ${.CURDIR}/dns/enumclass.h \
|
||||||
|
${.CURDIR}/dns/rdatastruct.h ${.CURDIR}/code.h
|
||||||
|
|
||||||
|
gen: ${SRCDIR}/gen.c
|
||||||
|
|
||||||
|
${.CURDIR}/dns/enumtype.h: gen
|
||||||
|
(cd ${SRCDIR} && ${.OBJDIR}/gen -t) >${.TARGET}
|
||||||
|
|
||||||
|
${.CURDIR}/dns/enumclass.h: gen
|
||||||
|
(cd ${SRCDIR} && ${.OBJDIR}/gen -c) >${.TARGET}
|
||||||
|
|
||||||
|
${.CURDIR}/dns/rdatastruct.h: gen
|
||||||
|
(cd ${SRCDIR} && ${.OBJDIR}/gen -i -P rdata/rdatastructpre.h \
|
||||||
|
-S rdata/rdatastructsuf.h) >${.TARGET}
|
||||||
|
|
||||||
|
${.CURDIR}/code.h: gen
|
||||||
|
(cd ${SRCDIR} && ${.OBJDIR}/gen) >${.TARGET}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
1598
lib/bind/dns/code.h
Normal file
1598
lib/bind/dns/code.h
Normal file
File diff suppressed because it is too large
Load Diff
48
lib/bind/dns/dns/enumclass.h
Normal file
48
lib/bind/dns/dns/enumclass.h
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 1998-2003 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/***************
|
||||||
|
***************
|
||||||
|
*************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c.
|
||||||
|
*************** DO NOT EDIT!
|
||||||
|
***************
|
||||||
|
***************/
|
||||||
|
|
||||||
|
#ifndef DNS_ENUMCLASS_H
|
||||||
|
#define DNS_ENUMCLASS_H 1
|
||||||
|
|
||||||
|
enum {
|
||||||
|
dns_rdataclass_reserved0 = 0,
|
||||||
|
#define dns_rdataclass_reserved0 \
|
||||||
|
((dns_rdataclass_t)dns_rdataclass_reserved0)
|
||||||
|
dns_rdataclass_in = 1,
|
||||||
|
#define dns_rdataclass_in ((dns_rdataclass_t)dns_rdataclass_in)
|
||||||
|
dns_rdataclass_ch = 3,
|
||||||
|
#define dns_rdataclass_ch ((dns_rdataclass_t)dns_rdataclass_ch)
|
||||||
|
dns_rdataclass_chaos = 3,
|
||||||
|
#define dns_rdataclass_chaos ((dns_rdataclass_t)dns_rdataclass_chaos)
|
||||||
|
dns_rdataclass_hs = 4,
|
||||||
|
#define dns_rdataclass_hs ((dns_rdataclass_t)dns_rdataclass_hs)
|
||||||
|
dns_rdataclass_none = 254,
|
||||||
|
#define dns_rdataclass_none ((dns_rdataclass_t)dns_rdataclass_none)
|
||||||
|
dns_rdataclass_any = 255
|
||||||
|
#define dns_rdataclass_any ((dns_rdataclass_t)dns_rdataclass_any)
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* DNS_ENUMCLASS_H */
|
140
lib/bind/dns/dns/enumtype.h
Normal file
140
lib/bind/dns/dns/enumtype.h
Normal file
@ -0,0 +1,140 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 1998-2003 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/***************
|
||||||
|
***************
|
||||||
|
*************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c.
|
||||||
|
*************** DO NOT EDIT!
|
||||||
|
***************
|
||||||
|
***************/
|
||||||
|
|
||||||
|
#ifndef DNS_ENUMTYPE_H
|
||||||
|
#define DNS_ENUMTYPE_H 1
|
||||||
|
|
||||||
|
enum {
|
||||||
|
dns_rdatatype_none = 0,
|
||||||
|
dns_rdatatype_a = 1,
|
||||||
|
dns_rdatatype_ns = 2,
|
||||||
|
dns_rdatatype_md = 3,
|
||||||
|
dns_rdatatype_mf = 4,
|
||||||
|
dns_rdatatype_cname = 5,
|
||||||
|
dns_rdatatype_soa = 6,
|
||||||
|
dns_rdatatype_mb = 7,
|
||||||
|
dns_rdatatype_mg = 8,
|
||||||
|
dns_rdatatype_mr = 9,
|
||||||
|
dns_rdatatype_null = 10,
|
||||||
|
dns_rdatatype_wks = 11,
|
||||||
|
dns_rdatatype_ptr = 12,
|
||||||
|
dns_rdatatype_hinfo = 13,
|
||||||
|
dns_rdatatype_minfo = 14,
|
||||||
|
dns_rdatatype_mx = 15,
|
||||||
|
dns_rdatatype_txt = 16,
|
||||||
|
dns_rdatatype_rp = 17,
|
||||||
|
dns_rdatatype_afsdb = 18,
|
||||||
|
dns_rdatatype_x25 = 19,
|
||||||
|
dns_rdatatype_isdn = 20,
|
||||||
|
dns_rdatatype_rt = 21,
|
||||||
|
dns_rdatatype_nsap = 22,
|
||||||
|
dns_rdatatype_nsap_ptr = 23,
|
||||||
|
dns_rdatatype_sig = 24,
|
||||||
|
dns_rdatatype_key = 25,
|
||||||
|
dns_rdatatype_px = 26,
|
||||||
|
dns_rdatatype_gpos = 27,
|
||||||
|
dns_rdatatype_aaaa = 28,
|
||||||
|
dns_rdatatype_loc = 29,
|
||||||
|
dns_rdatatype_nxt = 30,
|
||||||
|
dns_rdatatype_srv = 33,
|
||||||
|
dns_rdatatype_naptr = 35,
|
||||||
|
dns_rdatatype_kx = 36,
|
||||||
|
dns_rdatatype_cert = 37,
|
||||||
|
dns_rdatatype_a6 = 38,
|
||||||
|
dns_rdatatype_dname = 39,
|
||||||
|
dns_rdatatype_opt = 41,
|
||||||
|
dns_rdatatype_apl = 42,
|
||||||
|
dns_rdatatype_ds = 43,
|
||||||
|
dns_rdatatype_sshfp = 44,
|
||||||
|
dns_rdatatype_rrsig = 46,
|
||||||
|
dns_rdatatype_nsec = 47,
|
||||||
|
dns_rdatatype_dnskey = 48,
|
||||||
|
dns_rdatatype_unspec = 103,
|
||||||
|
dns_rdatatype_tkey = 249,
|
||||||
|
dns_rdatatype_tsig = 250,
|
||||||
|
dns_rdatatype_dlv = 65323,
|
||||||
|
dns_rdatatype_ixfr = 251,
|
||||||
|
dns_rdatatype_axfr = 252,
|
||||||
|
dns_rdatatype_mailb = 253,
|
||||||
|
dns_rdatatype_maila = 254,
|
||||||
|
dns_rdatatype_any = 255
|
||||||
|
};
|
||||||
|
|
||||||
|
#define dns_rdatatype_none ((dns_rdatatype_t)dns_rdatatype_none)
|
||||||
|
#define dns_rdatatype_a ((dns_rdatatype_t)dns_rdatatype_a)
|
||||||
|
#define dns_rdatatype_ns ((dns_rdatatype_t)dns_rdatatype_ns)
|
||||||
|
#define dns_rdatatype_md ((dns_rdatatype_t)dns_rdatatype_md)
|
||||||
|
#define dns_rdatatype_mf ((dns_rdatatype_t)dns_rdatatype_mf)
|
||||||
|
#define dns_rdatatype_cname ((dns_rdatatype_t)dns_rdatatype_cname)
|
||||||
|
#define dns_rdatatype_soa ((dns_rdatatype_t)dns_rdatatype_soa)
|
||||||
|
#define dns_rdatatype_mb ((dns_rdatatype_t)dns_rdatatype_mb)
|
||||||
|
#define dns_rdatatype_mg ((dns_rdatatype_t)dns_rdatatype_mg)
|
||||||
|
#define dns_rdatatype_mr ((dns_rdatatype_t)dns_rdatatype_mr)
|
||||||
|
#define dns_rdatatype_null ((dns_rdatatype_t)dns_rdatatype_null)
|
||||||
|
#define dns_rdatatype_wks ((dns_rdatatype_t)dns_rdatatype_wks)
|
||||||
|
#define dns_rdatatype_ptr ((dns_rdatatype_t)dns_rdatatype_ptr)
|
||||||
|
#define dns_rdatatype_hinfo ((dns_rdatatype_t)dns_rdatatype_hinfo)
|
||||||
|
#define dns_rdatatype_minfo ((dns_rdatatype_t)dns_rdatatype_minfo)
|
||||||
|
#define dns_rdatatype_mx ((dns_rdatatype_t)dns_rdatatype_mx)
|
||||||
|
#define dns_rdatatype_txt ((dns_rdatatype_t)dns_rdatatype_txt)
|
||||||
|
#define dns_rdatatype_rp ((dns_rdatatype_t)dns_rdatatype_rp)
|
||||||
|
#define dns_rdatatype_afsdb ((dns_rdatatype_t)dns_rdatatype_afsdb)
|
||||||
|
#define dns_rdatatype_x25 ((dns_rdatatype_t)dns_rdatatype_x25)
|
||||||
|
#define dns_rdatatype_isdn ((dns_rdatatype_t)dns_rdatatype_isdn)
|
||||||
|
#define dns_rdatatype_rt ((dns_rdatatype_t)dns_rdatatype_rt)
|
||||||
|
#define dns_rdatatype_nsap ((dns_rdatatype_t)dns_rdatatype_nsap)
|
||||||
|
#define dns_rdatatype_nsap_ptr ((dns_rdatatype_t)dns_rdatatype_nsap_ptr)
|
||||||
|
#define dns_rdatatype_sig ((dns_rdatatype_t)dns_rdatatype_sig)
|
||||||
|
#define dns_rdatatype_key ((dns_rdatatype_t)dns_rdatatype_key)
|
||||||
|
#define dns_rdatatype_px ((dns_rdatatype_t)dns_rdatatype_px)
|
||||||
|
#define dns_rdatatype_gpos ((dns_rdatatype_t)dns_rdatatype_gpos)
|
||||||
|
#define dns_rdatatype_aaaa ((dns_rdatatype_t)dns_rdatatype_aaaa)
|
||||||
|
#define dns_rdatatype_loc ((dns_rdatatype_t)dns_rdatatype_loc)
|
||||||
|
#define dns_rdatatype_nxt ((dns_rdatatype_t)dns_rdatatype_nxt)
|
||||||
|
#define dns_rdatatype_srv ((dns_rdatatype_t)dns_rdatatype_srv)
|
||||||
|
#define dns_rdatatype_naptr ((dns_rdatatype_t)dns_rdatatype_naptr)
|
||||||
|
#define dns_rdatatype_kx ((dns_rdatatype_t)dns_rdatatype_kx)
|
||||||
|
#define dns_rdatatype_cert ((dns_rdatatype_t)dns_rdatatype_cert)
|
||||||
|
#define dns_rdatatype_a6 ((dns_rdatatype_t)dns_rdatatype_a6)
|
||||||
|
#define dns_rdatatype_dname ((dns_rdatatype_t)dns_rdatatype_dname)
|
||||||
|
#define dns_rdatatype_opt ((dns_rdatatype_t)dns_rdatatype_opt)
|
||||||
|
#define dns_rdatatype_apl ((dns_rdatatype_t)dns_rdatatype_apl)
|
||||||
|
#define dns_rdatatype_ds ((dns_rdatatype_t)dns_rdatatype_ds)
|
||||||
|
#define dns_rdatatype_sshfp ((dns_rdatatype_t)dns_rdatatype_sshfp)
|
||||||
|
#define dns_rdatatype_rrsig ((dns_rdatatype_t)dns_rdatatype_rrsig)
|
||||||
|
#define dns_rdatatype_nsec ((dns_rdatatype_t)dns_rdatatype_nsec)
|
||||||
|
#define dns_rdatatype_dnskey ((dns_rdatatype_t)dns_rdatatype_dnskey)
|
||||||
|
#define dns_rdatatype_unspec ((dns_rdatatype_t)dns_rdatatype_unspec)
|
||||||
|
#define dns_rdatatype_tkey ((dns_rdatatype_t)dns_rdatatype_tkey)
|
||||||
|
#define dns_rdatatype_tsig ((dns_rdatatype_t)dns_rdatatype_tsig)
|
||||||
|
#define dns_rdatatype_dlv ((dns_rdatatype_t)dns_rdatatype_dlv)
|
||||||
|
#define dns_rdatatype_ixfr ((dns_rdatatype_t)dns_rdatatype_ixfr)
|
||||||
|
#define dns_rdatatype_axfr ((dns_rdatatype_t)dns_rdatatype_axfr)
|
||||||
|
#define dns_rdatatype_mailb ((dns_rdatatype_t)dns_rdatatype_mailb)
|
||||||
|
#define dns_rdatatype_maila ((dns_rdatatype_t)dns_rdatatype_maila)
|
||||||
|
#define dns_rdatatype_any ((dns_rdatatype_t)dns_rdatatype_any)
|
||||||
|
|
||||||
|
#endif /* DNS_ENUMTYPE_H */
|
1733
lib/bind/dns/dns/rdatastruct.h
Normal file
1733
lib/bind/dns/dns/rdatastruct.h
Normal file
File diff suppressed because it is too large
Load Diff
124
lib/bind/isc/Makefile
Normal file
124
lib/bind/isc/Makefile
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/..
|
||||||
|
SRCDIR= ${BIND_DIR}/lib/isc
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
LIB= isc
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/unix
|
||||||
|
SRCS+= app.c dir.c entropy.c \
|
||||||
|
errno2result.c file.c fsaccess.c \
|
||||||
|
interfaceiter.c keyboard.c net.c \
|
||||||
|
os.c resource.c socket.c stdio.c \
|
||||||
|
stdtime.c strerror.c syslog.c time.c \
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/nls
|
||||||
|
SRCS+= msgcat.c \
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/pthreads
|
||||||
|
SRCS+= condition.c mutex.c \
|
||||||
|
thread.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= inet_pton.c \
|
||||||
|
assertions.c base64.c bitstring.c buffer.c \
|
||||||
|
bufferlist.c commandline.c error.c event.c \
|
||||||
|
hash.c heap.c hex.c hmacmd5.c \
|
||||||
|
lex.c lfsr.c lib.c log.c md5.c \
|
||||||
|
mem.c mutexblock.c netaddr.c netscope.c ondestroy.c \
|
||||||
|
parseint.c print.c quota.c random.c \
|
||||||
|
ratelimiter.c region.c result.c rwlock.c \
|
||||||
|
serial.c sha1.c sockaddr.c string.c strtoul.c \
|
||||||
|
symtab.c task.c taskpool.c timer.c version.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/pthreads/include
|
||||||
|
CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -I${.CURDIR}/..
|
||||||
|
|
||||||
|
DPADD= ${LIBPTHREAD}
|
||||||
|
LDADD= -lpthread
|
||||||
|
|
||||||
|
INCS= ${SRCDIR}/include/isc/app.h \
|
||||||
|
${SRCDIR}/include/isc/assertions.h \
|
||||||
|
${SRCDIR}/include/isc/base64.h \
|
||||||
|
${SRCDIR}/include/isc/bitstring.h \
|
||||||
|
${SRCDIR}/include/isc/boolean.h \
|
||||||
|
${SRCDIR}/include/isc/buffer.h \
|
||||||
|
${SRCDIR}/include/isc/bufferlist.h \
|
||||||
|
${SRCDIR}/include/isc/commandline.h \
|
||||||
|
${SRCDIR}/include/isc/entropy.h \
|
||||||
|
${SRCDIR}/include/isc/error.h \
|
||||||
|
${SRCDIR}/include/isc/event.h \
|
||||||
|
${SRCDIR}/include/isc/eventclass.h \
|
||||||
|
${SRCDIR}/include/isc/file.h \
|
||||||
|
${SRCDIR}/include/isc/formatcheck.h \
|
||||||
|
${SRCDIR}/include/isc/fsaccess.h \
|
||||||
|
${SRCDIR}/include/isc/hash.h \
|
||||||
|
${SRCDIR}/include/isc/heap.h \
|
||||||
|
${SRCDIR}/include/isc/hex.h \
|
||||||
|
${SRCDIR}/include/isc/hmacmd5.h \
|
||||||
|
${SRCDIR}/include/isc/interfaceiter.h \
|
||||||
|
${SRCDIR}/include/isc/ipv6.h \
|
||||||
|
${SRCDIR}/include/isc/lang.h \
|
||||||
|
${SRCDIR}/include/isc/lex.h \
|
||||||
|
${SRCDIR}/include/isc/lfsr.h \
|
||||||
|
${SRCDIR}/include/isc/lib.h \
|
||||||
|
${SRCDIR}/include/isc/list.h \
|
||||||
|
${SRCDIR}/include/isc/log.h \
|
||||||
|
${SRCDIR}/include/isc/magic.h \
|
||||||
|
${SRCDIR}/include/isc/md5.h \
|
||||||
|
${SRCDIR}/include/isc/mem.h \
|
||||||
|
${SRCDIR}/include/isc/msgcat.h \
|
||||||
|
${SRCDIR}/include/isc/msgs.h \
|
||||||
|
${SRCDIR}/include/isc/mutexblock.h \
|
||||||
|
${SRCDIR}/include/isc/netaddr.h \
|
||||||
|
${SRCDIR}/include/isc/netscope.h \
|
||||||
|
${SRCDIR}/include/isc/ondestroy.h \
|
||||||
|
${SRCDIR}/include/isc/os.h \
|
||||||
|
${SRCDIR}/include/isc/parseint.h \
|
||||||
|
${SRCDIR}/include/isc/print.h \
|
||||||
|
${SRCDIR}/include/isc/quota.h \
|
||||||
|
${SRCDIR}/include/isc/random.h \
|
||||||
|
${SRCDIR}/include/isc/ratelimiter.h \
|
||||||
|
${SRCDIR}/include/isc/refcount.h \
|
||||||
|
${SRCDIR}/include/isc/region.h \
|
||||||
|
${SRCDIR}/include/isc/resource.h \
|
||||||
|
${SRCDIR}/include/isc/result.h \
|
||||||
|
${SRCDIR}/include/isc/resultclass.h \
|
||||||
|
${SRCDIR}/include/isc/rwlock.h \
|
||||||
|
${SRCDIR}/include/isc/serial.h \
|
||||||
|
${SRCDIR}/include/isc/sha1.h \
|
||||||
|
${SRCDIR}/include/isc/sockaddr.h \
|
||||||
|
${SRCDIR}/include/isc/socket.h \
|
||||||
|
${SRCDIR}/include/isc/stdio.h \
|
||||||
|
${SRCDIR}/include/isc/stdlib.h \
|
||||||
|
${SRCDIR}/include/isc/string.h \
|
||||||
|
${SRCDIR}/include/isc/symtab.h \
|
||||||
|
${SRCDIR}/include/isc/task.h \
|
||||||
|
${SRCDIR}/include/isc/taskpool.h \
|
||||||
|
${SRCDIR}/include/isc/timer.h \
|
||||||
|
${SRCDIR}/include/isc/types.h \
|
||||||
|
${SRCDIR}/include/isc/util.h \
|
||||||
|
${SRCDIR}/include/isc/version.h \
|
||||||
|
${SRCDIR}/pthreads/include/isc/condition.h \
|
||||||
|
${SRCDIR}/pthreads/include/isc/mutex.h \
|
||||||
|
${SRCDIR}/pthreads/include/isc/once.h \
|
||||||
|
${SRCDIR}/pthreads/include/isc/thread.h \
|
||||||
|
${SRCDIR}/unix/include/isc/dir.h \
|
||||||
|
${SRCDIR}/unix/include/isc/int.h \
|
||||||
|
${SRCDIR}/unix/include/isc/keyboard.h \
|
||||||
|
${SRCDIR}/unix/include/isc/net.h \
|
||||||
|
${SRCDIR}/unix/include/isc/netdb.h \
|
||||||
|
${SRCDIR}/unix/include/isc/offset.h \
|
||||||
|
${SRCDIR}/unix/include/isc/stat.h \
|
||||||
|
${SRCDIR}/unix/include/isc/stdtime.h \
|
||||||
|
${SRCDIR}/unix/include/isc/strerror.h \
|
||||||
|
${SRCDIR}/unix/include/isc/syslog.h \
|
||||||
|
${SRCDIR}/unix/include/isc/time.h \
|
||||||
|
isc/platform.h
|
||||||
|
|
||||||
|
INCSDIR= ${INCLUDEDIR}/isc
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
257
lib/bind/isc/isc/platform.h
Normal file
257
lib/bind/isc/isc/platform.h
Normal file
@ -0,0 +1,257 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and 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: platform.h.in,v 1.24.2.1.10.11 2004/03/08 09:04:52 marka Exp $ */
|
||||||
|
|
||||||
|
#ifndef ISC_PLATFORM_H
|
||||||
|
#define ISC_PLATFORM_H 1
|
||||||
|
|
||||||
|
/*****
|
||||||
|
***** Platform-dependent defines.
|
||||||
|
*****/
|
||||||
|
|
||||||
|
/***
|
||||||
|
*** Network.
|
||||||
|
***/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if this system needs the <netinet/in6.h> header file included
|
||||||
|
* for full IPv6 support (pretty much only UnixWare).
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDNETINETIN6H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if this system needs the <netinet6/in6.h> header file included
|
||||||
|
* to support in6_pkinfo (pretty much only BSD/OS).
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDNETINET6IN6H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
|
||||||
|
* will be defined.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_HAVESALEN 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
|
||||||
|
* will be defined.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_HAVEIPV6 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
|
||||||
|
* be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDIN6ADDRANY
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
|
||||||
|
* will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
|
||||||
|
* defined.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_HAVEIN6PKTINFO 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
|
||||||
|
* will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_HAVEINADDR6
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_HAVESCOPEID 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDNTOP
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_NEEDPTON 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDATON
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDPORTT
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDSTRSEP
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDSTRLCPY
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDSTRLCAT
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
|
||||||
|
*/
|
||||||
|
#define ISC_NET_BSD44MSGHDR 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if PTHREAD_ONCE_INIT should be surrounded by braces to
|
||||||
|
* prevent compiler warnings (such as with gcc on Solaris 2.8).
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_BRACEPTHREADONCEINIT
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define on some UnixWare systems to fix erroneous definitions of various
|
||||||
|
* IN6_IS_ADDR_* macros.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_FIXIN6ISADDR
|
||||||
|
|
||||||
|
/***
|
||||||
|
*** Printing.
|
||||||
|
***/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
|
||||||
|
* will be defined.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDVSNPRINTF
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system need a modern sprintf() that returns (int) not (char*).
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDSPRINTF
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The printf format string modifier to use with isc_uint64_t values.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_QUADFORMAT "ll"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Defined if we are using threads.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_USETHREADS 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Defined if unistd.h does not cause fd_set to be delared.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDSYSSELECTH
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Type used for resource limits.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_RLIMITTYPE rlim_t
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if your compiler supports "long long int".
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_HAVELONGLONG 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if the system has struct lifconf which is a extended struct ifconf
|
||||||
|
* for IPv6.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_HAVELIFCONF
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if the system has struct if_laddrconf which is a extended struct
|
||||||
|
* ifconf for IPv6.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_HAVEIF_LADDRCONF
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if the system has struct if_laddrreq.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_HAVEIF_LADDRREQ
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Used to control how extern data is linked; needed for Win32 platforms.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_USEDECLSPEC
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if the system supports if_nametoindex.
|
||||||
|
*/
|
||||||
|
#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if this system needs strtoul.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDSTRTOUL
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if this system needs memmove.
|
||||||
|
*/
|
||||||
|
#undef ISC_PLATFORM_NEEDMEMMOVE
|
||||||
|
|
||||||
|
#ifndef ISC_PLATFORM_USEDECLSPEC
|
||||||
|
#define LIBISC_EXTERNAL_DATA
|
||||||
|
#define LIBDNS_EXTERNAL_DATA
|
||||||
|
#define LIBISCCC_EXTERNAL_DATA
|
||||||
|
#define LIBISCCFG_EXTERNAL_DATA
|
||||||
|
#define LIBBIND9_EXTERNAL_DATA
|
||||||
|
#else /* ISC_PLATFORM_USEDECLSPEC */
|
||||||
|
#ifdef LIBISC_EXPORTS
|
||||||
|
#define LIBISC_EXTERNAL_DATA __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LIBISC_EXTERNAL_DATA __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
#ifdef LIBDNS_EXPORTS
|
||||||
|
#define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
#ifdef LIBISCCC_EXPORTS
|
||||||
|
#define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
#ifdef LIBISCCFG_EXPORTS
|
||||||
|
#define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
#ifdef LIBBIND9_EXPORTS
|
||||||
|
#define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
#endif /* ISC_PLATFORM_USEDECLSPEC */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Tell emacs to use C mode for this file.
|
||||||
|
*
|
||||||
|
* Local Variables:
|
||||||
|
* mode: c
|
||||||
|
* End:
|
||||||
|
*/
|
||||||
|
|
||||||
|
#endif /* ISC_PLATFORM_H */
|
37
lib/bind/isccc/Makefile
Normal file
37
lib/bind/isccc/Makefile
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/..
|
||||||
|
SRCDIR= ${BIND_DIR}/lib/isccc
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
LIB= isccc
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS= alist.c base64.c cc.c ccmsg.c \
|
||||||
|
lib.c \
|
||||||
|
result.c sexpr.c symtab.c version.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -I${.CURDIR}/..
|
||||||
|
|
||||||
|
DPADD= ${LIBPTHREAD}
|
||||||
|
LDADD= -lpthread
|
||||||
|
|
||||||
|
INCS= ${SRCDIR}/include/isccc/alist.h \
|
||||||
|
${SRCDIR}/include/isccc/base64.h \
|
||||||
|
${SRCDIR}/include/isccc/cc.h \
|
||||||
|
${SRCDIR}/include/isccc/ccmsg.h \
|
||||||
|
${SRCDIR}/include/isccc/events.h \
|
||||||
|
${SRCDIR}/include/isccc/lib.h \
|
||||||
|
${SRCDIR}/include/isccc/result.h \
|
||||||
|
${SRCDIR}/include/isccc/sexpr.h \
|
||||||
|
${SRCDIR}/include/isccc/symtab.h \
|
||||||
|
${SRCDIR}/include/isccc/symtype.h \
|
||||||
|
${SRCDIR}/include/isccc/types.h \
|
||||||
|
${SRCDIR}/include/isccc/util.h \
|
||||||
|
${SRCDIR}/include/isccc/version.h
|
||||||
|
|
||||||
|
INCSDIR= ${INCLUDEDIR}/isccc
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
27
lib/bind/isccfg/Makefile
Normal file
27
lib/bind/isccfg/Makefile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/..
|
||||||
|
SRCDIR= ${BIND_DIR}/lib/isccfg
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
LIB= isccfg
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS= log.c namedconf.c parser.c version.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -I${.CURDIR}/..
|
||||||
|
|
||||||
|
DPADD= ${LIBPTHREAD}
|
||||||
|
LDADD= -lpthread
|
||||||
|
|
||||||
|
INCS= ${SRCDIR}/include/isccfg/cfg.h \
|
||||||
|
${SRCDIR}/include/isccfg/grammar.h \
|
||||||
|
${SRCDIR}/include/isccfg/log.h \
|
||||||
|
${SRCDIR}/include/isccfg/namedconf.h \
|
||||||
|
${SRCDIR}/include/isccfg/version.h
|
||||||
|
|
||||||
|
INCSDIR= ${INCLUDEDIR}/isccfg
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
40
lib/bind/lwres/Makefile
Normal file
40
lib/bind/lwres/Makefile
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/..
|
||||||
|
SRCDIR= ${BIND_DIR}/lib/lwres
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
LIB= lwres
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= context.c gai_strerror.c getaddrinfo.c gethost.c \
|
||||||
|
getipnode.c getnameinfo.c getrrset.c herror.c \
|
||||||
|
lwbuffer.c lwconfig.c lwpacket.c lwresutil.c \
|
||||||
|
lwres_gabn.c lwres_gnba.c lwres_grbn.c lwres_noop.c \
|
||||||
|
lwinetaton.c lwinetpton.c lwinetntop.c print.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include
|
||||||
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
|
||||||
|
|
||||||
|
DPADD= ${LIBPTHREAD}
|
||||||
|
LDADD= -lpthread
|
||||||
|
|
||||||
|
INCS= ${SRCDIR}/include/lwres/context.h \
|
||||||
|
${SRCDIR}/include/lwres/int.h \
|
||||||
|
${SRCDIR}/include/lwres/ipv6.h \
|
||||||
|
${SRCDIR}/include/lwres/lang.h \
|
||||||
|
${SRCDIR}/include/lwres/list.h \
|
||||||
|
${SRCDIR}/include/lwres/lwbuffer.h \
|
||||||
|
${SRCDIR}/include/lwres/lwpacket.h \
|
||||||
|
${SRCDIR}/include/lwres/lwres.h \
|
||||||
|
${SRCDIR}/include/lwres/result.h \
|
||||||
|
${SRCDIR}/include/lwres/version.h \
|
||||||
|
${SRCDIR}/unix/include/lwres/net.h \
|
||||||
|
lwres/netdb.h \
|
||||||
|
lwres/platform.h
|
||||||
|
|
||||||
|
INCSDIR= ${INCLUDEDIR}/lwres
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
520
lib/bind/lwres/lwres/netdb.h
Normal file
520
lib/bind/lwres/lwres/netdb.h
Normal file
@ -0,0 +1,520 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 2000, 2001 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and 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: netdb.h.in,v 1.34.206.1 2004/03/06 08:15:35 marka Exp $ */
|
||||||
|
|
||||||
|
#ifndef LWRES_NETDB_H
|
||||||
|
#define LWRES_NETDB_H 1
|
||||||
|
|
||||||
|
#include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */
|
||||||
|
#include <netdb.h> /* Contractual provision. */
|
||||||
|
|
||||||
|
#include <lwres/lang.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if <netdb.h> does not declare struct addrinfo.
|
||||||
|
*/
|
||||||
|
#undef ISC_LWRES_NEEDADDRINFO
|
||||||
|
|
||||||
|
#ifdef ISC_LWRES_NEEDADDRINFO
|
||||||
|
struct addrinfo {
|
||||||
|
int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
|
||||||
|
int ai_family; /* PF_xxx */
|
||||||
|
int ai_socktype; /* SOCK_xxx */
|
||||||
|
int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
|
||||||
|
size_t ai_addrlen; /* Length of ai_addr */
|
||||||
|
char *ai_canonname; /* Canonical name for hostname */
|
||||||
|
struct sockaddr *ai_addr; /* Binary address */
|
||||||
|
struct addrinfo *ai_next; /* Next structure in linked list */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Undefine all #defines we are interested in as <netdb.h> may or may not have
|
||||||
|
* defined them.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Error return codes from gethostbyname() and gethostbyaddr()
|
||||||
|
* (left in extern int h_errno).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#undef NETDB_INTERNAL
|
||||||
|
#undef NETDB_SUCCESS
|
||||||
|
#undef HOST_NOT_FOUND
|
||||||
|
#undef TRY_AGAIN
|
||||||
|
#undef NO_RECOVERY
|
||||||
|
#undef NO_DATA
|
||||||
|
#undef NO_ADDRESS
|
||||||
|
|
||||||
|
#define NETDB_INTERNAL -1 /* see errno */
|
||||||
|
#define NETDB_SUCCESS 0 /* no problem */
|
||||||
|
#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
|
||||||
|
#define TRY_AGAIN 2 /* Non-Authoritive Host not found, or SERVERFAIL */
|
||||||
|
#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
|
||||||
|
#define NO_DATA 4 /* Valid name, no data record of requested type */
|
||||||
|
#define NO_ADDRESS NO_DATA /* no address, look for MX record */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Error return codes from getaddrinfo()
|
||||||
|
*/
|
||||||
|
|
||||||
|
#undef EAI_ADDRFAMILY
|
||||||
|
#undef EAI_AGAIN
|
||||||
|
#undef EAI_BADFLAGS
|
||||||
|
#undef EAI_FAIL
|
||||||
|
#undef EAI_FAMILY
|
||||||
|
#undef EAI_MEMORY
|
||||||
|
#undef EAI_NODATA
|
||||||
|
#undef EAI_NONAME
|
||||||
|
#undef EAI_SERVICE
|
||||||
|
#undef EAI_SOCKTYPE
|
||||||
|
#undef EAI_SYSTEM
|
||||||
|
#undef EAI_BADHINTS
|
||||||
|
#undef EAI_PROTOCOL
|
||||||
|
#undef EAI_MAX
|
||||||
|
|
||||||
|
#define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
|
||||||
|
#define EAI_AGAIN 2 /* temporary failure in name resolution */
|
||||||
|
#define EAI_BADFLAGS 3 /* invalid value for ai_flags */
|
||||||
|
#define EAI_FAIL 4 /* non-recoverable failure in name resolution */
|
||||||
|
#define EAI_FAMILY 5 /* ai_family not supported */
|
||||||
|
#define EAI_MEMORY 6 /* memory allocation failure */
|
||||||
|
#define EAI_NODATA 7 /* no address associated with hostname */
|
||||||
|
#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
|
||||||
|
#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
|
||||||
|
#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
|
||||||
|
#define EAI_SYSTEM 11 /* system error returned in errno */
|
||||||
|
#define EAI_BADHINTS 12
|
||||||
|
#define EAI_PROTOCOL 13
|
||||||
|
#define EAI_MAX 14
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flag values for getaddrinfo()
|
||||||
|
*/
|
||||||
|
#undef AI_PASSIVE
|
||||||
|
#undef AI_CANONNAME
|
||||||
|
#undef AI_NUMERICHOST
|
||||||
|
|
||||||
|
#define AI_PASSIVE 0x00000001
|
||||||
|
#define AI_CANONNAME 0x00000002
|
||||||
|
#define AI_NUMERICHOST 0x00000004
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flag values for getipnodebyname()
|
||||||
|
*/
|
||||||
|
#undef AI_V4MAPPED
|
||||||
|
#undef AI_ALL
|
||||||
|
#undef AI_ADDRCONFIG
|
||||||
|
#undef AI_DEFAULT
|
||||||
|
|
||||||
|
#define AI_V4MAPPED 0x00000008
|
||||||
|
#define AI_ALL 0x00000010
|
||||||
|
#define AI_ADDRCONFIG 0x00000020
|
||||||
|
#define AI_DEFAULT (AI_V4MAPPED|AI_ADDRCONFIG)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Constants for lwres_getnameinfo()
|
||||||
|
*/
|
||||||
|
#undef NI_MAXHOST
|
||||||
|
#undef NI_MAXSERV
|
||||||
|
|
||||||
|
#define NI_MAXHOST 1025
|
||||||
|
#define NI_MAXSERV 32
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flag values for lwres_getnameinfo()
|
||||||
|
*/
|
||||||
|
#undef NI_NOFQDN
|
||||||
|
#undef NI_NUMERICHOST
|
||||||
|
#undef NI_NAMEREQD
|
||||||
|
#undef NI_NUMERICSERV
|
||||||
|
#undef NI_DGRAM
|
||||||
|
#undef NI_NUMERICSCOPE
|
||||||
|
|
||||||
|
#define NI_NOFQDN 0x00000001
|
||||||
|
#define NI_NUMERICHOST 0x00000002
|
||||||
|
#define NI_NAMEREQD 0x00000004
|
||||||
|
#define NI_NUMERICSERV 0x00000008
|
||||||
|
#define NI_DGRAM 0x00000010
|
||||||
|
#define NI_NUMERICSCOPE 0x00000020 /*2553bis-00*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if <netdb.h> does not declare struct rrsetinfo.
|
||||||
|
*/
|
||||||
|
#define ISC_LWRES_NEEDRRSETINFO 1
|
||||||
|
|
||||||
|
#ifdef ISC_LWRES_NEEDRRSETINFO
|
||||||
|
/*
|
||||||
|
* Structures for getrrsetbyname()
|
||||||
|
*/
|
||||||
|
struct rdatainfo {
|
||||||
|
unsigned int rdi_length;
|
||||||
|
unsigned char *rdi_data;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct rrsetinfo {
|
||||||
|
unsigned int rri_flags;
|
||||||
|
int rri_rdclass;
|
||||||
|
int rri_rdtype;
|
||||||
|
unsigned int rri_ttl;
|
||||||
|
unsigned int rri_nrdatas;
|
||||||
|
unsigned int rri_nsigs;
|
||||||
|
char *rri_name;
|
||||||
|
struct rdatainfo *rri_rdatas;
|
||||||
|
struct rdatainfo *rri_sigs;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flags for getrrsetbyname()
|
||||||
|
*/
|
||||||
|
#define RRSET_VALIDATED 0x00000001
|
||||||
|
/* Set was dnssec validated */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return codes for getrrsetbyname()
|
||||||
|
*/
|
||||||
|
#define ERRSET_SUCCESS 0
|
||||||
|
#define ERRSET_NOMEMORY 1
|
||||||
|
#define ERRSET_FAIL 2
|
||||||
|
#define ERRSET_INVAL 3
|
||||||
|
#define ERRSET_NONAME 4
|
||||||
|
#define ERRSET_NODATA 5
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define to map into lwres_ namespace.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LWRES_NAMESPACE
|
||||||
|
|
||||||
|
#ifdef LWRES_NAMESPACE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Use our versions not the ones from the C library.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef getnameinfo
|
||||||
|
#undef getnameinfo
|
||||||
|
#endif
|
||||||
|
#define getnameinfo lwres_getnameinfo
|
||||||
|
|
||||||
|
#ifdef getaddrinfo
|
||||||
|
#undef getaddrinfo
|
||||||
|
#endif
|
||||||
|
#define getaddrinfo lwres_getaddrinfo
|
||||||
|
|
||||||
|
#ifdef freeaddrinfo
|
||||||
|
#undef freeaddrinfo
|
||||||
|
#endif
|
||||||
|
#define freeaddrinfo lwres_freeaddrinfo
|
||||||
|
|
||||||
|
#ifdef gai_strerror
|
||||||
|
#undef gai_strerror
|
||||||
|
#endif
|
||||||
|
#define gai_strerror lwres_gai_strerror
|
||||||
|
|
||||||
|
#ifdef herror
|
||||||
|
#undef herror
|
||||||
|
#endif
|
||||||
|
#define herror lwres_herror
|
||||||
|
|
||||||
|
#ifdef hstrerror
|
||||||
|
#undef hstrerror
|
||||||
|
#endif
|
||||||
|
#define hstrerror lwres_hstrerror
|
||||||
|
|
||||||
|
#ifdef getipnodebyname
|
||||||
|
#undef getipnodebyname
|
||||||
|
#endif
|
||||||
|
#define getipnodebyname lwres_getipnodebyname
|
||||||
|
|
||||||
|
#ifdef getipnodebyaddr
|
||||||
|
#undef getipnodebyaddr
|
||||||
|
#endif
|
||||||
|
#define getipnodebyaddr lwres_getipnodebyaddr
|
||||||
|
|
||||||
|
#ifdef freehostent
|
||||||
|
#undef freehostent
|
||||||
|
#endif
|
||||||
|
#define freehostent lwres_freehostent
|
||||||
|
|
||||||
|
#ifdef gethostbyname
|
||||||
|
#undef gethostbyname
|
||||||
|
#endif
|
||||||
|
#define gethostbyname lwres_gethostbyname
|
||||||
|
|
||||||
|
#ifdef gethostbyname2
|
||||||
|
#undef gethostbyname2
|
||||||
|
#endif
|
||||||
|
#define gethostbyname2 lwres_gethostbyname2
|
||||||
|
|
||||||
|
#ifdef gethostbyaddr
|
||||||
|
#undef gethostbyaddr
|
||||||
|
#endif
|
||||||
|
#define gethostbyaddr lwres_gethostbyaddr
|
||||||
|
|
||||||
|
#ifdef gethostent
|
||||||
|
#undef gethostent
|
||||||
|
#endif
|
||||||
|
#define gethostent lwres_gethostent
|
||||||
|
|
||||||
|
#ifdef sethostent
|
||||||
|
#undef sethostent
|
||||||
|
#endif
|
||||||
|
#define sethostent lwres_sethostent
|
||||||
|
|
||||||
|
#ifdef endhostent
|
||||||
|
#undef endhostent
|
||||||
|
#endif
|
||||||
|
#define endhostent lwres_endhostent
|
||||||
|
|
||||||
|
/* #define sethostfile lwres_sethostfile */
|
||||||
|
|
||||||
|
#ifdef gethostbyname_r
|
||||||
|
#undef gethostbyname_r
|
||||||
|
#endif
|
||||||
|
#define gethostbyname_r lwres_gethostbyname_r
|
||||||
|
|
||||||
|
#ifdef gethostbyaddr_r
|
||||||
|
#undef gethostbyaddr_r
|
||||||
|
#endif
|
||||||
|
#define gethostbyaddr_r lwres_gethostbyaddr_r
|
||||||
|
|
||||||
|
#ifdef gethostent_r
|
||||||
|
#undef gethostent_r
|
||||||
|
#endif
|
||||||
|
#define gethostent_r lwres_gethostent_r
|
||||||
|
|
||||||
|
#ifdef sethostent_r
|
||||||
|
#undef sethostent_r
|
||||||
|
#endif
|
||||||
|
#define sethostent_r lwres_sethostent_r
|
||||||
|
|
||||||
|
#ifdef endhostent_r
|
||||||
|
#undef endhostent_r
|
||||||
|
#endif
|
||||||
|
#define endhostent_r lwres_endhostent_r
|
||||||
|
|
||||||
|
#ifdef getrrsetbyname
|
||||||
|
#undef getrrsetbyname
|
||||||
|
#endif
|
||||||
|
#define getrrsetbyname lwres_getrrsetbyname
|
||||||
|
|
||||||
|
#ifdef freerrset
|
||||||
|
#undef freerrset
|
||||||
|
#endif
|
||||||
|
#define freerrset lwres_freerrset
|
||||||
|
|
||||||
|
#ifdef notyet
|
||||||
|
#define getservbyname lwres_getservbyname
|
||||||
|
#define getservbyport lwres_getservbyport
|
||||||
|
#define getservent lwres_getservent
|
||||||
|
#define setservent lwres_setservent
|
||||||
|
#define endservent lwres_endservent
|
||||||
|
|
||||||
|
#define getservbyname_r lwres_getservbyname_r
|
||||||
|
#define getservbyport_r lwres_getservbyport_r
|
||||||
|
#define getservent_r lwres_getservent_r
|
||||||
|
#define setservent_r lwres_setservent_r
|
||||||
|
#define endservent_r lwres_endservent_r
|
||||||
|
|
||||||
|
#define getprotobyname lwres_getprotobyname
|
||||||
|
#define getprotobynumber lwres_getprotobynumber
|
||||||
|
#define getprotoent lwres_getprotoent
|
||||||
|
#define setprotoent lwres_setprotoent
|
||||||
|
#define endprotoent lwres_endprotoent
|
||||||
|
|
||||||
|
#define getprotobyname_r lwres_getprotobyname_r
|
||||||
|
#define getprotobynumber_r lwres_getprotobynumber_r
|
||||||
|
#define getprotoent_r lwres_getprotoent_r
|
||||||
|
#define setprotoent_r lwres_setprotoent_r
|
||||||
|
#define endprotoent_r lwres_endprotoent_r
|
||||||
|
|
||||||
|
#ifdef getnetbyname
|
||||||
|
#undef getnetbyname
|
||||||
|
#endif
|
||||||
|
#define getnetbyname lwres_getnetbyname
|
||||||
|
|
||||||
|
#ifdef getnetbyaddr
|
||||||
|
#undef getnetbyaddr
|
||||||
|
#endif
|
||||||
|
#define getnetbyaddr lwres_getnetbyaddr
|
||||||
|
|
||||||
|
#ifdef getnetent
|
||||||
|
#undef getnetent
|
||||||
|
#endif
|
||||||
|
#define getnetent lwres_getnetent
|
||||||
|
|
||||||
|
#ifdef setnetent
|
||||||
|
#undef setnetent
|
||||||
|
#endif
|
||||||
|
#define setnetent lwres_setnetent
|
||||||
|
|
||||||
|
#ifdef endnetent
|
||||||
|
#undef endnetent
|
||||||
|
#endif
|
||||||
|
#define endnetent lwres_endnetent
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef getnetbyname_r
|
||||||
|
#undef getnetbyname_r
|
||||||
|
#endif
|
||||||
|
#define getnetbyname_r lwres_getnetbyname_r
|
||||||
|
|
||||||
|
#ifdef getnetbyaddr_r
|
||||||
|
#undef getnetbyaddr_r
|
||||||
|
#endif
|
||||||
|
#define getnetbyaddr_r lwres_getnetbyaddr_r
|
||||||
|
|
||||||
|
#ifdef getnetent_r
|
||||||
|
#undef getnetent_r
|
||||||
|
#endif
|
||||||
|
#define getnetent_r lwres_getnetent_r
|
||||||
|
|
||||||
|
#ifdef setnetent_r
|
||||||
|
#undef setnetent_r
|
||||||
|
#endif
|
||||||
|
#define setnetent_r lwres_setnetent_r
|
||||||
|
|
||||||
|
#ifdef endnetent_r
|
||||||
|
#undef endnetent_r
|
||||||
|
#endif
|
||||||
|
#define endnetent_r lwres_endnetent_r
|
||||||
|
#endif /* notyet */
|
||||||
|
|
||||||
|
#ifdef h_errno
|
||||||
|
#undef h_errno
|
||||||
|
#endif
|
||||||
|
#define h_errno lwres_h_errno
|
||||||
|
|
||||||
|
#endif /* LWRES_NAMESPACE */
|
||||||
|
|
||||||
|
LWRES_LANG_BEGINDECLS
|
||||||
|
|
||||||
|
extern int lwres_h_errno;
|
||||||
|
|
||||||
|
int lwres_getaddrinfo(const char *, const char *,
|
||||||
|
const struct addrinfo *, struct addrinfo **);
|
||||||
|
int lwres_getnameinfo(const struct sockaddr *, size_t, char *,
|
||||||
|
size_t, char *, size_t, int);
|
||||||
|
void lwres_freeaddrinfo(struct addrinfo *);
|
||||||
|
char *lwres_gai_strerror(int);
|
||||||
|
|
||||||
|
struct hostent *lwres_gethostbyaddr(const char *, int, int);
|
||||||
|
struct hostent *lwres_gethostbyname(const char *);
|
||||||
|
struct hostent *lwres_gethostbyname2(const char *, int);
|
||||||
|
struct hostent *lwres_gethostent(void);
|
||||||
|
struct hostent *lwres_getipnodebyname(const char *, int, int, int *);
|
||||||
|
struct hostent *lwres_getipnodebyaddr(const void *, size_t, int, int *);
|
||||||
|
void lwres_endhostent(void);
|
||||||
|
void lwres_sethostent(int);
|
||||||
|
/* void lwres_sethostfile(const char *); */
|
||||||
|
void lwres_freehostent(struct hostent *);
|
||||||
|
|
||||||
|
int lwres_getrrsetbyname(const char *, unsigned int, unsigned int,
|
||||||
|
unsigned int, struct rrsetinfo **);
|
||||||
|
void lwres_freerrset(struct rrsetinfo *);
|
||||||
|
|
||||||
|
#ifdef notyet
|
||||||
|
struct netent *lwres_getnetbyaddr(unsigned long, int);
|
||||||
|
struct netent *lwres_getnetbyname(const char *);
|
||||||
|
struct netent *lwres_getnetent(void);
|
||||||
|
void lwres_endnetent(void);
|
||||||
|
void lwres_setnetent(int);
|
||||||
|
|
||||||
|
struct protoent *lwres_getprotobyname(const char *);
|
||||||
|
struct protoent *lwres_getprotobynumber(int);
|
||||||
|
struct protoent *lwres_getprotoent(void);
|
||||||
|
void lwres_endprotoent(void);
|
||||||
|
void lwres_setprotoent(int);
|
||||||
|
|
||||||
|
struct servent *lwres_getservbyname(const char *, const char *);
|
||||||
|
struct servent *lwres_getservbyport(int, const char *);
|
||||||
|
struct servent *lwres_getservent(void);
|
||||||
|
void lwres_endservent(void);
|
||||||
|
void lwres_setservent(int);
|
||||||
|
#endif /* notyet */
|
||||||
|
|
||||||
|
void lwres_herror(const char *);
|
||||||
|
const char *lwres_hstrerror(int);
|
||||||
|
|
||||||
|
|
||||||
|
struct hostent *lwres_gethostbyaddr_r(const char *, int, int, struct hostent *,
|
||||||
|
char *, int, int *);
|
||||||
|
struct hostent *lwres_gethostbyname_r(const char *, struct hostent *,
|
||||||
|
char *, int, int *);
|
||||||
|
struct hostent *lwres_gethostent_r(struct hostent *, char *, int, int *);
|
||||||
|
void lwres_sethostent_r(int);
|
||||||
|
void lwres_endhostent_r(void);
|
||||||
|
|
||||||
|
#ifdef notyet
|
||||||
|
struct netent *lwres_getnetbyname_r(const char *, struct netent *,
|
||||||
|
char *, int);
|
||||||
|
struct netent *lwres_getnetbyaddr_r(long, int, struct netent *,
|
||||||
|
char *, int);
|
||||||
|
struct netent *lwres_getnetent_r(struct netent *, char *, int);
|
||||||
|
void lwres_setnetent_r(int);
|
||||||
|
void lwres_endnetent_r(void);
|
||||||
|
|
||||||
|
struct protoent *lwres_getprotobyname_r(const char *,
|
||||||
|
struct protoent *, char *, int);
|
||||||
|
struct protoent *lwres_getprotobynumber_r(int,
|
||||||
|
struct protoent *, char *, int);
|
||||||
|
struct protoent *lwres_getprotoent_r(struct protoent *, char *, int);
|
||||||
|
void lwres_setprotoent_r(int);
|
||||||
|
void lwres_endprotoent_r(void);
|
||||||
|
|
||||||
|
struct servent *lwres_getservbyname_r(const char *name, const char *,
|
||||||
|
struct servent *, char *, int);
|
||||||
|
struct servent *lwres_getservbyport_r(int port, const char *,
|
||||||
|
struct servent *, char *, int);
|
||||||
|
struct servent *lwres_getservent_r(struct servent *, char *, int);
|
||||||
|
void lwres_setservent_r(int);
|
||||||
|
void lwres_endservent_r(void);
|
||||||
|
#endif /* notyet */
|
||||||
|
|
||||||
|
LWRES_LANG_ENDDECLS
|
||||||
|
|
||||||
|
#ifdef notyet
|
||||||
|
/* This is nec'y to make this include file properly replace the sun version. */
|
||||||
|
#ifdef sun
|
||||||
|
#ifdef __GNU_LIBRARY__
|
||||||
|
#include <rpc/netdb.h> /* Required. */
|
||||||
|
#else /* !__GNU_LIBRARY__ */
|
||||||
|
struct rpcent {
|
||||||
|
char *r_name; /* name of server for this rpc program */
|
||||||
|
char **r_aliases; /* alias list */
|
||||||
|
int r_number; /* rpc program number */
|
||||||
|
};
|
||||||
|
struct rpcent *lwres_getrpcbyname();
|
||||||
|
struct rpcent *lwres_getrpcbynumber(),
|
||||||
|
struct rpcent *lwres_getrpcent();
|
||||||
|
#endif /* __GNU_LIBRARY__ */
|
||||||
|
#endif /* sun */
|
||||||
|
#endif /* notyet */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Tell Emacs to use C mode on this file.
|
||||||
|
* Local variables:
|
||||||
|
* mode: c
|
||||||
|
* End:
|
||||||
|
*/
|
||||||
|
|
||||||
|
#endif /* LWRES_NETDB_H */
|
103
lib/bind/lwres/lwres/platform.h
Normal file
103
lib/bind/lwres/lwres/platform.h
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 2000, 2001 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and 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: platform.h.in,v 1.12.2.1.10.2 2004/08/28 06:25:26 marka Exp $ */
|
||||||
|
|
||||||
|
#ifndef LWRES_PLATFORM_H
|
||||||
|
#define LWRES_PLATFORM_H 1
|
||||||
|
|
||||||
|
/*****
|
||||||
|
***** Platform-dependent defines.
|
||||||
|
*****/
|
||||||
|
|
||||||
|
/***
|
||||||
|
*** Network.
|
||||||
|
***/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if this system needs the <netinet/in6.h> header file for IPv6.
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_NEEDNETINETIN6H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define if this system needs the <netinet6/in6.h> header file for IPv6.
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_NEEDNETINET6IN6H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If sockaddrs on this system have an sa_len field, LWRES_PLATFORM_HAVESALEN
|
||||||
|
* will be defined.
|
||||||
|
*/
|
||||||
|
#define LWRES_PLATFORM_HAVESALEN 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system has the IPv6 structure definitions, LWRES_PLATFORM_HAVEIPV6
|
||||||
|
* will be defined.
|
||||||
|
*/
|
||||||
|
#define LWRES_PLATFORM_HAVEIPV6 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system is missing in6addr_any, LWRES_PLATFORM_NEEDIN6ADDRANY will
|
||||||
|
* be defined.
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_NEEDIN6ADDRANY
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system is missing in6addr_loopback,
|
||||||
|
* LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK will be defined.
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system has in_addr6, rather than in6_addr,
|
||||||
|
* LWRES_PLATFORM_HAVEINADDR6 will be defined.
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_HAVEINADDR6
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Defined if unistd.h does not cause fd_set to be delared.
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_NEEDSYSSELECTH
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Used to control how extern data is linked; needed for Win32 platforms.
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_USEDECLSPEC
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Defined this system needs vsnprintf() and snprintf().
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_NEEDVSNPRINTF
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this system need a modern sprintf() that returns (int) not (char*).
|
||||||
|
*/
|
||||||
|
#undef LWRES_PLATFORM_NEEDSPRINTF
|
||||||
|
|
||||||
|
#ifndef LWRES_PLATFORM_USEDECLSPEC
|
||||||
|
#define LIBLWRES_EXTERNAL_DATA
|
||||||
|
#else
|
||||||
|
#ifdef LIBLWRES_EXPORTS
|
||||||
|
#define LIBLWRES_EXTERNAL_DATA __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LIBLWRES_EXTERNAL_DATA __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* LWRES_PLATFORM_H */
|
@ -1,86 +0,0 @@
|
|||||||
# $FreeBSD$
|
|
||||||
|
|
||||||
BIND_DIR=${.CURDIR}/../../contrib/bind
|
|
||||||
|
|
||||||
LIB= bind
|
|
||||||
WANT_IRS= for now
|
|
||||||
|
|
||||||
# This may or may not work yet. It's not compatable with the core
|
|
||||||
# system components since it overrides the master.passwd handling etc.
|
|
||||||
.if defined(WANT_IRS)
|
|
||||||
.PATH: ${BIND_DIR}/lib/irs
|
|
||||||
SRCS+= dns.c dns_gr.c dns_ho.c dns_nw.c dns_pr.c dns_pw.c \
|
|
||||||
dns_sv.c gai_strerror.c gen.c gen_gr.c gen_ho.c \
|
|
||||||
gen_ng.c gen_nw.c gen_pr.c gen_pw.c gen_sv.c \
|
|
||||||
getaddrinfo.c getgrent.c getgrent_r.c gethostent.c \
|
|
||||||
gethostent_r.c getnameinfo.c getnetent.c getnetent_r.c \
|
|
||||||
getnetgrent.c getnetgrent_r.c getprotoent.c \
|
|
||||||
getprotoent_r.c getpwent.c getpwent_r.c getservent.c \
|
|
||||||
getservent_r.c hesiod.c irs_data.c \
|
|
||||||
irp.c irp_gr.c irp_ho.c irp_ng.c irp_nw.c \
|
|
||||||
irp_pr.c irp_pw.c irp_sv.c irpmarshall.c \
|
|
||||||
lcl.c lcl_gr.c \
|
|
||||||
lcl_ho.c lcl_ng.c lcl_nw.c lcl_pr.c lcl_pw.c \
|
|
||||||
lcl_sv.c nis.c nis_gr.c nis_ho.c nis_ng.c nis_nw.c \
|
|
||||||
nis_pr.c nis_pw.c nis_sv.c nul_ng.c util.c
|
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/lib/nameser
|
|
||||||
SRCS+= ns_parse.c ns_print.c ns_netint.c ns_ttl.c ns_name.c \
|
|
||||||
ns_sign.c ns_verify.c ns_date.c ns_samedomain.c
|
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/lib/resolv
|
|
||||||
SRCS+= herror.c res_debug.c res_data.c res_comp.c res_init.c \
|
|
||||||
res_mkquery.c res_query.c res_send.c res_sendsigned.c \
|
|
||||||
res_mkupdate.c res_update.c res_findzonecut.c
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if defined(WANT_CYLINK) && exists(${BIND_DIR}/lib/cylink)
|
|
||||||
.PATH: ${BIND_DIR}/lib/cylink
|
|
||||||
CFLAGS+=-DCYLINK_DSS -I${BIND_DIR}/lib/cylink
|
|
||||||
SRCS+= bn.c bn00.c lbn00.c lbnmem.c legal.c \
|
|
||||||
bits.c dss.c math.c ctk_prime.c rand.c sha.c swap.c
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if defined(WANT_DNSSAFE) && exists(${BIND_DIR}/lib/dnssafe)
|
|
||||||
.PATH: ${BIND_DIR}/lib/dnssafe
|
|
||||||
CFLAGS+=-DDNSSAFE -I${BIND_DIR}/lib/dnssafe
|
|
||||||
SRCS+= bgclrbit.c bgmdmpyx.c bgmdsqx.c bgmodexp.c \
|
|
||||||
bgpegcd.c big2exp.c bigabs.c bigacc.c bigarith.c \
|
|
||||||
bigcmp.c bigconst.c biginv.c biglen.c bigmodx.c \
|
|
||||||
bigmpy.c bigpdiv.c bigpmpy.c bigpmpyh.c bigpmpyl.c \
|
|
||||||
bigpsq.c bigqrx.c bigsmod.c bigtocan.c bigu.c \
|
|
||||||
bigunexp.c cantobig.c crt2.c \
|
|
||||||
digrand.c intbits.c md5.c md5rand.c prime.c \
|
|
||||||
rsa.c rsakeygn.c seccbcd.c seccbce.c surrendr.c \
|
|
||||||
ahchdig.c ahchencr.c ahchgen.c ahchrand.c ahdigest.c \
|
|
||||||
ahencryp.c ahgen.c ahrandom.c ahrsaenc.c ahrsaepr.c \
|
|
||||||
ahrsaepu.c aichdig.c aichenc8.c aichencn.c aichencr.c \
|
|
||||||
aichgen.c aichrand.c aimd5.c \
|
|
||||||
aimd5ran.c ainfotyp.c ainull.c airsaepr.c airsaepu.c \
|
|
||||||
airsakgn.c airsaprv.c airsapub.c algchoic.c algobj.c \
|
|
||||||
amcrte.c ammd5.c ammd5r.c \
|
|
||||||
amrkg.c amrsae.c balg.c binfocsh.c bkey.c bmempool.c \
|
|
||||||
digest.c encrypt.c generate.c intitem.c \
|
|
||||||
keyobj.c ki8byte.c kiitem.c kinfotyp.c \
|
|
||||||
kifulprv.c kipkcrpr.c kirsacrt.c kirsapub.c random.c
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/lib/dst
|
|
||||||
CFLAGS+=-DHMAC_MD5 -DUSE_MD5
|
|
||||||
SRCS+= dst_api.c prandom.c rsaref_link.c support.c bsafe_link.c \
|
|
||||||
cylink_link.c hmac_link.c md5_dgst.c eay_dss_link.c
|
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/lib/isc
|
|
||||||
SRCS+= tree.c bitncmp.c assertions.c \
|
|
||||||
memcluster.c logging.c heap.c \
|
|
||||||
ctl_p.c ctl_srvr.c ctl_clnt.c \
|
|
||||||
eventlib.c ev_connects.c ev_files.c \
|
|
||||||
ev_timers.c ev_streams.c ev_waits.c
|
|
||||||
# base64.c
|
|
||||||
|
|
||||||
INTERNALLIB= true
|
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
|
||||||
|
|
||||||
# XXX contrib/bind/include/* must not override any real system includes
|
|
||||||
CFLAGS:= -I${BIND_DIR}/port/freebsd/include -I${BIND_DIR}/include ${CFLAGS}
|
|
@ -1,140 +0,0 @@
|
|||||||
# $FreeBSD$
|
|
||||||
|
|
||||||
BIND_DIR= ${.CURDIR}/../../contrib/bind
|
|
||||||
|
|
||||||
LIB= isc
|
|
||||||
SHLIB_MAJOR= 1
|
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/lib/isc
|
|
||||||
SRCS= assertions.c ev_connects.c ev_files.c ev_streams.c \
|
|
||||||
ev_timers.c ev_waits.c eventlib.c heap.c hex.c tree.c \
|
|
||||||
logging.c memcluster.c bitncmp.c ctl_clnt.c ctl_p.c \
|
|
||||||
ctl_srvr.c movefile.c
|
|
||||||
|
|
||||||
# contrib/bind/include/* must not override any real system includes
|
|
||||||
CFLAGS+= -I${BIND_DIR}/port/freebsd/include -I${BIND_DIR}/include
|
|
||||||
CFLAGS+= -Wall -Wmissing-prototypes
|
|
||||||
|
|
||||||
INCS= ${BIND_DIR}/include/isc/assertions.h \
|
|
||||||
${BIND_DIR}/include/isc/ctl.h \
|
|
||||||
${BIND_DIR}/include/isc/dst.h \
|
|
||||||
${BIND_DIR}/include/isc/eventlib.h \
|
|
||||||
${BIND_DIR}/include/isc/heap.h \
|
|
||||||
${BIND_DIR}/include/isc/irpmarshall.h \
|
|
||||||
${BIND_DIR}/include/isc/list.h \
|
|
||||||
${BIND_DIR}/include/isc/logging.h \
|
|
||||||
${BIND_DIR}/include/isc/memcluster.h \
|
|
||||||
${BIND_DIR}/include/isc/misc.h \
|
|
||||||
${BIND_DIR}/include/isc/tree.h
|
|
||||||
INCSDIR= ${INCLUDEDIR}/isc
|
|
||||||
|
|
||||||
MAN= assertions.3 bitncmp.3 eventlib.3 heap.3 \
|
|
||||||
logging.3 memcluster.3 tree.3
|
|
||||||
CLEANFILES+= ${MAN}
|
|
||||||
|
|
||||||
MLINKS+= assertions.3 ENSURE.3 \
|
|
||||||
assertions.3 ENSURE_ERR.3 \
|
|
||||||
assertions.3 INSIST.3 \
|
|
||||||
assertions.3 INSIST_ERR.3 \
|
|
||||||
assertions.3 INVARIANT.3 \
|
|
||||||
assertions.3 INVARIANT_ERR.3 \
|
|
||||||
assertions.3 REQUIRE.3 \
|
|
||||||
assertions.3 REQUIRE_ERR.3 \
|
|
||||||
assertions.3 assertion_type_to_text.3 \
|
|
||||||
assertions.3 set_assertion_failure_callback.3 \
|
|
||||||
eventlib.3 evAddTime.3 \
|
|
||||||
eventlib.3 evCancelConn.3 \
|
|
||||||
eventlib.3 evCancelRW.3 \
|
|
||||||
eventlib.3 evClearIdleTimer.3 \
|
|
||||||
eventlib.3 evClearTimer.3 \
|
|
||||||
eventlib.3 evCmpTime.3 \
|
|
||||||
eventlib.3 evConnFunc.3 \
|
|
||||||
eventlib.3 evConnect.3 \
|
|
||||||
eventlib.3 evConsIovec.3 \
|
|
||||||
eventlib.3 evConsTime.3 \
|
|
||||||
eventlib.3 evCreate.3 \
|
|
||||||
eventlib.3 evDefer.3 \
|
|
||||||
eventlib.3 evDeselectFD.3 \
|
|
||||||
eventlib.3 evDestroy.3 \
|
|
||||||
eventlib.3 evDispatch.3 \
|
|
||||||
eventlib.3 evDo.3 \
|
|
||||||
eventlib.3 evDrop.3 \
|
|
||||||
eventlib.3 evFileFunc.3 \
|
|
||||||
eventlib.3 evGetNext.3 \
|
|
||||||
eventlib.3 evHold.3 \
|
|
||||||
eventlib.3 evInitID.3 \
|
|
||||||
eventlib.3 evLastEventTime.3 \
|
|
||||||
eventlib.3 evListen.3 \
|
|
||||||
eventlib.3 evMainLoop.3 \
|
|
||||||
eventlib.3 evNowTime.3 \
|
|
||||||
eventlib.3 evPrintf.3 \
|
|
||||||
eventlib.3 evRead.3 \
|
|
||||||
eventlib.3 evResetTimer.3 \
|
|
||||||
eventlib.3 evSelectFD.3 \
|
|
||||||
eventlib.3 evSetDebug.3 \
|
|
||||||
eventlib.3 evSetIdleTimer.3 \
|
|
||||||
eventlib.3 evSetTimer.3 \
|
|
||||||
eventlib.3 evStreamFunc.3 \
|
|
||||||
eventlib.3 evSubTime.3 \
|
|
||||||
eventlib.3 evTestID.3 \
|
|
||||||
eventlib.3 evTimeRW.3 \
|
|
||||||
eventlib.3 evTimeSpec.3 \
|
|
||||||
eventlib.3 evTimeVal.3 \
|
|
||||||
eventlib.3 evTimerFunc.3 \
|
|
||||||
eventlib.3 evTouchIdleTimer.3 \
|
|
||||||
eventlib.3 evTryAccept.3 \
|
|
||||||
eventlib.3 evUnhold.3 \
|
|
||||||
eventlib.3 evUntimeRW.3 \
|
|
||||||
eventlib.3 evUnwait.3 \
|
|
||||||
eventlib.3 evWaitFor.3 \
|
|
||||||
eventlib.3 evWaitFunc.3 \
|
|
||||||
eventlib.3 evWrite.3 \
|
|
||||||
heap.3 heap_decreased.3 \
|
|
||||||
heap.3 heap_delete.3 \
|
|
||||||
heap.3 heap_element.3 \
|
|
||||||
heap.3 heap_for_each.3 \
|
|
||||||
heap.3 heap_free.3 \
|
|
||||||
heap.3 heap_increased.3 \
|
|
||||||
heap.3 heap_insert.3 \
|
|
||||||
heap.3 heap_new.3 \
|
|
||||||
logging.3 log_add_channel.3 \
|
|
||||||
logging.3 log_category_is_active.3 \
|
|
||||||
logging.3 log_close_stream.3 \
|
|
||||||
logging.3 log_dec_references.3 \
|
|
||||||
logging.3 log_free_channel.3 \
|
|
||||||
logging.3 log_free_context.3 \
|
|
||||||
logging.3 log_get_filename.3 \
|
|
||||||
logging.3 log_get_stream.3 \
|
|
||||||
logging.3 log_inc_references.3 \
|
|
||||||
logging.3 log_new_context.3 \
|
|
||||||
logging.3 log_new_file_channel.3 \
|
|
||||||
logging.3 log_new_null_channel.3 \
|
|
||||||
logging.3 log_new_syslog_channel.3 \
|
|
||||||
logging.3 log_open_stream.3 \
|
|
||||||
logging.3 log_option.3 \
|
|
||||||
logging.3 log_remove_channel.3 \
|
|
||||||
logging.3 log_set_file_owner.3 \
|
|
||||||
logging.3 log_vwrite.3 \
|
|
||||||
logging.3 log_write.3 \
|
|
||||||
memcluster.3 memget.3 \
|
|
||||||
memcluster.3 memput.3 \
|
|
||||||
memcluster.3 memstats.3 \
|
|
||||||
tree.3 tree_add.3 \
|
|
||||||
tree.3 tree_delete.3 \
|
|
||||||
tree.3 tree_init.3 \
|
|
||||||
tree.3 tree_mung.3 \
|
|
||||||
tree.3 tree_srch.3 \
|
|
||||||
tree.3 tree_trav.3
|
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
|
||||||
|
|
||||||
# This has to come after the .include <bsd.lib.mk>. Not sure why.
|
|
||||||
|
|
||||||
.SUFFIXES: .mdoc .3
|
|
||||||
.mdoc.3:
|
|
||||||
sed -e 's/@INDOT@//g' \
|
|
||||||
-e 's/@SYSCALL_EXT@/2/g' \
|
|
||||||
-e 's/@SYS_OPS_EXT@/8/g' \
|
|
||||||
-e 's/^.Fd #include .*heap.h.*/.Fd #include <isc\/heap.h>/' \
|
|
||||||
< ${.ALLSRC} > ${.TARGET}
|
|
||||||
|
|
@ -13,7 +13,6 @@ SUBDIR= atrun \
|
|||||||
${_mail.local} \
|
${_mail.local} \
|
||||||
makekey \
|
makekey \
|
||||||
mknetid \
|
mknetid \
|
||||||
${_named-xfer} \
|
|
||||||
pppoed \
|
pppoed \
|
||||||
pt_chown \
|
pt_chown \
|
||||||
rbootd \
|
rbootd \
|
||||||
@ -35,10 +34,6 @@ SUBDIR= atrun \
|
|||||||
tftpd \
|
tftpd \
|
||||||
ypxfr
|
ypxfr
|
||||||
|
|
||||||
.if !defined(NO_BIND)
|
|
||||||
_named-xfer= named-xfer
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if !defined(NO_PF)
|
.if !defined(NO_PF)
|
||||||
_ftp-proxy= ftp-proxy
|
_ftp-proxy= ftp-proxy
|
||||||
.endif
|
.endif
|
||||||
|
@ -14,6 +14,8 @@ LIBALIAS?= ${DESTDIR}${LIBDIR}/libalias.a
|
|||||||
LIBARCHIVE?= ${DESTDIR}${LIBDIR}/libarchive.a
|
LIBARCHIVE?= ${DESTDIR}${LIBDIR}/libarchive.a
|
||||||
LIBASN1?= ${DESTDIR}${LIBDIR}/libasn1.a
|
LIBASN1?= ${DESTDIR}${LIBDIR}/libasn1.a
|
||||||
LIBATM?= ${DESTDIR}${LIBDIR}/libatm.a
|
LIBATM?= ${DESTDIR}${LIBDIR}/libatm.a
|
||||||
|
LIBBIND?= ${DESTDIR}${LIBDIR}/libbind.a
|
||||||
|
LIBBIND9?= ${DESTDIR}${LIBDIR}/libbind9.a
|
||||||
LIBBLUETOOTH?= ${DESTDIR}${LIBDIR}/libbluetooth.a
|
LIBBLUETOOTH?= ${DESTDIR}${LIBDIR}/libbluetooth.a
|
||||||
LIBBSDXML?= ${DESTDIR}${LIBDIR}/libbsdxml.a
|
LIBBSDXML?= ${DESTDIR}${LIBDIR}/libbsdxml.a
|
||||||
LIBBSNMP?= ${DESTDIR}${LIBDIR}/libbsnmp.a
|
LIBBSNMP?= ${DESTDIR}${LIBDIR}/libbsnmp.a
|
||||||
@ -32,6 +34,7 @@ LIBDEVINFO?= ${DESTDIR}${LIBDIR}/libdevinfo.a
|
|||||||
LIBDEVSTAT?= ${DESTDIR}${LIBDIR}/libdevstat.a
|
LIBDEVSTAT?= ${DESTDIR}${LIBDIR}/libdevstat.a
|
||||||
LIBDIALOG?= ${DESTDIR}${LIBDIR}/libdialog.a
|
LIBDIALOG?= ${DESTDIR}${LIBDIR}/libdialog.a
|
||||||
LIBDISK?= ${DESTDIR}${LIBDIR}/libdisk.a
|
LIBDISK?= ${DESTDIR}${LIBDIR}/libdisk.a
|
||||||
|
LIBDNS?= ${DESTDIR}${LIBDIR}/libdns.a
|
||||||
LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a
|
LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a
|
||||||
LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a
|
LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a
|
||||||
LIBFL?= "don't use LIBFL, use LIBL"
|
LIBFL?= "don't use LIBFL, use LIBL"
|
||||||
@ -48,6 +51,8 @@ LIBHISTORY?= ${DESTDIR}${LIBDIR}/libhistory.a
|
|||||||
LIBIPSEC?= ${DESTDIR}${LIBDIR}/libipsec.a
|
LIBIPSEC?= ${DESTDIR}${LIBDIR}/libipsec.a
|
||||||
LIBIPX?= ${DESTDIR}${LIBDIR}/libipx.a
|
LIBIPX?= ${DESTDIR}${LIBDIR}/libipx.a
|
||||||
LIBISC?= ${DESTDIR}${LIBDIR}/libisc.a
|
LIBISC?= ${DESTDIR}${LIBDIR}/libisc.a
|
||||||
|
LIBISCCC?= ${DESTDIR}${LIBDIR}/libisccc.a
|
||||||
|
LIBISCCFG?= ${DESTDIR}${LIBDIR}/libisccfg.a
|
||||||
LIBKADM5CLNT?= ${DESTDIR}${LIBDIR}/libkadm5clnt.a
|
LIBKADM5CLNT?= ${DESTDIR}${LIBDIR}/libkadm5clnt.a
|
||||||
LIBKADM5SRV?= ${DESTDIR}${LIBDIR}/libkadm5srv.a
|
LIBKADM5SRV?= ${DESTDIR}${LIBDIR}/libkadm5srv.a
|
||||||
LIBKAFS5?= ${DESTDIR}${LIBDIR}/libkafs5.a
|
LIBKAFS5?= ${DESTDIR}${LIBDIR}/libkafs5.a
|
||||||
|
@ -44,8 +44,6 @@ SUBDIR= alias \
|
|||||||
cut \
|
cut \
|
||||||
${_dig} \
|
${_dig} \
|
||||||
dirname \
|
dirname \
|
||||||
${_dnskeygen} \
|
|
||||||
${_dnsquery} \
|
|
||||||
du \
|
du \
|
||||||
ee \
|
ee \
|
||||||
elf2aout \
|
elf2aout \
|
||||||
@ -131,6 +129,8 @@ SUBDIR= alias \
|
|||||||
nice \
|
nice \
|
||||||
nl \
|
nl \
|
||||||
nohup \
|
nohup \
|
||||||
|
${_nslookup} \
|
||||||
|
${_nsupdate} \
|
||||||
objformat \
|
objformat \
|
||||||
opieinfo \
|
opieinfo \
|
||||||
opiekey \
|
opiekey \
|
||||||
@ -231,14 +231,14 @@ _truss= truss
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NOATM)
|
.if !defined(NOATM)
|
||||||
_atm= atm
|
#_atm= atm
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NO_BIND)
|
.if !defined(NO_BIND)
|
||||||
_dig= dig
|
_dig= dig
|
||||||
_dnskeygen= dnskeygen
|
|
||||||
_dnsquery= dnsquery
|
|
||||||
_host= host
|
_host= host
|
||||||
|
_nslookup= nslookup
|
||||||
|
_nsupdate= nsupdate
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NO_BLUETOOTH)
|
.if !defined(NO_BLUETOOTH)
|
||||||
|
@ -1,13 +1,21 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
USE_LIBBIND= yes
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
.include "${.CURDIR}/../../usr.sbin/named/Makefile.inc"
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/dig
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/bin/dig
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
.PATH: ${BIND_DIR}/bin/nslookup
|
|
||||||
.PATH: ${BIND_DIR}/doc/man
|
|
||||||
|
|
||||||
PROG= dig
|
PROG= dig
|
||||||
SRCS= dig.c list.c subr.c debug.c send.c
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= dig.c dighost.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/include
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= dig.1
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -1,11 +1,21 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
USE_LIBBIND= yes
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
.include "${.CURDIR}/../../usr.sbin/named/Makefile.inc"
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/dig
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/bin/host
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
.PATH: ${BIND_DIR}/doc/man
|
|
||||||
|
|
||||||
PROG= host
|
PROG= host
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= dighost.c host.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/include
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= host.1
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
21
usr.bin/nslookup/Makefile
Normal file
21
usr.bin/nslookup/Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/dig
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
PROG= nslookup
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= dighost.c nslookup.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/include
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= nslookup.1
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
21
usr.bin/nsupdate/Makefile
Normal file
21
usr.bin/nsupdate/Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/nsupdate
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
PROG= nsupdate
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= nsupdate.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/include
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= nsupdate.8
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
@ -19,7 +19,7 @@ SUBDIR= ac \
|
|||||||
${_boot0cfg} \
|
${_boot0cfg} \
|
||||||
${_boot98cfg} \
|
${_boot98cfg} \
|
||||||
bootparamd \
|
bootparamd \
|
||||||
bsnmpd \
|
${_bsnmpd} \
|
||||||
${_btxld} \
|
${_btxld} \
|
||||||
burncd \
|
burncd \
|
||||||
cdcontrol \
|
cdcontrol \
|
||||||
@ -36,6 +36,8 @@ SUBDIR= ac \
|
|||||||
devinfo \
|
devinfo \
|
||||||
digictl \
|
digictl \
|
||||||
diskinfo \
|
diskinfo \
|
||||||
|
${_dnssec-keygen} \
|
||||||
|
${_dnssec-signzone} \
|
||||||
${_editmap} \
|
${_editmap} \
|
||||||
edquota \
|
edquota \
|
||||||
${_eeprom} \
|
${_eeprom} \
|
||||||
@ -94,8 +96,8 @@ SUBDIR= ac \
|
|||||||
mtree \
|
mtree \
|
||||||
${_named} \
|
${_named} \
|
||||||
${_named.reload} \
|
${_named.reload} \
|
||||||
${_named.restart} \
|
${_named-checkconf} \
|
||||||
${_ndc} \
|
${_named-checkzone} \
|
||||||
${_ndiscvt} \
|
${_ndiscvt} \
|
||||||
ndp \
|
ndp \
|
||||||
newsyslog \
|
newsyslog \
|
||||||
@ -129,6 +131,8 @@ SUBDIR= ac \
|
|||||||
repquota \
|
repquota \
|
||||||
${_rip6query} \
|
${_rip6query} \
|
||||||
rmt \
|
rmt \
|
||||||
|
${_rndc} \
|
||||||
|
${_rndc-confgen} \
|
||||||
${_route6d} \
|
${_route6d} \
|
||||||
rpcbind \
|
rpcbind \
|
||||||
rpc.lockd \
|
rpc.lockd \
|
||||||
@ -188,15 +192,18 @@ _sysinstall= sysinstall
|
|||||||
|
|
||||||
.if !defined(NOATM)
|
.if !defined(NOATM)
|
||||||
_atm= atm
|
_atm= atm
|
||||||
|
#_bsnmpd= bsnmpd
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NO_BIND)
|
.if !defined(NO_BIND)
|
||||||
_named= named
|
#_dnssec-keygen= dnssec-keygen
|
||||||
_named.reload= named.reload
|
#_dnssec-signzone= dnssec-signzone
|
||||||
_named.restart= named.restart
|
_named= named
|
||||||
_ndc= ndc
|
_named.reload= named.reload
|
||||||
_nslookup= nslookup
|
_named-checkconf= named-checkconf
|
||||||
_nsupdate= nsupdate
|
_named-checkzone= named-checkzone
|
||||||
|
_rndc= rndc
|
||||||
|
_rndc-confgen= rndc-confgen
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NO_BLUETOOTH)
|
.if !defined(NO_BLUETOOTH)
|
||||||
|
21
usr.sbin/named-checkconf/Makefile
Normal file
21
usr.sbin/named-checkconf/Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/check
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
PROG= named-checkconf
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= named-checkconf.c check-tool.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${LIB_BIND_DIR}
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= named-checkconf.8
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
21
usr.sbin/named-checkzone/Makefile
Normal file
21
usr.sbin/named-checkzone/Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/check
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
PROG= named-checkzone
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= named-checkzone.c check-tool.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${LIB_BIND_DIR}
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= named-checkzone.8
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
@ -1,15 +1,9 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
.include "${.CURDIR}/../named/Makefile.inc"
|
SCRIPTS= named.reload.sh
|
||||||
|
|
||||||
SCRIPTS= named.reload
|
|
||||||
MAN= named.reload.8
|
MAN= named.reload.8
|
||||||
CLEANFILES+= ${SCRIPTS}
|
|
||||||
SCRIPTSNAME= ${SCRIPTS}
|
|
||||||
|
|
||||||
named.reload: named.reload.sh ${BIND_DIR}/Makefile
|
LINKS= ${BINDIR}/named.reload ${BINDIR}/named.reconfig
|
||||||
sed -e "s|%INDOT%|${INDOT}|" \
|
MLINKS= named.reload.8 named.reconfig.8
|
||||||
-e "s|%DESTSBIN%|${DESTSBIN}|" \
|
|
||||||
< ${.CURDIR}/named.reload.sh > ${.TARGET}
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -1,66 +1,68 @@
|
|||||||
.\" ++Copyright++ 1987, 1993
|
.\"-
|
||||||
.\" -
|
.\" Copyright (c) 2004 Dag-Erling Coïdan Smørgrav
|
||||||
.\" Copyright (c) 1987, 1993
|
.\" All rights reserved.
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
.\" are met:
|
.\" are met:
|
||||||
.\" 1. Redistributions of source code must retain the above copyright
|
.\" 1. Redistributions of source code must retain the above copyright
|
||||||
.\" notice, this list of conditions and the following disclaimer.
|
.\" notice, this list of conditions and the following disclaimer
|
||||||
|
.\" in this position and unchanged.
|
||||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||||
.\" notice, this list of conditions and the following disclaimer in the
|
.\" notice, this list of conditions and the following disclaimer in the
|
||||||
.\" documentation and/or other materials provided with the distribution.
|
.\" documentation and/or other materials provided with the distribution.
|
||||||
.\" 4. Neither the name of the University nor the names of its contributors
|
|
||||||
.\" may be used to endorse or promote products derived from this software
|
|
||||||
.\" without specific prior written permission.
|
|
||||||
.\"
|
.\"
|
||||||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\" SUCH DAMAGE.
|
|
||||||
.\" -
|
|
||||||
.\" Portions Copyright (c) 1993 by Digital Equipment Corporation.
|
|
||||||
.\"
|
.\"
|
||||||
.\" Permission to use, copy, modify, and 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, and that
|
|
||||||
.\" the name of Digital Equipment Corporation not be used in advertising or
|
|
||||||
.\" publicity pertaining to distribution of the document or software without
|
|
||||||
.\" specific, written prior permission.
|
|
||||||
.\"
|
|
||||||
.\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
|
|
||||||
.\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
|
|
||||||
.\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
|
|
||||||
.\" CORPORATION 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.
|
|
||||||
.\" -
|
|
||||||
.\" --Copyright--
|
|
||||||
.\"
|
|
||||||
.\" from hostname.7 6.4 (Berkeley) 1/16/90
|
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 26, 1993
|
.Dd September 21, 2004
|
||||||
.Dt @INDOT_U@NAMED.RELOAD @SYS_OPS_EXT_U@
|
.Dt NAMED.RELOAD 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm @INDOT@named.reload
|
.Nm named.reconfig ,
|
||||||
.Nd "cause the name server to synchronize its database"
|
.Nm named.reload
|
||||||
|
.Nd reload name server configuration
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm named.reconfig
|
||||||
|
.Op Fl V
|
||||||
|
.Op Fl c config-file
|
||||||
|
.Op Fl k key-file
|
||||||
|
.Op Fl s server
|
||||||
|
.Op Fl p port
|
||||||
|
.Op Fl y keyid
|
||||||
|
.Nm named.reload
|
||||||
|
.Op Fl V
|
||||||
|
.Op Fl c config-file
|
||||||
|
.Op Fl k key-file
|
||||||
|
.Op Fl s server
|
||||||
|
.Op Fl p port
|
||||||
|
.Op Fl y keyid
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
This command runs
|
The
|
||||||
.Xr ndc @SYS_OPS_EXT@
|
.Nm named.reconfig
|
||||||
which reloads the running name server.
|
command signals the name server to reload its configuration files and
|
||||||
|
load any new zones.
|
||||||
|
.Pp
|
||||||
|
The
|
||||||
|
.Nm named.reload
|
||||||
|
command signals the name server to reload its configuration files and
|
||||||
|
all zones.
|
||||||
|
.Pp
|
||||||
|
Both these commands take the same command-line arguments as
|
||||||
|
.Xr rndc 8 ,
|
||||||
|
except for the command argument, which is implied by the name.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr @INDOT@named @SYS_OPS_EXT@ ,
|
.Xr named.conf 5 ,
|
||||||
.Xr @INDOT@named.restart @SYS_OPS_EXT@ ,
|
.Xr rndc.conf 5 ,
|
||||||
.Xr @INDOT@ndc @SYS_OPS_EXT@
|
.Xr named 8 ,
|
||||||
|
.Xr rndc 8
|
||||||
|
@ -1,7 +1,42 @@
|
|||||||
#!/bin/sh -
|
#!/bin/sh
|
||||||
|
#-
|
||||||
|
# Copyright (c) 2004 Dag-Erling Coïdan Smørgrav
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions
|
||||||
|
# are met:
|
||||||
|
# 1. Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer
|
||||||
|
# in this position and unchanged.
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in the
|
||||||
|
# documentation and/or other materials provided with the distribution.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
|
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
|
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||||
|
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
# from named.reload 5.2 (Berkeley) 6/27/89
|
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
|
|
||||||
exec %DESTSBIN%/%INDOT%ndc reload
|
rndc=/usr/sbin/rndc
|
||||||
|
me=$(basename $0)
|
||||||
|
cmd=${me#named.}
|
||||||
|
cmd=${cmd%.sh}
|
||||||
|
|
||||||
|
args=$(getopt "c:k:s:p:Vy:" "$@")
|
||||||
|
if [ $? -ne 0 -o $# -ne 0 ] ; then
|
||||||
|
echo "usage: ${me} [-V] [-c config-file] [-k key-file]" 1>&2
|
||||||
|
echo " [-s server] [-p port] [-y keyid]" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "${rndc}" "$@" "${cmd}"
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
# $FreeBSD$
|
|
||||||
|
|
||||||
.include "${.CURDIR}/../named/Makefile.inc"
|
|
||||||
|
|
||||||
SCRIPTS= named.restart
|
|
||||||
MAN= named.restart.8
|
|
||||||
CLEANFILES+= ${SCRIPTS}
|
|
||||||
SCRIPTSNAME= ${SCRIPTS}
|
|
||||||
|
|
||||||
named.restart: named.restart.sh ${BIND_DIR}/Makefile
|
|
||||||
sed -e "s|%INDOT%|${INDOT}|" \
|
|
||||||
-e "s|%DESTSBIN%|${DESTSBIN}|" \
|
|
||||||
< ${.CURDIR}/named.restart.sh > named.restart
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
|
@ -1,73 +0,0 @@
|
|||||||
.\" ++Copyright++ 1987, 1993
|
|
||||||
.\" -
|
|
||||||
.\" Copyright (c) 1987, 1993
|
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
|
||||||
.\"
|
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
|
||||||
.\" modification, are permitted provided that the following conditions
|
|
||||||
.\" are met:
|
|
||||||
.\" 1. Redistributions of source code must retain the above copyright
|
|
||||||
.\" notice, this list of conditions and the following disclaimer.
|
|
||||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
.\" notice, this list of conditions and the following disclaimer in the
|
|
||||||
.\" documentation and/or other materials provided with the distribution.
|
|
||||||
.\" 4. Neither the name of the University nor the names of its contributors
|
|
||||||
.\" may be used to endorse or promote products derived from this software
|
|
||||||
.\" without specific prior written permission.
|
|
||||||
.\"
|
|
||||||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
||||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
||||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
||||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
||||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
||||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
||||||
.\" SUCH DAMAGE.
|
|
||||||
.\" -
|
|
||||||
.\" Portions Copyright (c) 1993 by Digital Equipment Corporation.
|
|
||||||
.\"
|
|
||||||
.\" Permission to use, copy, modify, and 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, and that
|
|
||||||
.\" the name of Digital Equipment Corporation not be used in advertising or
|
|
||||||
.\" publicity pertaining to distribution of the document or software without
|
|
||||||
.\" specific, written prior permission.
|
|
||||||
.\"
|
|
||||||
.\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
|
|
||||||
.\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
|
|
||||||
.\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
|
|
||||||
.\" CORPORATION 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.
|
|
||||||
.\" -
|
|
||||||
.\" --Copyright--
|
|
||||||
.\"
|
|
||||||
.\" from hostname.7 6.4 (Berkeley) 1/16/90
|
|
||||||
.\" $FreeBSD$
|
|
||||||
.\"
|
|
||||||
.Dd June 26, 1993
|
|
||||||
.Dt @INDOT_U@NAMED.RESTART @SYS_OPS_EXT_U@
|
|
||||||
.Os
|
|
||||||
.Sh NAME
|
|
||||||
.Nm @INDOT@named.restart
|
|
||||||
.Nd "stop and restart the name server"
|
|
||||||
.Sh DESCRIPTION
|
|
||||||
This command runs
|
|
||||||
.Xr ndc @SYS_OPS_EXT@
|
|
||||||
which restarts the running name server with the command line options
|
|
||||||
specified in
|
|
||||||
.Xr rc.conf 5 .
|
|
||||||
.Sh BUGS
|
|
||||||
Does not wait after killing the old server before starting a new one; since
|
|
||||||
the server could take some time to die and the new one will experience a
|
|
||||||
fatal error if the old one isn't gone by the time it starts, you can be left
|
|
||||||
in a situation where you have no name server at all.
|
|
||||||
.Sh SEE ALSO
|
|
||||||
.Xr @INDOT@named @SYS_OPS_EXT@ ,
|
|
||||||
.Xr @INDOT@named.reload @SYS_OPS_EXT@ ,
|
|
||||||
.Xr @INDOT@ndc @SYS_OPS_EXT@
|
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh -
|
|
||||||
#
|
|
||||||
# from named.restart 5.4 (Berkeley) 6/27/89
|
|
||||||
# $FreeBSD$
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ -r /etc/defaults/rc.conf ]; then
|
|
||||||
. /etc/defaults/rc.conf
|
|
||||||
source_rc_confs
|
|
||||||
elif [ -r /etc/rc.conf ]; then
|
|
||||||
. /etc/rc.conf
|
|
||||||
fi
|
|
||||||
exec %DESTSBIN%/%INDOT%ndc -n ${named_program} restart ${named_flags}
|
|
@ -1,44 +1,33 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
USE_LIBBIND= true
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
.include "${.CURDIR}/Makefile.inc"
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/named
|
||||||
|
|
||||||
.PATH: ${BIND_DIR}/bin/named ${BIND_DIR}/doc/man
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
PROG= named
|
PROG= named
|
||||||
MAN= named.conf.5 named.8 named-bootconf.8 nsupdate.8
|
|
||||||
SRCS= tmp_version.c pathnames.h \
|
|
||||||
db_dump.c db_load.c db_lookup.c db_save.c db_update.c \
|
|
||||||
db_glue.c db_ixfr.c db_sec.c db_tsig.c \
|
|
||||||
ns_parser.y ns_lexer.c ns_parseutil.c ns_ctl.c \
|
|
||||||
ns_forw.c ns_init.c ns_main.c ns_maint.c ns_req.c \
|
|
||||||
ns_resp.c ns_stats.c ns_ncache.c ns_xfr.c ns_glue.c \
|
|
||||||
ns_udp.c ns_config.c ns_update.c ns_ixfr.c ns_signal.c \
|
|
||||||
ns_sort.c ns_notify.c
|
|
||||||
|
|
||||||
.if exists(${.OBJDIR}/../../lib/libisc)
|
.PATH: ${SRCDIR}/unix
|
||||||
LIBISCDIR:= ${.OBJDIR}/../../lib/libisc
|
SRCS+= os.c
|
||||||
.else
|
|
||||||
LIBISCDIR!= cd ${.CURDIR}/../../lib/libisc; make -V .OBJDIR
|
|
||||||
.endif
|
|
||||||
LIBISC:= ${LIBISCDIR}/libisc.a
|
|
||||||
|
|
||||||
DPADD+= ${LIBISC}
|
.PATH: ${SRCDIR}
|
||||||
LDADD+= ${LIBISC}
|
SRCS+= aclconf.c builtin.c client.c config.c control.c \
|
||||||
|
controlconf.c interfacemgr.c \
|
||||||
|
listenlist.c log.c logconf.c main.c notify.c \
|
||||||
|
query.c server.c sortlist.c \
|
||||||
|
tkeyconf.c tsigconf.c update.c xfrout.c \
|
||||||
|
zoneconf.c \
|
||||||
|
lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
|
||||||
|
lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c
|
||||||
|
|
||||||
HTMLS= acl.html address_list.html comments.html config.html controls.html \
|
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
|
||||||
docdef.html example.html include.html index.html key.html \
|
|
||||||
logging.html master.html options.html server.html trusted-keys.html \
|
|
||||||
zone.html
|
|
||||||
MISCS= DynamicUpdate FAQ.1of2 FAQ.2of2 rfc2317-notes.txt style.txt
|
|
||||||
FILES= ${HTMLS} ${MISCS}
|
|
||||||
.PATH: ${BIND_DIR}/doc/html ${BIND_DIR}/doc/misc
|
|
||||||
|
|
||||||
.for file in ${HTMLS}
|
DPADD+= ${BIND_DPADD}
|
||||||
FILESDIR_${file}= ${DOCDIR}/bind/html
|
LDADD+= ${BIND_LDADD}
|
||||||
.endfor
|
|
||||||
.for file in ${MISCS}
|
MAN= named.8 lwresd.8 named.conf.5
|
||||||
FILESDIR_${file}= ${DOCDIR}/bind/misc
|
|
||||||
.endfor
|
LINKS= ${BINDIR}/named ${BINDIR}/lwresd
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
# From: Id: Makefile.inc,v 8.4 1996/03/03 17:42:43 vixie Exp
|
|
||||||
# $FreeBSD$
|
|
||||||
|
|
||||||
.ifndef (Mk.Inc)
|
|
||||||
Mk.Inc?=defined
|
|
||||||
|
|
||||||
BIND_DIR= ${.CURDIR}/../../contrib/bind
|
|
||||||
|
|
||||||
VER!= cat ${BIND_DIR}/Version
|
|
||||||
|
|
||||||
PS= ps
|
|
||||||
PIDDIR= /var/run
|
|
||||||
DESTETC= /etc/namedb
|
|
||||||
DESTEXEC= /usr/libexec
|
|
||||||
DESTRUN= /var/run
|
|
||||||
DESTSBIN= /usr/sbin
|
|
||||||
DESTHELP= /usr/share/misc
|
|
||||||
|
|
||||||
CFLAGS+= -I${BIND_DIR}/port/freebsd/include \
|
|
||||||
-I${.CURDIR}/../../contrib/bind/bin/named
|
|
||||||
|
|
||||||
# This is mostly for named and named-xfer
|
|
||||||
.if defined(USE_LIBBIND)
|
|
||||||
# Sadly, mkdep doesn't know about -idirafter, which would be ideal here.
|
|
||||||
#CFLAGS+= -I${.CURDIR}/../../include -I${BIND_DIR}/include
|
|
||||||
CFLAGS+= -I${BIND_DIR}/include
|
|
||||||
|
|
||||||
.if exists(${.OBJDIR}/../../lib/libbind)
|
|
||||||
LIBBINDDIR:= ${.OBJDIR}/../../lib/libbind
|
|
||||||
.else
|
|
||||||
LIBBINDDIR!= cd ${.CURDIR}/../../lib/libbind; make -V .OBJDIR
|
|
||||||
.endif
|
|
||||||
LIBBIND:= ${LIBBINDDIR}/libbind.a
|
|
||||||
|
|
||||||
DPADD+= ${LIBBIND}
|
|
||||||
LDADD+= ${LIBBIND}
|
|
||||||
|
|
||||||
CLEANFILES+= tmp_version.c pathnames.h
|
|
||||||
CFLAGS+= -I.
|
|
||||||
|
|
||||||
tmp_version.c: version.c ${BIND_DIR}/Version
|
|
||||||
(u=$${USER-root} d=`pwd` h=`hostname` t=`LC_ALL=C date`; \
|
|
||||||
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
|
|
||||||
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
||||||
< ${BIND_DIR}/bin/named/version.c > tmp_version.c)
|
|
||||||
|
|
||||||
pathnames.h: ${BIND_DIR}/bin/named/pathtemplate.h \
|
|
||||||
${.CURDIR}/../../usr.sbin/named/Makefile.inc
|
|
||||||
rm -f pathnames.h
|
|
||||||
sed -e "s|%DESTSBIN%|${DESTSBIN}|" \
|
|
||||||
-e "s|%DESTEXEC%|${DESTEXEC}|" \
|
|
||||||
-e "s|%DESTETC%|${DESTETC}|" \
|
|
||||||
-e "s|%DESTRUN%|${DESTRUN}|" \
|
|
||||||
< ${BIND_DIR}/bin/named/pathtemplate.h > pathnames.h
|
|
||||||
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include "Makefile.maninc"
|
|
||||||
.endif
|
|
@ -1,58 +0,0 @@
|
|||||||
# From: Id: Makefile.maninc,v 8.1 1994/12/15 06:23:43 vixie Exp
|
|
||||||
# $FreeBSD$
|
|
||||||
|
|
||||||
# (the BIND kit's man page Makefile has gotten bad and crazy over the years.
|
|
||||||
# this file has to be included AFTER bsd.prog.mk (which includes bsd.man.mk))
|
|
||||||
CMD_EXT= 1
|
|
||||||
SYSCALL_EXT= 2
|
|
||||||
BSD_SYSCALL_EXT=2
|
|
||||||
LIB_C_EXT= 3
|
|
||||||
LIB_NETWORK_EXT=3
|
|
||||||
FORMAT_EXT= 5
|
|
||||||
DESC_EXT= 7
|
|
||||||
SYS_OPS_EXT= 8
|
|
||||||
|
|
||||||
EXT_SED_CMD = INDOT_U=`echo "${INDOT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export INDOT_U; \
|
|
||||||
XFER_INDOT_U=`echo "${XFER_INDOT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export XFER_INDOT_U; \
|
|
||||||
CMD_EXT_U=`echo "${CMD_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export CMD_EXT_U; \
|
|
||||||
SYS_OPS_EXT_U=`echo "${SYS_OPS_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export SYS_OPS_EXT_U; \
|
|
||||||
LIB_NETWORK_EXT_U=`echo "${LIB_NETWORK_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export LIB_NETWORK_EXT_U; \
|
|
||||||
FORMAT_EXT_U=`echo "${FORMAT_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export FORMAT_EXT_U; \
|
|
||||||
DESC_EXT_U=`echo "${DESC_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export DESC_EXT_U; \
|
|
||||||
SYSCALL_EXT_U=`echo "${SYSCALL_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export SYSCALL_EXT_U; \
|
|
||||||
BSD_SYSCALL_EXT_U=`echo "${BSD_SYSCALL_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export BSD_SYSCALL_EXT_U; \
|
|
||||||
LIB_C_EXT_U=`echo "${LIB_C_EXT}"|LC_ALL=C tr "a-z" "A-Z"`; \
|
|
||||||
export LIB_C_EXT_U; \
|
|
||||||
sed -e "s/@INDOT@/${INDOT}/g" \
|
|
||||||
-e "s/@INDOT_U@/$${INDOT_U}/g" \
|
|
||||||
-e "s/@XFER_INDOT@/${XFER_INDOT}/g" \
|
|
||||||
-e "s/@XFER_INDOT_U@/$${XFER_INDOT_U}/g" \
|
|
||||||
-e "s/@CMD_EXT@/${CMD_EXT}/g" \
|
|
||||||
-e "s/@CMD_EXT_U@/$${CMD_EXT_U}/g" \
|
|
||||||
-e "s/@LIB_NETWORK_EXT@/${LIB_NETWORK_EXT}/g" \
|
|
||||||
-e "s/@LIB_NETWORK_EXT_U@/$${LIB_NETWORK_EXT_U}/g" \
|
|
||||||
-e "s/@FORMAT_EXT@/${FORMAT_EXT}/g" \
|
|
||||||
-e "s/@FORMAT_EXT_U@/$${FORMAT_EXT_U}/g" \
|
|
||||||
-e "s/@DESC_EXT@/${DESC_EXT}/g" \
|
|
||||||
-e "s/@DESC_EXT_U@/$${DESC_EXT_U}/g" \
|
|
||||||
-e "s/@SYS_OPS_EXT@/${SYS_OPS_EXT}/g" \
|
|
||||||
-e "s/@SYS_OPS_EXT_U@/$${SYS_OPS_EXT_U}/g" \
|
|
||||||
-e "s/@SYSCALL_EXT@/${SYSCALL_EXT}/g" \
|
|
||||||
-e "s/@SYSCALL_EXT_U@/$${SYSCALL_EXT_U}/g" \
|
|
||||||
-e "s/@BSD_SYSCALL_EXT@/${BSD_SYSCALL_EXT}/g" \
|
|
||||||
-e "s/@BSD_SYSCALL_EXT_U@/$${BSD_SYSCALL_EXT_U}/g" \
|
|
||||||
-e "s/@LIB_C_EXT@/${LIB_C_EXT}/g" \
|
|
||||||
-e "s/@LIB_C_EXT_U@/$${LIB_C_EXT_U}/g" \
|
|
||||||
-e "s@/etc/named\.conf@/etc/namedb/named.conf@g" \
|
|
||||||
-e "s/^ *$$/.Pp/"
|
|
||||||
|
|
||||||
MANFILTER= ${EXT_SED_CMD}
|
|
24
usr.sbin/rndc-confgen/Makefile
Normal file
24
usr.sbin/rndc-confgen/Makefile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/rndc
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
PROG= rndc-confgen
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/unix
|
||||||
|
SRCS+= os.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= rndc-confgen.c util.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= rndc-confgen.8
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
24
usr.sbin/rndc/Makefile
Normal file
24
usr.sbin/rndc/Makefile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
||||||
|
LIB_BIND_DIR= ${.CURDIR}/../../lib/bind
|
||||||
|
SRCDIR= ${BIND_DIR}/bin/rndc
|
||||||
|
|
||||||
|
.include "${LIB_BIND_DIR}/config.mk"
|
||||||
|
|
||||||
|
PROG= rndc
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}/unix
|
||||||
|
SRCS+= os.c
|
||||||
|
|
||||||
|
.PATH: ${SRCDIR}
|
||||||
|
SRCS+= rndc.c util.c
|
||||||
|
|
||||||
|
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
|
||||||
|
|
||||||
|
DPADD+= ${BIND_DPADD}
|
||||||
|
LDADD+= ${BIND_LDADD}
|
||||||
|
|
||||||
|
MAN= rndc.8 rndc.conf.5
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue
Block a user