Commit Graph

149 Commits

Author SHA1 Message Date
christos 5862d9d92c Resolve conflicts 2004-05-18 00:10:39 +00:00
christos 9c2ff49b1e Import bind9 build framework 2004-05-18 00:06:57 +00:00
lukem 922c63e0b6 use != "no" 2004-01-03 13:46:30 +00:00
scw 801bdc886f Gcc3 for sh5 gets an ICE compiling ns_main.c at -O2.
Drop to -O1 for now when building for sh5.
2003-12-07 19:57:39 +00:00
itojun 29d9058dc7 remove BIND crypto portion, as the license doesn't fit our policy and we do not
import those sources.
2003-10-22 05:56:36 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem 8233be784c support MAKEVERBOSE 2003-10-19 06:12:07 +00:00
martin 0af2c4286d Remove sparc64 special case handling - no longer needed. 2003-09-19 16:39:52 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem c0a8541252 oops, typo in previous. should have been COPTS.sha.c. (this was not being compiled anyway, but...) 2003-07-22 12:50:46 +00:00
lukem 77c4c3827a use COPTS.sha1.c=-O0 to turn off optimization for sha1.c 2003-07-22 12:39:24 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
lukem 17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
lukem 0944ed1dd1 tmp_version.c also needs to depend up ${BIND_DIST_DIR}/Version 2002-06-28 16:27:14 +00:00
itojun ce924b0f55 sync with 8.3.2. 99% of conflicts were due to $NetBSD$ tag. 2002-06-20 11:42:53 +00:00
wiz 320ebd413b Whitespace nits. 2002-01-19 03:06:54 +00:00
lukem b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
jmc c1c3d851ce Don't set $ROFF as the default from bsd.doc.mk is the same thing. This way
bsd.own.mk can override for cross builds correctly
2001-12-09 23:40:24 +00:00
itojun 59dea86dc0 disable DNSSEC build, for two reasons. (1) restrictive license
(2) due to protocol changes BIND8 DNSSEC code is not really useful
2001-05-27 04:39:40 +00:00
itojun 840fe8eadc put -NOESW to version number if MKCRYPTO != yes, to sync better with original
BIND8 makefiles.
2001-05-27 04:08:04 +00:00
itojun 4cd3525823 upgrade to 8.2.4. 2001-05-17 22:59:37 +00:00
itojun 9e66537acb use version identification same as ISC's. 2001-02-11 06:45:59 +00:00
lukem c1c612f728 link named-xfer statically, to make building chroot-ed named cages much easier 2001-02-11 01:33:59 +00:00
itojun 64a4efdbfa for sha.o target, use decl very similar to bsd.lib.mk 2001-01-28 01:43:26 +00:00
martin 3966d2696b Disable optimization when compiling sha.c.
This is a know bug (see our libc sha1 implementation and the associated
doc/hacks entry) with the toolchain used on sparc64 currently.

XXX - somebody please check/fix OBJDIR handling for this
XXX - somebody please fix the ****** toolchain
2001-01-28 00:42:20 +00:00
itojun cd938b3400 enable DNSSEC code (using -DDNSSAFE) if MKCRYPTO=yes 2001-01-27 08:14:43 +00:00
itojun ad5df36306 update $VER 2001-01-27 07:35:32 +00:00
itojun 1a7fc7b687 upgrade to BIND 8.2.3. the upgrade is critical (security fixes).
please test.
2001-01-27 07:21:56 +00:00
enami 30fc09dacc Use PRINTOBJDIR. 2001-01-11 13:15:06 +00:00
lukem 443a19e035 convert to using .WAIT 2001-01-09 03:13:39 +00:00
enami 270db080e9 Use PRINTOBJDIR. 2001-01-07 08:00:54 +00:00
tv a32617f770 This is now 8.2.2-P7, so update VER. 2000-11-13 22:45:05 +00:00
itojun 7da1bb7a9c synchronize with BIND 8.2.2-P7.
- resolve conflicts (there are many conflicts with $NetBSD$ tags -
  dunno why they happen).
- type pedant (couple of typecasts).

correct yacc-generated file handling.  remove bin/named/ns_parser.h,
use the header yacc generates at compilation time.
2000-11-10 09:56:56 +00:00
jmc a6e6938ba6 Needed bsd.own.mk before MKDOC gets defined. subdir picks it up too late 2000-10-23 06:45:18 +00:00
simonb 45ad1d18bb Only descend into the doc directory if ${MKDOC} != no. 2000-10-22 17:17:08 +00:00
is d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
mrg 25fc9bdc39 use libc inet_addr(3). fixes part of PR#10651 2000-08-14 11:30:41 +00:00
matt 3ab02a8704 More #include <stdlib.h> string, etc. cleanup 2000-07-04 20:27:35 +00:00
he cbc0b13fa7 Revert away from automatically generating port_ipv6.h, and install
a static once-generated version instead.  We know we have IPv6
headers available here.

