Commit graph

636 commits

Author SHA1 Message Date
Bill Paul e0f276ea94 Need to set a umask to avoid security problems (/var/yp/passwd
world-writable).
1995-02-01 23:30:02 +00:00
Bill Paul e26ae5b13a Cleaned up usage() -- removed bogus references to opassfile, which isn't
used anymore (/var/yp/Makefile creates a new /var/yp/passwd file from
/var/yp/master.passwd using awk, so yppasswdd doesn't have to make it
anymore).
1995-02-01 23:27:46 +00:00
Bill Paul 7870fc7fdb /var/yp/Makefile doesn't create passwd file from master.passwd file
correctly (specified wrong fields to awk). Note that the files in question
are noe the local /etc/master.passwd and /etc/passwd files: this Makefile
expects there to be a seperate master.passwd file under /var/yp for NIS
database creation.
1995-02-01 23:05:36 +00:00
Bill Paul ba3fbfe69c Added the yppwupdate script. This is a small shell script that yppasswdd
executes after it finishes updating the raw master.passwd file. The script
is just there to invoke /var/yp/Makefile to build new maps and yppush them.
We could have yppasswdd run /var/yp/Makefile directly, but this allws a bit
more flexibility: the user may decide to run some other commands too.
1995-02-01 02:13:15 +00:00
Bill Paul 85e33f94dc Added Makefile.yp and mknetid, which are needed to rebuild NIS maps.
mknetid is a script. Both are installed by an afterinstall which as
been added to the main Makefile.
1995-02-01 02:00:03 +00:00
Bruce Evans e322e6a55a Fix reading of stack addresses from core files. USRSTACK now really is
the (top of the) user stack.
1995-01-31 18:07:36 +00:00
Bill Paul e35cfba7f2 Added SUNDIR entry for yppush 1995-01-31 09:48:48 +00:00
Bill Paul 9f6a77c541 Obtained from: The NYS project
This is a ported/modified version of the yppush program from the
yps-0.21 package from the NYS project. This program is used to propagate
updated NIS maps from an NIS master to an NIS slave. It's normally invoked
by /var/yp/Makefile.

This version of yppush has been modified in the following ways:

- Cleared up several Linux/BSD incompatibilities, largely involving
  header files.

- converted from GDBM to DB with extreme predjudice. (well, not really...)

- removed lots of ugly debugging code that really didn't do anyone any good.

- Fixed a couple of inaccurate/badly formatted error messages.

- Renamed some functions to avoid collisions with certain YP routines
  hidden inside libc.

- Small signal handling kludge: Linux has different struct sigaction
  that us.

- Incorporated some functions from the yps-0.21 library that yppush was
  dependent on.

Like ypxfr, this works, but could use come cleaning up.
1995-01-31 09:47:11 +00:00
Bill Paul 2fd1e2091b Added subdir entry for ypxfr 1995-01-31 09:29:38 +00:00
Bill Paul c183a93033 Obtained from: The NYS project
This is a ported/modified version of the ypxfr program from the yps-0.21
package from the NYS project. This program is normally invoked by ypserv
when it receives a yppush command from an NIS master. It can also be
run from the command line to grab copies of maps when initializing a
slave server.

This program has been hacked in the following ways:

- rpcgen'ed new yp_xdr.c, yp_svc.c and yp_clnt.c files. The old ones were
  rather grody.

- Changed certain function names (prefended a _ to them) to avoid conflicts
  with certain functions lurking within libc. One major problem here is
  that ypxfr needs to bind to a YP master in order to work correctly,
  but it can't use the _yp_bind function inside libc because that
  function only lets you bind to a domain, not a specific host. Lots
  of head scratching here.

- Converted from GDBM to DB at gunpoint.

- Removed lots of really nasty looking DEBUG code to try to reduce clutter.

- Incorporated some of the library code supplied with yps-0.21 on which
  ypxfr was dependent.

This program still needs to be cleaned up just as a matter of principle:
I get all icky just looking at it sometimes.
1995-01-31 09:28:47 +00:00
Bill Paul 985124b508 New Makefiles for YP server stuff. 1995-01-31 09:14:03 +00:00
Bill Paul 6c394ac5f9 Obtained from: The NYS project
This is a ported/modified version of yppasswd from the NYS yppasswd-0.5
package. This package has code in it from both Olaf Kirch and Theo
de Raadt. There are GPL references and BSD-style copyright all over the
place... hopefully I won't get flamed into oblivion for commiting this.

