Commit Graph

706 Commits

Author SHA1 Message Date
wpaul
688d6eb9d1 More DESTDIR lossage. Hopefully this will solve the case of the missing NIS
scripts.
1995-02-15 04:35:55 +00:00
wpaul
8f10a7941e Fix losing Makefile so that it properly honors DESTDIR when installing
/var/yp/Makefile and /usr/libexec/mknetid. *grumble* *mutter* *mutter*
1995-02-15 04:33:52 +00:00
jkh
91ade81bee This commit was generated by cvs2svn to compensate for changes in r6407,
which included commits to RCS files with non-trunk default branches.
1995-02-15 00:46:26 +00:00
jkh
0cb129cc75 Import the ISDN userland utilities. Just about ready to start shaking
this baby out in earnest..
1995-02-15 00:46:26 +00:00
rgrimes
dfc17a13de Export ${DESTDIR} to h2ph so that the *.ph files end up in the DESTDIR
directories instead of /usr/share/perl.
1995-02-14 21:47:04 +00:00
rgrimes
cc8258c9ba Add missing ${DESTDIR} so that the sample dir file ends up in the
correct place.
1995-02-14 21:15:58 +00:00
jkh
341ae85002 The destructor always assumed that it would be called on objects created from
ONE constructor routine.  This was bogus - there is also a system provided
constructor which does not allocate a pattern buffer.  Make less assumptions.
1995-02-14 12:35:03 +00:00
ache
1a5b05c3c7 Pass prgbox exit code to main exit code 1995-02-13 19:49:42 +00:00
ache
6f54c02095 Much better error handling added. 1995-02-13 18:51:50 +00:00
phk
9857deb195 Add -D__BSD__ and don't write "LINUX" on a CD as default. 1995-02-13 06:54:47 +00:00
jkh
a99785595e Try to clean up some of these nasty warnings.. This code is not just
twisted, it's seriously evil!
1995-02-12 09:53:03 +00:00
jkh
fb2bee14b3 Add mkisofs to list of targets. 1995-02-12 09:51:53 +00:00
jkh
4f17013f57 Walnut Creek's local hacks to this code. Bob says he'll clean them up
RSN and send them back to Eric.
1995-02-12 08:16:50 +00:00
jkh
a8610e07c3 Changes to make it compile under FreeBSD. 1995-02-12 08:06:09 +00:00
jkh
6a70b65aa1 This commit was generated by cvs2svn to compensate for changes in r6318,
which included commits to RCS files with non-trunk default branches.
1995-02-12 08:00:42 +00:00
jkh
2c427653c3 Original virgin sources for version 1.2 of mkisofs, by Eric Youngdale of
Yggdrasil Computing Inc.  This is a useful concession to us CDROM mastering
weenies out here.
Obtained from: Yggdrasil Computing, Inc.
1995-02-12 08:00:42 +00:00
bde
9bf65019e5 Quiet `make -s'. 1995-02-08 20:12:08 +00:00
wpaul
99031c3560 Hurm... I could have sworn I added usr.sbin to the top level GNU
Makefile. Apparently I was mistaken. *groan*
1995-02-07 19:10:39 +00:00
jkh
e6d3fa5c49 Support for more Sun compatible dlopen() and friends. Also added proper error
handling.
Reviewed by:	gj
Submitted by:	Mark Diekhans <markd@grizzly.com>
1995-02-07 13:33:42 +00:00
wpaul
0a7e37f6d4 Do proper job of reaping child 'ypxfr' processes (we could sometimes
leave a zombie lying around until the next map transfer came alone).

Also fixed some minor typos on the man page.
1995-02-07 05:04:53 +00:00
wpaul
d3560dd142 Removed annoying changelog entries from ypclnt.c, added usage() function
to ypxfr.c.
1995-02-06 23:35:49 +00:00
wpaul
8a1b888b8e Wrote manual page for ypxfr, modified Makefile to install it. 1995-02-06 22:15:21 +00:00
wpaul
f40cd239b0 Wrote manual page for yppush and edited Makefile to install it.
Added conditional definition for _PATH_YP in yppush.c in case _PATH_YP
isn't defined anywhere else.
1995-02-05 21:48:04 +00:00
wpaul
a9318a2ce2 Created manual page for ypserv and changed Makefile to install it.
Also tweaked server.c to support newer versions of tcpwrapper (log_tcp.h
is now tcpd.h and FROM_UNKNOWN changed to STRING_UNKNOWN).
1995-02-04 21:32:04 +00:00
phk
472cc5aac8 added *.info and *.db to the default "ignore" list in cvs to avoid obviously
common mistakes.
1995-02-04 20:27:23 +00:00
wpaul
a58c3c9172 Created yp_mkdb(8) manual page, modified Makefile to install it. 1995-02-04 04:26:20 +00:00
wpaul
ec6e1d43a1 Changed some comments. 1995-02-04 00:13:21 +00:00
wpaul
9bf63224b9 Fixed potential Makefile glitch that could arise if /var/yp doesn't exist yet. 1995-02-03 22:01:17 +00:00
bde
6bb6091f96 Include <sys/types.h> explicitly to get declaration of u_long for
<netinet/in.h> - don't depend on namespace pollution in <stdio.h>.
1995-02-03 20:25:59 +00:00
ugen
216e2af04b Fix to h2ph "undefined function" bug
i reported today earlier..tested and works OK..
( To those who want to experience bug try running aub
with old version of socket.ph and with new one or just any
perl script  "requiring " <sys/socket.ph> or <sys/cdefs.ph> )
1995-02-03 15:16:03 +00:00
wpaul
a029b8cf38 Added ${.CURDIR}s to afterinstall target. 1995-02-03 03:44:41 +00:00
wpaul
2f1a87a642 Put ${.CURDIR}s in front of Makefile.yp and mknetid in the required places.
Also took out uneeded BINDIR & BINMODE stuff.
1995-02-03 03:41:38 +00:00
wpaul
27564afc63 Removed reference in comments to -o option of yppasswdd: -o option
no longer exists.
1995-02-03 01:11:57 +00:00
bde
14f499e5c7 Look for files to install first in the object directory, then in the
source directory.

Don't create target directories at install time.  mtree already handles
them correctly.
1995-02-02 17:44:02 +00:00
wpaul
ca74ab01a7 Cleaned up and updated the yppasswdd man page to reflect FreeBSD-specific
changes and new options. (more new man pages and an NIS tutorial to follow)
1995-02-02 17:25:58 +00:00
wpaul
ca56934ab2 Need to set a umask to avoid security problems (/var/yp/passwd
world-writable).
1995-02-01 23:30:02 +00:00
wpaul
4ced3668eb 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
wpaul
f3d5354cdd /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
wpaul
219ed0fd18 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
wpaul
a0d2144bc8 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
bde
7a22eb0731 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
wpaul
86715246c4 Added SUNDIR entry for yppush 1995-01-31 09:48:48 +00:00
wpaul
41d13cf350 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
wpaul
b8cfd20c17 Added subdir entry for ypxfr 1995-01-31 09:29:38 +00:00
wpaul
e5b131e6ec 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
wpaul
10db783b7d New Makefiles for YP server stuff. 1995-01-31 09:14:03 +00:00
wpaul
12d39161b8 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
wpaul
c46e35fcb4 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
wpaul
17c13efe1c 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
jkh
f7294b77fd Fixed up the text a bit, attribute NetBSD properly. 1995-01-31 04:36:48 +00:00