The probing was problematical for several reasons:
 o it probed the host headers, not the headers in the build or DESTDIR
   tree (could be fixed in another way)
 o the probe_ipv6 script mucks with PATH, which would be problematical
   for cross compilation.
2000-05-06 16:07:42 +00:00
itojun 5d5dd022cb add bind operators guide into share/doc/smm/10.named. PR 9996. 2000-04-28 06:21:20 +00:00
itojun 548cc318ca do not try to use BIND4 code in libc.
dig/host/whatever assumes that it is using BIND8 code.  mixing BIND4 in
libc with BIND8 code will result in very strange behavior, or program panics.

it is not necessary for dig/host/whatever to obey /etc/nsswitch.conf, actually
dig(1) is explicit about it.

now dist/bind is almost clean BIND822p5, with the following exception:
- /etc/irs.conf will never be visited when running BIND8 toolchain,
  to make it less complex.  the search order for BIND8 toolchain is
  defined in dist/bind/lib/irs/gen.c:default_map_rules().
and usr.sbin/bind compiles them in BSD make framework, with no tricks at all.
2000-03-01 10:49:58 +00:00
mycroft a73ccc591a More .mk file fallout. *sigh* 2000-01-23 21:55:44 +00:00
garbled 2ae03f4ff8 Add CPPFLAGS so this can be cross compiled. 1999-12-24 19:12:38 +00:00
veego 5ceefc298e Backout the last change. 1999-11-30 20:34:51 +00:00
veego 626fb4bb79 ndc is now a binary so we don't need the 'exec' anymore. 1999-11-30 20:18:11 +00:00
sommerfeld 3e6c42c11a Bugfix: deal with ${CC} containing spaces. 1999-11-30 18:28:16 +00:00
veego 9f3c20bc0f Use the libc md5 function. 1999-11-28 17:39:06 +00:00
veego 5e5665ea10 Remove commented lines which are not used here. 1999-11-28 17:02:27 +00:00
veego ff8362d781 Install named.conf again into /usr/share/examples/named.
Somehow it vanished when I updated the bind version.
1999-11-28 16:58:16 +00:00
veego f038a8aeeb Add the missing all-named-xfer all-ndc: all-named target. 1999-11-21 16:55:23 +00:00
itojun 395f032639 s/make/${MAKE}/ 1999-11-21 16:46:33 +00:00
itojun b7a7f5becf use print-objdir instead.
Suggested by: tsubai
1999-11-21 16:39:54 +00:00
itojun 5d6d47c96c fix compilation of named-xfer and ndc, when you do "make obj" (including
"make build" from the top).

XXX
if you do "make obj", you have to reference:
	bind/named/obj/pathnames.h
from either of them by using relative path:
	${.OBJDIR} = bind/named-xfer/obj or
	${.CURDIR} = bind/named-xfer
-I${.OBJDIR}/../named was included but is not the correct one.
I used -I${.CURDIR}/../named/obj, but I'm not sure if it is the right way.
1999-11-21 16:26:03 +00:00
veego b4f26a2c2c Ups, remove the LDSTATIC which was only there for tests. 1999-11-20 20:42:39 +00:00
veego 3c25783fec Use the bind source from basesrc/dist/bind. 1999-11-20 19:47:10 +00:00
mrg b016d0483c fix MKSHARE=no 1999-11-19 04:20:14 +00:00
msaitoh 0fcbe067c6 s/ the the / the / 1999-10-08 20:13:42 +00:00
tron 7469644d8f Replace place holders (e.g. "@CMD_EXT@") with correct values for NetBSD. 1999-09-23 19:38:10 +00:00
itojun d6fd5e2c88 fix dig and nslookup.
sizeof(_res) must be the same for libc, libresolv and libbind.
libc and libresolve uses bind4 while libbind seems to use bind8.

complete fix would be to share the same codebase among libc and libbind,
but I don't know if importing bind8 into libc/libresolv (or bind9 to
all the places) is the right answer.  it involves a big change.

