Commit Graph

149 Commits

Author SHA1 Message Date
bjh21 d14e3d0f51 Don't use __RCSID or __COPYRIGHT unless they're defined. 2002-04-08 14:20:41 +00:00
thorpej 002142a2b5 * Don't use NetBSD's ELF headers, use those provided by BFD.
* Use bfd_{get,put}_{16,32,64}() rather than NetBSD's htobe32(), etc.
2002-04-01 21:58:09 +00:00
mrg eff7936f87 include <string.h> as necessary. 2002-03-02 12:21:14 +00:00
wiz 4da241dfa0 Whitespace nits. 2002-02-23 17:01:20 +00:00
thorpej 2365d7ec78 Add a '-s' option which will cause mdsetimage to write back the
actual image size copied back into the kernel.
2002-02-23 02:30:37 +00:00
lukem e2311f6fa0 use ${INSTALL_FILE} as appropriate 2002-02-09 09:21:47 +00:00
perry 84a067585a postqueue needs to be sgid maildrop. 2002-02-04 02:39:06 +00:00
perry 13b9b0e653 And install the script as a SCRIPT... 2002-02-03 00:50:36 +00:00
perry a292bb8303 Install post-install and postfix-files.
This is likely not enough yet.
2002-02-03 00:47:49 +00:00
perry 1f31e11b0f update reachovers for postfix 1.1.2 2002-02-02 23:21:45 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv 5b071d154b Conditionally define M4 so it can be used as a host tool. 2002-01-31 19:12:43 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
tron cb9b650951 Define "HAVE_ERR_H" to fix native build. 2002-01-22 13:50:53 +00:00
tv 5c99654526 Add hooks for cross-hosting on non-NetBSD platforms. 2002-01-21 19:22:53 +00:00
cgd 6d4088dbde Convert this code to use read/write rather than mmap followed by read
into the mmap'd region.  (reviewed by thorpej.)

This is done to facilitate use as a host tool on not-necessarily-NetBSD
host systems.  Specifically, it works around problems discovered on
linux (mostly tested on 2.4.2-smp / RH 7.1, but also seen on other
variants) in which mmap(...MAP_SHARED...) on NFS files doesn't work
properly:

74 [hardy] RAMDISK.EB % uname -a
Linux hardy 2.4.2-2smp #1 SMP Sun Apr 8 20:21:34 EDT 2001 i686 unknown
75 [hardy] RAMDISK.EB % cat /etc/issue

Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.2-2smp on a 2-processor i686

76 [hardy] RAMDISK.EB % df .
Filesystem           1k-blocks      Used Available Use% Mounted on
fs:/home/cgd
                     104857600  98764968   6092632  95% /home/cgd
77 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:41 PST 2001
a1f35f085f130983892933df92d23be4  netbsd
78 [hardy] RAMDISK.EB % nbmdsetimage netbsd ~/proj-local/rd
79 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:49 PST 2001
740cbfb0a8432b7d3a6bf3421655e270  netbsd
80 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:51 PST 2001
a8c60aae879ead6893f074e83c23d70a  netbsd
81 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:54 PST 2001
a8c60aae879ead6893f074e83c23d70a  netbsd
82 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:55 PST 2001
a1f35f085f130983892933df92d23be4  netbsd
83 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:57 PST 2001
a1f35f085f130983892933df92d23be4  netbsd
84 [hardy] RAMDISK.EB %

("isn't that cool?")
2002-01-03 06:21:47 +00:00
thorpej 89b1a9ca73 Introduce 3 new MK* variables that have effect in the USE_NEW_TOOLCHAIN
case:

	MKBFD	If set to "no", disables building of libbfd, libiberty,
		and all things that depend on them (binutils/gas/ld, gdb,
		dbsym, mdsetimage).

	MKGDB	If set to "no", disables bulding of gdb.

	MKGCC	If set to "no", disables building of gcc and the
		gcc-related libraries (libg2c, libgcc, libobjc, libstdc++).

These are useful for building platforms for which either of the following
situations are true:

	(1) You have no userland from which to run toolchain2netbsd
	    in order to build the appropriate toolchain build framework.

	(2) The platform which you are building requires a newer set
	    of tools than are currently in the tree (e.g. x86-64, ia64).
