Commit Graph

1915 Commits

Author SHA1 Message Date
mikel 0ed58c18f2 fix typo in CLEANFILES 1997-10-16 08:26:50 +00:00
lukem c518f62858 - compile common code once (into libcommon.a), and link that in.
cut's compilation time by half!
- build a common version.c in libcommon.a
- don't build version.h - nothing uses it
- comment out the ifdef INFO and -DINFO stuff - it's always compiled in
- XXX: don't compile mopprobe with -DNODL (which actually changes the
  compilation of stuff in common/*). nothing else does this, and it
  meant that mopprobe would have had different behaviour. if this behaviour
  is desired, a workaround can be put in place
1997-10-16 07:36:12 +00:00
lukem 29689d8440 clean up previous 1997-10-16 05:22:37 +00:00
lukem f0923775df fix race condition when building libamu with make -j 1997-10-16 05:18:41 +00:00
lukem 4d10189f4c fix race condition when building libcommon with make -j 1997-10-16 05:10:14 +00:00
hubertf ca6157bdca - document $PKG_PATH
- use -v on pkg_add for dependent packages (forgot on last commit)
 - most important: do string-magic on the right variable when trying
   to find dependent packages on the local disk (i.e. package given as
   filename, not URL)
1997-10-16 00:55:01 +00:00
hubertf 508ee08a34 Second part of intrgration of FreeBSD pkg_install as of 971013.
This patch adds @option preserve and handling for -s (SrcDir)
option.
1997-10-16 00:50:20 +00:00
hubertf d0245e3952 First cut on importing pkg_install as of FreeBSD 971013:
- warn()/err() instead of whinge()/barf()
 - Update RCS Id strings
 - Update manpages (mostly)
1997-10-16 00:31:32 +00:00
lukem 7cb9d0d79c database routines:
- rename OPTDB to OPTIMIZE_DB
- if OPTIMIZE_DB, in ypdb_open(), close a database if the open failed
  with ENFILE or EMFILE [from openbsd].
- because of the above, don't bother checking first if any FDs are
  available (with open("/", RDONLY) - it's a superfluous check.
- ensure that *map_info is set if a database was a cached open -
  without this fix OPTIMIZE_DB didn't work too well...
- enable OPTIMIZE_DB by default - should speed up lookups

secure map support:
- add ypdb_secure(), which returns non-zero if the map has the YP_SECURE
  private key set (which makedbm(8) -s adds) [from openbsd]
- modify various functions to check if a map is secure, and if so,
  refuse to serve information to clients not requesting from an
  IPPORT_RESERVED port [from openbsd]
- ensure that domainnames and map names are valid (don't contain
  "/"'s, aren't too long, etc) [idea from openbsd, but using our
  _yp_invalid_domain() et al, which does more checking.]

misc:
- add rcsid's
- implement _yp_invalid_map() (complements _yp_invalid_domain() in
  libc - eventually _yp_invalid_map() may move to libc...)
- use %#x instead of 0x%x in debug log messages
1997-10-15 05:01:07 +00:00
lukem b252d2a436 - major cleanup of Makefile.yp to use modern make(1) variables, and
follow our formatting convetions.
- add support for aliases, amd.home, master.passwd and netgroup maps
  [initially from openbsd, reworked as above]
- if INSECURE != "yes" then the passwd.by* maps will not contain the
  encrypted version of the passwd - privileged clients will request
  info from the master.passwd.by* maps.
  FreeBSD originally implemented this, and & OpenBSD supports it too.
  [from openbsd].

  By default, passwd maps are INSECURE, but in a *BSD-only environment,
  this could be disabled to allow for a [slightly] higher degree of
  security from non-root users...
1997-10-15 03:01:57 +00:00
mellon 8e6f88f680 Fix command-line argument processing 1997-10-14 20:38:09 +00:00
cjs 808e7bd9b8 Add hack to avoid gcc warnings. 1997-10-14 05:17:35 +00:00
cjs 5e411157a1 Ugly hack to make this compile without warnings on alpha. 1997-10-13 20:45:40 +00:00
cjs 83c227ec28 If you're going to pass a u_char as an int, cast it first. 1997-10-13 20:44:09 +00:00
lukem ec79495f83 add rcsid 1997-10-13 07:44:01 +00:00
lukem 16199f1de9 don't use home-grown ether_ntoa() - ether_toa(3) in libc works fine... 1997-10-13 07:41:48 +00:00
lukem 88b87b1582 add rcsid 1997-10-13 07:38:09 +00:00
lukem 7eaa3f736a add rcsid 1997-10-13 04:00:27 +00:00
lukem 2a43cbe64c add rcsid 1997-10-13 03:51:58 +00:00
lukem 9e8a6cf527 s/LINT/lint 1997-10-13 03:48:49 +00:00
lukem 21504c46eb - ignore trailing NUL in database key/value pairs (which sendmail's
aliases.db has)
- add rcsid
1997-10-13 03:47:07 +00:00
lukem 652dc94093 - hack ypdb_open() to try the standard hash (for sendmail's aliases.db)
if the initial open fails with EFTYPE. if a different database
  format is found to be more efficient, just add the code to open it
  prior to that of the other formats; this maintains backward
  compatibility with older databases whilst providing new functionality...
- add rcsid's
1997-10-13 03:42:27 +00:00
lukem 64718e58ff add rcsid 1997-10-13 03:15:30 +00:00
veego 066829337c Only install the available m4 files. 1997-10-12 19:14:27 +00:00
mycroft ccacc504e5 Make this work again, and add ethers to the list of recursive targets. 1997-10-12 11:53:11 +00:00
hubertf e10ebcabe2 pass the "-v"-switch on pkg_add to any pkg_add-calls
made for dependent packages
1997-10-11 22:25:16 +00:00
christos 3a2d682898 Fix for WARNS?= 1 1997-10-11 21:48:50 +00:00
christos f8dba09cca Cleanup for WARNS = 1
- add prototypes
- comment out rfc931(); it conflicts with the one in -lwrap and is not needed
  anyway.
- remove unused variables
- add NetBSD rcsids.
1997-10-11 21:41:34 +00:00
mycroft 26a3dbe1c4 GC some garbage variables. 1997-10-11 20:26:58 +00:00
hubertf 0df6d19df1 add case PLIST_UNEXEC in show_plist();
makes "pkg_info -v" barf no more when @unexec command are present in PLIST
1997-10-11 20:26:22 +00:00
mycroft 3ec2ebdb68 GC some garbage variables. 1997-10-11 20:25:53 +00:00
veego e288b27b29 Don't install this libraries, we only this during the build. 1997-10-11 19:42:34 +00:00
veego 0751ae9b9b Use \" for /'s in Makefile defines. 1997-10-11 18:11:41 +00:00
enami 136d7f791b Add -h option to usage. 1997-10-11 03:14:12 +00:00
christos fcc796698e Fix printf format warnings. 1997-10-10 16:12:10 +00:00
christos 81dbba7d10 PR/4082, PR/4149: amd dumps core if a server is down, amd cannot mount
filesystems from servers that fail the portmapper version test [lanman].
1997-10-10 16:11:12 +00:00
mycroft e8f7fd90c1 Actually, punt the `library' keyword; it does the same thing as `object',
and we really only need one of them.
1997-10-10 10:41:18 +00:00
mycroft 7d58ce9471 Add `object' and `library' keywords to pull in precompiled .o and .a files.
Syntax is like the `file' keyword; e.g.:
object	arch/i386/i386/mumble.o		[mumble] [needs-flag]
Largely from Michael Richardson in PR 3833, with some changes by me.
1997-10-10 10:27:53 +00:00
mycroft 054b6cb773 Allow options and makeoptions to take an empty string as a value. 1997-10-10 09:32:03 +00:00
lukem 0acf0ef008 only compile common_source/* once (25% faster), remove unused printcap.c 1997-10-10 09:26:35 +00:00
mrg 74f573d85d remove advertising clause from all my licenses. 1997-10-10 05:39:47 +00:00
hubertf b979def939 Fix typo: hte -> the 1997-10-10 03:42:18 +00:00
cjs b1caf63d0a Build smrsh to use /usr/libexec/sm.bin and install in /usr/libexec/smrsh. 1997-10-09 20:09:38 +00:00
cjs cec80a9c8c Bring sendmail/cf fully into sync with sendmail-8.8.7. 1997-10-09 19:39:51 +00:00
mrg 38811f7fea document -d, -s. remove bogus #port. fix getopt(). 1997-10-09 07:58:39 +00:00
jtc 3bc5599f8b Fix tipo inherited from old version of TNF copyright template. 1997-10-08 22:19:18 +00:00
cjs faa16d67af Include <string.h> and use proper types for str*() so that this compiles
on the Alpha. Also remove register decl's while I'm here.
1997-10-08 20:47:38 +00:00
cjs 2c695bcd2a Include <string.h> and use proper types for str*() so that this compiles
on the Alpha. Also remove register decl's while I'm here.
1997-10-08 20:25:24 +00:00
veego 98d951955c s/CURDIR/.CURDIR/ and add a missing " 1997-10-08 18:59:38 +00:00
mycroft b1f70b30ce Byte-swap the ethernet type field as required. From Dave Huang in PR 4215. 1997-10-08 16:57:04 +00:00