PR: 7966
1999-08-07 12:40:06 +00:00
tron 850b3263ac Remap "_res" to "bind_res" to fix link warnings on ELF systems. 1999-07-20 08:59:15 +00:00
tron 49492782ad Install "named.conf" to "/usr/share/examples/named". 1999-07-19 12:04:03 +00:00
abs bb69dd0964 bind comes with a very helpful sample named.conf, so install it in
/usr/share/examples/named. I'm not overwhelmed about moving the file
into src/share/examples but there is prior art (amd).
1999-07-19 02:30:43 +00:00
tron d5403b6b11 Remove unnecessary "${.CURDIR}/../nslookup" from ".PATH" target. 1999-07-12 08:31:49 +00:00
itojun 38347f727c s/getaddrinfo/get_addrinfo/, to avoid function name conflict with
library function getaddrinfo()
(is defined in RFC2553, will be somewhere in POSIX)
1999-06-30 12:27:34 +00:00
ross 740ba5bf1a Missing .El. 1999-03-30 20:38:33 +00:00
ross 376b343025 LP64 tweak. 1999-03-30 20:36:58 +00:00
tron 5acbe335e0 Forgot to commit this: install "named.conf.5". 1999-03-28 00:28:17 +00:00
tron 6a6b1bb99f Because this manual page describes DNSSEC features not available in
BIND 8.1.2 add a disclaimer about its origin at the top.
1999-03-27 00:10:47 +00:00
tron 7414e58610 Import "named.conf" manual page from BIND 8.2 distribution. The only
configuration command added after the 8.1.2 release is not even mentioned
so this one will do fine until the rest of 8.2 is imported.
1999-03-26 23:36:02 +00:00
kim 9b05f342df Revert to the version of host installed by the BIND distribution by default.
The contrib version was tagged `bind-contrib-host' before this change.
1999-03-26 20:12:44 +00:00
kim 45402fd3fc Install dig, dnsquery, host, nslookup, nsupdate and pawd in /usr/bin. 1999-03-26 20:04:50 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
erh 55f3a4b91b Fix .Bl/.El imbalance. 1999-03-10 09:29:08 +00:00
mrg 84e08b1a6a use this namespace.h to redefine the bits of libresolv we need, to avoid clashes with the resolver in libc. 1999-03-09 13:23:08 +00:00
mycroft d77575d3c8 Clean up SYNOPSIS formatting. 1999-03-07 11:58:22 +00:00
mycroft 9b3b0907e1 Don't use .Po/.Pc; this creates a diversion which overflows. 1999-03-07 04:49:50 +00:00
mrg 6ef324e7de getopt returns -1 not EOF. clear grouplist also if setting gid. 1999-02-23 15:54:26 +00:00
mrg 2aa01ad0b9 if we are chrooting, write a symlink for the pid file so that ndc, etc,
continue to work as normal.  this allows named to run in a chroot jail
with zero loss of functionality.  with the bind8 -u <user> flag, we can
also make it run as non-root.  "stay tuned."
1999-02-22 02:37:27 +00:00
lukem d5df3fdbce support $named_flags from rc.conf (this got lost in the upgrade to bind8) 1999-02-17 13:36:00 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
tron 4c07384685 Avoid problems when trying to link BIND 8 statically, fixes PR bin/6717
by gnatios Souvatzis.
1999-01-04 00:04:04 +00:00
tron 5b7db9e865 Remove "named-bootconf" while doing "make clean". 1998-12-15 01:06:04 +00:00
tron 572fc80939 * use better method to write comments to the correct location
* always create an "option" section because "named" will complain
  otherwise
* don't check if directory exists while converting a "directory"
  statement because we might do it on another machine
1998-12-15 01:00:53 +00:00
lukem 2cc5fd4000 * add support for /CHAOS and /HS suffixes to primary & secondary
directives, and add appropriate directives to the zone {} blocks
* change comment delimiter from '//' to '#' (which is more intuitive
  for unix config files)
* KNF formatting (single space indenting is hard to read)
1998-12-14 15:39:12 +00:00
ross efccda2e04 Needs <string.h> 1998-11-24 06:06:31 +00:00
ross 096af13560 Needs an LP64 fix plus a <string.h> 1998-11-24 06:06:10 +00:00
ross a19fc46ab9 Needs <string.h> 1998-11-24 06:05:34 +00:00
ross 0cb059b1db Incorrect void * casts on ns_panic() calls...LP64 warnings...kill kill kill 1998-11-24 06:05:07 +00:00
ross 40ed59e2df Needs <string.h> 1998-11-24 06:00:30 +00:00
tron d993679e1b Add manual page for "named-bootconf". 1998-11-19 21:11:45 +00:00
tron f3b515c1ec Put back RCS Ids which got clobbered during import. 1998-10-14 20:56:49 +00:00
tron d7d750d262 Fix build problems if object directories are used. 1998-10-09 19:30:02 +00:00
tron c8eb5cc943 Copy "named-xfer" binary to "/usr/libexec" not to "/usr/sbin".
Fixes bin/6261 by Geoff C. Wing.
1998-10-08 07:41:57 +00:00
tron d5a92147c7 Add support for "limit". 1998-10-05 21:37:18 +00:00
tron 6ed9191311 Fix bug in converting "sortlist", add support for "xfrnets". 1998-10-05 21:06:23 +00:00
tron 55b173081e These files shouldn't have been here at all. 1998-10-05 18:09:54 +00:00
tron a4b6188cd5 Import BIND 8.1.2. 1998-10-05 18:01:57 +00:00