2001-12-31 23:04:11 +00:00
yamt 3dd7e76ccf fix typo. (.o in SRCS) 2001-12-20 22:18:50 +00:00
thorpej 9b744bba67 Descend into dbsym. 2001-12-15 03:23:39 +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
tv b5cd2489b2 Major overhaul of src/tools and host toolchain. Summary of changes:
* Rewrite src/tools Make logic to work like the rest of the tree wrt
  "dependall" and "install".  The old "make build" hack is gone.

* Remove the MKTOOLS logic.  This was linked to the "make build" hack,
  and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
  BSD make wrapper.  Use new ${.ALLTARGETS} variable to scan for
  targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
  src/usr.* and src/gnu/usr.* that would do target filename rewriting
  (improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
  MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.
2001-11-12 23:16:17 +00:00
itojun ebdef2d397 backout IPv6 patch to postfix. IPv6 support for "mynetworks" check was
left unimplemented, and postfix daemon could become an open relay for
IPv6 connectivity.  it seems that we need to torture-test IPv6 patch outside
of the tree more.
From moley@wide.ad.jp
2001-11-11 05:26:50 +00:00
wiz 1c65d6114b Remove a trailing space. 2001-11-09 09:30:59 +00:00
thorpej 2436e0546d This is not a Sun3-specific program. 2001-11-09 07:43:16 +00:00
thorpej 028f694d86 Make an error message more informative. 2001-11-09 07:36:03 +00:00
thorpej aeeee8c24d New BFD-using dbsym(8) written by Simon Burge, with some code
derived from the BFD-using mdsetimage(8).

TODO:
* Use loadfile(), rather than home-grown ELF parsing code (requires
  some changes to loadfile()).
* Support a.out like the gwr's dbsym(8) (this comes for free when
  we switch to loadfile()).