This program has been modified from the original in the following ways:

- Changed the ALLOW_CHFN and ALLOW_CHSH compile-time options into
  run-time options.

- Demolished the password update functions and replaced them with
  routines to handle FreeBSD-style passwordd databases. It is expected
  that a seperate master.passwd file will be maintained for use with
  the NIS maps. yppasswd will have to be told where it is:

  % yppasswdd -m /var/yp/master.passwd

  A /var/yp/passwd file will be generated from /var/yp/master.passwd by
  /var/yp/Makefile. When yppasswdd has finished modifying the master.passwd
  file, it will invoke /usr/libexec/yppwupdate, which is a script that
  will run /var/yp/Makefile to generate new maps and push them.

Note that there are copies if pw_util.c and pw_copy.c here. This is
deliberate: they are *not* identical to the originals. Very similar, yes,
but not identical. *sigh*
1995-01-31 09:12:52 +00:00
Bill Paul b4a640674a Obtained from: The NYS project
This is a hacked-up port of the ypserv-0.11 server from the NYS project
written by Peter Eriksson.

The original package included some map creating and dumping tools and
was based on GDBM. This version has been modified in the following
ways:

- GDBM replaced with DB and many weird hacks made to the read_database()
  function because of this.

- implimented the ypxfr service (using ypxfr from the yps-0.21 package,
  aso from the NYS project)

- added code to check the TCP port from which NIS requests originate:
  the server will refuse to serve the master.passwd.{byname|byuid} maps
  if the request doesn't come from a privileged port. Normally, only the
  superuser can issue such a request. Requests for the passwd.{bynam|byuid}
  maps aren't affected. There will be a small change made to getpwent.c
  in libc to complement this.

- added code to do DNS lookups via actual resolver queries instead of
  relying on gethostbyname() and friends. The author noted in the original
  documentation that a loop condition could arise where the server would
  query itself for hostsname lookups. Using direct DNS lookups prevents
  this from happening.

- added code to properly fork() the server into the background unless
  invoked with the -debug flag.

- Added combined syslog/perror function.

- fixed a few bugs (which were probably introduced by all the other
  changes)

- Created a bmake Makefile.