2001-11-09 05:52:20 +00:00
thorpej f2cc4f7bb2 Give the host tool build more control over the HOST_CPPFLAGS. 2001-10-25 02:37:18 +00:00
thorpej a0e5722800 Descend into mdsetimage. 2001-10-24 23:58:58 +00:00
thorpej e46fa74fd3 Add support for building as a target-prefixed cross-tool from src/tools. 2001-10-24 23:56:38 +00:00
simonb ced4db818c Bah, move ".include <bsd.own.mk>" to before USE_NEW_TOOLCHAIN check. 2001-10-22 03:31:41 +00:00
simonb 83a2424500 Add a Makefile for mdsetimage that tries to do the new/old toolchain
dance to get to libbfd.  Tested on new and old toolchain, makefile
messiness to be verified before being enabled.
2001-10-22 03:23:00 +00:00
simonb ad8890a6fa Add the bfd-mdsetimage pkgsrc version of mdsetimage - this is Chris
Demetriou's origianal mdsetimage with modifications by Kazuki Sakamoto
to use libbfd.  It lives in gnusrc because libbfd is GPL, not LGPL.
2001-10-22 03:19:29 +00:00
tv d20ff568a2 Remove all traces of "aux.m4" so as not to conflict with Microsoft host OS's.
(Since we aren't A/UX, this is not much of a loss for a NetBSD host.)
2001-10-19 02:53:02 +00:00
itojun 3c86caea97 sync wth 20010228-pl04. 2001-08-09 08:10:17 +00:00
itojun 731b8156e5 sync with 8.11.4. 2001-05-29 04:18:24 +00:00
tron 904d063d8b Update list of dynamically generated source files. 2001-03-29 09:59:09 +00:00
thorpej f01ebf7a51 Re-enable IPv6 -- Itojun has fixed all the bugs :-) 2001-03-26 22:57:17 +00:00
itojun c82eaba9eb enable STARTTLS, gshapiro@sendmail says it works just fine on freebsd.
report if there's any problem.
2001-03-21 17:37:11 +00:00
thorpej eb899dbdce Disable the IPv6 support in postfix for now; there are some
Problems.  I'll see if Itojun and I can get them fixed this
coming week at IETF.
2001-03-18 07:53:02 +00:00
itojun 6288e2e767 correct installation location for postfix flush/spawn/lmtp 2001-03-15 12:03:11 +00:00
itojun 802ae96ef7 pull latest IPv6 patch in. 2001-03-13 18:34:19 +00:00
itojun a76e001301 upgrade in-tree postfix to release-20010228. 2001-03-13 18:13:16 +00:00
itojun 5b8682b0d6 no longer need to replace relative path in netbsd-proto.mc 2001-02-28 04:16:04 +00:00
itojun b2ba60b861 no longer need to ship IPv4-only sendmail.cf. 2001-01-15 17:57:44 +00:00
itojun ef39bb4e09 pull DaemonPortOptions modifier for "optional address", from
8.12.x change (Modifiers=O).
this will let us use the same sendmail.cf file on IPv4/v6, and IPv4-only
kernels. (we do not really need netbsd-proto-IPv4only.cf any more)
2001-01-15 17:49:25 +00:00
enami 5d9e26fa5b - Use PRINTOBJDIR and .WAIT where appropriate.
- Define PARALLEL in gdb/Makefile since multiple yacc might run.
2001-01-09 08:52:56 +00:00
itojun c732fcc192 upgrade to sendmail 8.11.2. 2001-01-04 12:36:48 +00:00
itojun 752edea055 add STARTTLS handling - commented out for now. someone with knowledge
please test it.
2001-01-04 12:18:49 +00:00
itojun ae3abaf5cd do not visit "conf" if MKSHARE == no 2000-12-29 02:50:35 +00:00
itojun 107490d839 netbsd has strlcpy/strlcat 2000-12-26 13:11:20 +00:00
itojun c9d6668ebc run eqn. PR 11814 2000-12-25 22:39:21 +00:00
perry 1dd5f18a93 add abounce.c 2000-12-09 17:35:05 +00:00
simonb 8d8f957b42 Use MKDOC to check for building in the doc subdirectory, not MKSHARE.
If MKSHARE=no, <bsd.own.mk> will set MKDOC=no automatically.
2000-10-23 04:38:38 +00:00
itojun 3e7ebe19d9 sync with sendmail 8.11.1.
added file: /usr/share/sendmail/ostype/solaris8.m4
2000-10-10 11:17:29 +00:00
simonb cd2e1c1e91 Use ${COPY} instead of -c for ${INSTALL} commands. 2000-09-23 13:53:41 +00:00
hubertf 2be9f0470d Fix the path to netbsd-proto-IPv4only.mc in the installed
netbsd-proto.mc file. Suggested by Frederick Bruckman <fb@enteract.com>
2000-08-26 04:24:58 +00:00
hubertf 273a01201a Enable some commonly used features: genericstable, mailertable, virtusertable,
domaintable, access_db and redirect.
2000-08-25 02:54:29 +00:00
hubertf 18e5216ace add that netbsd-proto.cf now depends on netbsd-proto-IPv4only.mc 2000-08-25 02:47:37 +00:00
hubertf 72640eaccd Rewrite: include netbsd-proto-IPv4only.mc, and enable handling of IPv6. 2000-08-25 02:36:23 +00:00
enami 293609abba Allow to override CFDIR from command line. 2000-08-23 10:43:06 +00:00
itojun 97c5ff842d NetBSD has setusercontext() since Feb 2000.
detect it by "1.4Q or more recent" (are there better ways? - it is
not about kernel API...)
2000-08-20 19:37:45 +00:00
itojun 229f25d14b install m4 file for darwin (added in 8.10.x -> 8.11.0) 2000-08-13 16:22:53 +00:00
cgd 988a36fab4 use FILES* rather than an explicit afterinstall target, so that
UNPRIVILEGED is handled correctly w/o local hacks.
2000-07-22 03:30:40 +00:00
cgd fc10dadbb6 use '${MAKE}', not 'make'. 2000-07-07 04:26:57 +00:00
enami 7316fa55ad Pass ${INSTPRIV} to ${INSTALL}. 2000-07-05 03:30:07 +00:00
enami b8df94bd38 - Simplify modifiers.
- Wrap long line.
2000-07-05 03:11:42 +00:00
itojun a7183f656a v4 only sendmail.cf source 2000-07-04 12:21:57 +00:00
itojun 0bfeec5234 sync sendmail default configuration file with GENERIC kernel setting.
was: sendmail-IPv6.cf(v4/v6) + sendmail.cf(v4)
now: sendmail-IPv4only.cf(v4) + sendmail.cf(v4/v6)