Note that this package can be linked against the tcp_wrapper package
to provide address-based authentication, but this isn't done by default
since the tcp_wrapper package isn't part of FreeBSD.
1995-01-31 08:58:57 +00:00
Bill Paul 0faad4f4e7 Obtained from: The NYS project
This program is used for both generating and dumping NIS maps. It's very
similar to the 'makedbm' command in SunOS. This program was ported from
the yps-0.21 package. It's close to the original except for the GDBM to
DB conversions. This was simple compared to the other YP components.
1995-01-31 08:43:07 +00:00
Jordan K. Hubbard 053e19c19e Fixed up the text a bit, attribute NetBSD properly. 1995-01-31 04:36:48 +00:00
Andrey A. Chernov 255ec70534 Add more range/argument checking
Submitted by: charnier@lirmm.fr
1995-01-30 14:11:58 +00:00
Andreas Schulz 5992978871 Submitted by: Philippe Charnier <charnier@lirmm.fr>
Install the man page, now that we have one.
1995-01-29 02:16:01 +00:00
Bruce Evans ceac74879e Install man.local in the correct directory. Apparently everyone is using
the version installed from /usr/share.  It's hard to eliminate old versions
- few Makefiles have `uninstall' targets and sup/ctm tends to blow away
old Makefiles.

This Makefile needs more work.  Stuff is built at install time...
1995-01-26 06:00:40 +00:00
Jordan K. Hubbard 8f5738c194 Finally add a freakin' man page for tar!
Submitted by:	John F. Woods <jfw@jfwhome.funhouse.com>
Obtained from: NetBSD
1995-01-26 00:14:11 +00:00
Bruce Evans 03a6bd1d69 Remove stale NOOBJ.
Use standard clean and cleandir targets.
1995-01-25 19:26:31 +00:00
Bruce Evans 4c4b1af8c2 Makefile.tty:
Initialize CLEANFILES.  All tty FONTFILES are objects.
1995-01-25 19:25:20 +00:00
Bruce Evans 49da4dfc8d Makefile.dev:
Don't initialize CLEANFILES here.  Many FONTFILES are sources and required
special clean rules to avoid cleaning.

Makefile.tty:
Initialize CLEANFILES.  All tty FONTFILES are objects.
1995-01-25 19:19:03 +00:00
Bruce Evans fe0ac9ddfd Rewrite based on send-pr/Makefile. The old Makefiles used ${PROG},
which is not supposed to work for shell files, but somehow did with
the old `make'.
1995-01-24 17:58:47 +00:00
Jordan K. Hubbard 227756fca2 NOOBJS -> NOOBJ - it's more consistent. 1995-01-24 17:49:41 +00:00
Jordan K. Hubbard 398eaa8341 No object here. 1995-01-24 17:47:49 +00:00
Jordan K. Hubbard 03b41c8f3c Deal with this not having an object file. 1995-01-24 17:32:09 +00:00
Bruce Evans 725ae77af0 Fix path to makeinfo. 1995-01-24 04:13:34 +00:00
Jordan K. Hubbard 7884c1e534 Fix bogus dummy rule (sigh). 1995-01-23 23:43:35 +00:00
Jordan K. Hubbard 588a45c651 Fix bogus install rule. 1995-01-23 21:30:18 +00:00
Jordan K. Hubbard aae156b27c Fix the bogus depend rule - boy, NetBSD's make catches a lot of
bogus Makefiles!
1995-01-23 21:19:45 +00:00
Andrey A. Chernov bae50898b7 Infopages cleanup 1995-01-22 22:45:07 +00:00
Andrey A. Chernov 95f51c5b57 Add doc subdir 1995-01-22 21:56:38 +00:00
Andrey A. Chernov ae46450f21 Add missing infopages 1995-01-22 21:54:49 +00:00
Bruce Evans 3c447b4f44 Don't build kgdb. It should go away soon. 1995-01-19 17:03:28 +00:00
Bruce Evans b34bc5463d Fix installation of the link to tmac.an. $(FOO} doesn't work. 1995-01-19 15:58:34 +00:00
Andrey A. Chernov a5bf27a269 Remove sneaked tabs
Submitted by: Ollivier Robert
1995-01-19 10:39:22 +00:00
Andrey A. Chernov 586cc4e455 Install additionly S and L text fonts, needed for BSD docs formatting 1995-01-17 22:02:34 +00:00
Andrey A. Chernov 8af44ad204 Use nroff instead of groff in %nroff% macro, becasue
nroff shell script pass additional internal parameters to groff
1995-01-17 21:12:05 +00:00
Andrey A. Chernov 8cd8abf162 Oops, forget to add \{ \} in prev. commit 1995-01-17 21:08:33 +00:00
Andrey A. Chernov a61b49098a Fix for 8bit clean ctype 1995-01-17 20:36:26 +00:00
Andrey A. Chernov 32bb7861f2 koi8-r added 1995-01-17 20:17:31 +00:00
Andrey A. Chernov 1f1d79eb97 Back out prev change, don't load tty-char directly, it is already done
into nroff shell script
1995-01-17 20:11:04 +00:00
Andrey A. Chernov 3e6c1c6d90 Load russian hyphentation for -Tkoi8-r 1995-01-17 20:08:42 +00:00
Andrey A. Chernov a99d423620 Build ngroff instead of groff now 1995-01-17 19:28:56 +00:00
Andrey A. Chernov 309c205212 afterinstall --> beforeinstall to make LINKS work 1995-01-17 19:05:12 +00:00
Andrey A. Chernov a5cf5392ff Remove unnecessary complex renaming after nuking BSD tmacs 1995-01-17 18:49:52 +00:00
Andrey A. Chernov 083ad6c648 Rename tmacs properly (me)
Strip renamed pages before install
1995-01-17 18:31:07 +00:00
Andrey A. Chernov 055e903386 Add missing file 1995-01-17 17:51:52 +00:00
Andrey A. Chernov bc70277b5b Add missing psroff.sh (for compatibility with old groff) 1995-01-17 17:36:19 +00:00
Jordan K. Hubbard 5238dbaecc Here's a patch to gdb-4.13 to add dyadic frames, as per J"org Wunsch.
Could somebody apply it?
Submitted by:	gj
1995-01-17 13:52:39 +00:00