do we need etc/obsolete.mi?
2000-07-04 12:21:02 +00:00
veego 715cab4ce5 'postfix check' wants a lot of files to be owned by root, so add a
BINOWN=root here.
2000-06-12 12:17:26 +00:00
perry e646bf24a7 Add sample-filter.cf 2000-05-31 17:02:55 +00:00
christos 55438ab2fb add proper dependencies for generated files. 2000-05-12 18:05:44 +00:00
itojun 10e25f6012 make default sendmail.cf IPv4-only again.
roll sendmail-IPv6.cf, which does IPv4/v6.
2000-05-08 00:37:53 +00:00
itojun f6b9e3869d BINMODE=4555. PR 10053. 2000-05-06 15:33:25 +00:00
itojun ee5a20c368 sync better with 8.10.1. 2000-05-04 00:52:58 +00:00
itojun ebf1723e60 listen to IPv6 smtp socket. 2000-05-03 11:23:16 +00:00
itojun fcc5dc7faf correct a post 8.10.1 bug - stock 8.10.1 starts with listening IPv6 socket
by default, and crushes old configuration files when sendmail gets IPv6
connection.  by default listen to IPv4 socket only for backward compatibility.

turn on IPv6 support.
IPv6 socket can be enabled by the following sendmail.cf directive:
	O DaemonPortOptions=Family=inet,address=0.0.0.1
	O DaemonPortOptions=Family=inet6,address=::
2000-05-03 11:07:58 +00:00
itojun b723212dfd for gnu/dist/sendmail, prevent rewrite of $Id$, $Revision$ and $Date$.
supply sendmail2netbsd for future imports.
remove 8.9.x files.

populate sendmail 8.10.1 build tree under gnu/usr.sbin/sendmail.
2000-05-03 10:50:04 +00:00
perry 414c661ebf fix comments 2000-05-02 13:16:56 +00:00
sommerfeld 658f83f55c /etc/postfix/postfix-script is a config file.
Only install it as part of "make distribution".
Change committed on behalf of perry.
2000-05-02 03:03:21 +00:00
perry d2fbbe8204 Install postfix-script into /etc/postfix for the /etc set. 2000-05-02 02:36:20 +00:00
perry 6cb0b138d9 install postfix-script into the example dir. 2000-05-02 02:33:05 +00:00
perry 0785281c8f Add postfix. The postfix-script location issue is still live, but
Wietse seems to think it has to stay in /etc, so it probably will.
2000-05-02 02:07:41 +00:00
simonb 23e350fea7 Remove trailing / off -I option. 2000-05-01 01:07:42 +00:00
perry a373836672 BINMODE should be 2555, not 2755. Pointed out by Soren. 2000-05-01 00:12:26 +00:00
perry d4da47afd6 Add distribution: target that cd's to postfix-etc and does make install.
This is mostly for the benefit of src/etc/Makefile
2000-04-30 21:43:45 +00:00
perry 6fb7e48183 initial commit of postfix reachover build. Still some nits left. 2000-04-30 21:21:50 +00:00
itojun be16012135 remove files that should not be imported.
in Makefile, s/SRC/.ALLSRC/ to honor .PATH.
2000-04-28 06:19:58 +00:00
groo 23db01c321 Repeat after me: # is NOT a comment character in m4! :-)
Removed "OSTYPE" from comment section which causes a build failure after
the recent cf/cf/Makefile changes (c.f. misc/9919).  mmm, m4 voodoo.
2000-04-22 00:36:40 +00:00
tron c570c5c3cb Repload "cf.m4" in build rule for sendmail configurations as requested
by the documentation. Patch supplied by Andrew Brown in PR misc/9919.
2000-04-19 21:48:41 +00:00
erh 36d859ee23 Add snprintf.c to get quad_to_string(). 2000-04-05 10:29:37 +00:00
tron 6c8a78d4d5 Install correct "README" describing the configuration of "sendmail". 2000-03-15 16:25:58 +00:00
mycroft f2cb2f6245 Don't blow away sendmail.st on install.
Install sendmail.hf with group wheel, not kmem.
2000-02-26 18:41:43 +00:00
veego 52e395b26c Fix the CMDDIR problem noticed in pr#9409 and while I am here move the
BINDIR before PROG (thats looks nicer).
2000-02-13 22:14:28 +00:00
veego 23b1b424a3 Install smrsh into /usr/libexec and not /usr/sbin. 2000-02-13 21:32:01 +00:00
tron bed192969e We need to redistribute the license terms. 2000-02-08 16:53:37 +00:00
tron 8ff783382c "distribution" target requires "netbsd-proto.cf". 2000-02-08 16:13:26 +00:00
tron 6e7897c5a9 Don't build "sendmail" if "NO_SENDMAIL" is defined. 2000-02-08 14:06:01 +00:00
tron ee18b55df8 Initial import of NetBSD build environment for "sendmail" 8.9.3. 2000-02-08 13:45:33 +00:00