Commit Graph

895 Commits

Author SHA1 Message Date
wpaul
7f8da29d23 Added a new feature from Peter Eriksson's latest release of ypserv (0.13):
register ourselves as an NIS version 1 UDP server to pacify older SunOS 4
ypbinds that seem to insist on having one around. All this does is allow
ypserv to respond to DOMAIN_NONACK requests that are periodically
transmitted by ypbind: the server will not actually work as an NIS v1
server in any other way.

Unlike the mainline code, which implements this as a compile-time
option, this feature can be turned on with the newly-added -k flag
at runtime.

Bunped version number to 0.13. (What the hell.)

Updated the man page to reflect this change, also made a couple of small
edits to reflect the recent changes in the /etc/rc* setup.
1995-04-05 03:23:40 +00:00
wpaul
9232a38c57 Take yp_svc.c out of CLEANFILES rule. 1995-04-02 20:28:09 +00:00
wpaul
dd4edfb21f Add back some stuff to yppush.c that I was a little over-zealous in
removing. Also do away with compiling yp_svc.c: yppush doesn't need it.
1995-04-02 20:01:50 +00:00
wpaul
40c803a533 Removed code from yp_xdr.c module that now lives in libc. (Unfortunately,
ypxfr can't easily be reduced down to one file like yppush because it
needs to do certain special things (such as binding to a specific
machine (the NIS master)) which the yp_*() functions in libc don't
allow.
1995-04-02 17:01:31 +00:00
wpaul
041bc0d60e Make yppush compile again when obj directory exists. *groan* 1995-04-02 16:00:30 +00:00
bde
8e884d290b Fix compiler warnings: don't declare enum types as static. 1995-04-02 13:11:14 +00:00
wpaul
f636ad32a8 Spruce up Makefile.yp: add support for netgroups and bootparams maps,
make use of yp_mkdb's -i, -o and -m flags.
1995-04-02 01:53:47 +00:00
wpaul
c1a712c20c Reduce yppush. Now that all the required yp_xdr functions are
in libc, we can get rid of the private/special copies of yp_*.c
files and rpcgen them at compile time instead. This leaves us with
just one unique source files: yppush.c
1995-04-02 01:10:13 +00:00
wpaul
2155040f61 Log syslog messages at LOG_NOTICE priority. 1995-04-01 19:31:12 +00:00
wpaul
11f64a97a8 Remove yppasswd_xdr.c and take out references to if from Makefile: use
-lrpcsvc instead.
1995-04-01 19:23:11 +00:00
joerg
ccafa83a78 Fix the
Ignore wrong indent value: ``''

bug, as reported by Chris Kukulies.
1995-04-01 11:43:09 +00:00
wpaul
0d95f1f752 One line fix to silently ignore entries that start with a '+' or '-'.
This prevents yp_mkdb from adding magic NIS entries to NIS maps themselves.
1995-03-31 19:45:13 +00:00
nate
d4ed3fc0b3 Forgot one FreeBSD specific change needed.
date: 1995/02/04 20:27:23;  author: phk;  state: Exp;  lines: +1 -1
added *.info and *.db to the default "ignore" list in cvs to avoid obviously
common mistakes.
1995-03-31 08:21:06 +00:00
nate
1d82b6fc4f Temporarily disable building CVS to avoid anyone hosing up their CVS
tree until a bit more testing is done.

Submitted by:	rgrimes@gndrsh.aac.dev.com "Rod Grimes"
1995-03-31 08:00:06 +00:00
nate
fb07faa841 Merged in FreeBSD necessary changes in. Note, all of our source
modifications were *not* merged in (FreeBSD-DEVELOPER and symlink) but
the source is now the stock sources.
1995-03-31 07:55:30 +00:00
nate
7275a86f57 This commit was generated by cvs2svn to compensate for changes in r7516,
which included commits to RCS files with non-trunk default branches.
1995-03-31 07:45:34 +00:00
nate
bef9dd5005 Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:34 +00:00
nate
3b3cdc707e Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:34 +00:00
nate
2b7273332e This commit was generated by cvs2svn to compensate for changes in r7514,
which included commits to RCS files with non-trunk default branches.
1995-03-31 07:45:33 +00:00
nate
8f990efae5 Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:33 +00:00
wpaul
2a10d7e2b1 Rework error reporting/logging: although the SunOS documentation says
that ypxfr is supposed to log messages to /var/yp/ypxfr.log if it exists,
using syslog() makes more sense, especially since ypserv does the same
thing already. Try to use stderr by default, and use syslog() if stderr
is not a tty.

Also update the man page to reflect this change.
1995-03-31 05:45:23 +00:00
joerg
171a34b98d Wolfram's latest update.
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-03-31 04:00:53 +00:00
wpaul
b538b06cc8 Ack... clean up the logfile name generation that I botched in the last
commit.
1995-03-30 04:21:31 +00:00
wpaul
6967239991 Fix up the way _PATH_YP is used to put together the pathname to the
NIS maps (get rid of extraneous slash a la /var/yp//domainname).

Have ypxfr log all output to /var/yp/ypxfr.log if stdin is not a
tty. This should allow logging to be done when ypxfr is called from
inside ypserv in response to a yppush request.

Update man page to reflect the change (and fix a typo).
1995-03-30 04:14:46 +00:00
jmz
823753ae94 'directories...' is an argument, not an option 1995-03-27 01:52:59 +00:00
joerg
c399ccbb20 Made this script a bit more fool-proof, so people like me can better
use it. :-)

It now explicitly requires the specification of a directory to import
from, either as an argument to the script, or by asking the user about
it.  (Previously, it implicitly used `.', like cvs import does.)

Also implemented an option `-n', which does essentially the same like
the overall CVS option `-n': show only what would have been done,
don't do any commitment.  Note that since the modules' database is
checked out in place (and not commited back), it will erroneously be
reported as to be imported, too:

cvs import: Importing /home/ncvs/ports/foobar/foo/modules
I ports/foobar/foo/modules/CVS
N ports/foobar/foo/modules/modules

This is an unwanted side-effect, but gives the user the option to see
if the `ed' magic did the right thing when editing modules/modules.

Rod, can you please check the function ``checktag'' in the script if it
will be restritctive enough?
1995-03-26 21:56:32 +00:00
ache
4ec12d8b2f Comment out all perverted curses optimization 1995-03-26 03:01:04 +00:00
ache
8a9f1f9a43 Change wrong -ltermcap -ltermlib picked up to -lmytinfo 1995-03-26 02:41:45 +00:00
jkh
afadf7ad3f Get PERL found in any of its obvious locations. 1995-03-25 17:14:11 +00:00
bde
6e4ddba893 Don't attempt to fix the mode of mus - mus might be read-only. Just
interpret it.  I've preserved the bugs that perl must be installed
to build part of perl and that it must be installed in the wrong place
(no ${DESTDIR}).
1995-03-25 15:43:57 +00:00
jkh
f0017f198d If mus script not executable, fix. 1995-03-24 19:22:33 +00:00
ache
ac61a68440 Fix -C arg overriding when -T file used 1995-03-24 19:01:25 +00:00
ache
bfce1f8209 Get rid of strtok(), it is depricated inside libs 1995-03-24 17:59:48 +00:00
jkh
ffc6cb1ad9 Adjust include paths. 1995-03-24 05:56:41 +00:00
jkh
c8b608eced Bring back perl/usub as usub/, this time containing an updated curseperl
which is also installed by default (the reason for which should also be
plain shortly).
1995-03-24 04:33:54 +00:00
nate
cb36b46d2f Added gdb back in since it can no compile with the ld change. 1995-03-22 19:39:45 +00:00
nate
28073dd8dd Modify the default behavior of the linker to no longer prefer static
members over shared library members.  This modification causes the linker
to use the first definition it sees for a symbol instead of having
priorities based on the library type.  This modification should allow
gdb to compile again.

Obtained from:
  Email conversation with Paul Kranenbury, but implemented completely by
  me.  If it doesn't work, it's my fault not his.
1995-03-22 19:38:07 +00:00
jkh
45be361bb0 This just exited on most errors, some of which were legitimate and
I don't *want* to cause my application to be exited!  Some of the fprintfs()
should probably be calls to some dialog error menu popup anyway.
1995-03-22 02:06:06 +00:00
ache
c9fac9e4e7 Saved scroll fixed. 1995-03-21 01:06:07 +00:00
rgrimes
f89a48abe3 Pretty much a complete rewrite of this Makefile.
Remove private mkdir command for /usr/include/g++, this is now
handled by mtree.

Make the whole file fit in 80 column output, sort the SRCS list and
split into .c and .cc sources.

Use $Id$ instead of $FreeBSD$ since we pulled support for this.

Add DPADD to match LDADD and now include <bsd.prog.mk> to define
the DPADD values (This is a hack until the .mk stuff can be corrected
so that ${LIB*} is visiable in bsd.lib.mk.)

Optimize beforeinstall target by eliminating a subshell.
1995-03-20 09:38:21 +00:00
nate
f793dc61f0 Removed /usr/local/lib from the standard library search path to be
consistant.  Programs shouldn't rely on non-standard paths for bringing
in default libraries.

Suggested by:	Andreas Schulz <ats@freebsd.first.gmd.de>
1995-03-19 21:20:09 +00:00
ache
9948bf8ef8 Fix sparse files handling
Submitted by: Alan Bawden <alan@curry.epilogue.com>
1995-03-18 17:45:13 +00:00
ache
b1dc3c9d60 Don't use user PATH into environment for sec reasons 1995-03-18 02:19:25 +00:00
ache
b2025e2778 1) Call nroff instead of groff, nroff have some internal groff options
2) Use absolute pathname for nroff
3) Use -Tascii instead -Tlatin1, too many strange chars (like
soft hyphens f.e.) appearse in other case.
1995-03-18 02:11:56 +00:00
pst
119f59809f rename ngroff to groff 1995-03-18 01:23:06 +00:00
nate
1f5ee0855a Gcc v2.6.3 currently has a problem with templates. Specifically, with
default switches, template functions get EXTERNAL linkage in each file
in which they occur, causing multiple definition errors during
linking.  The enclosed patch (from gnu.g++.bug) appears to solve the
problem (I enclose the accompanying message as well).

This patch fixes the multiply defined template functions bug
which was introduced in 2.6.1.

Submitted by:	"Justin T. Gibbs" <gibbs@estienne.cs.berkeley.edu>
Obtained from:  Jason Merrill at cygnus support on G++ mailing list
1995-03-17 21:24:25 +00:00
ache
679d92a8d1 Fix savestring & gdb conflict
Moreover, this fix not breaks any pgm which uses readline's savestring
1995-03-17 21:11:53 +00:00
rgrimes
9b9794c8f6 Add dummy lchown function so that cpio understands 4.4 symbolic links.
Reviewed by:	phk
1995-03-17 07:52:23 +00:00
ache
a40ee7d414 Upgrade 1995-03-17 01:40:52 +00:00
joerg
5b5b110c19 Wolfram's replacement for the oldish ugly catman(1) program. The new
one is much more intelligent, not only that it would accept multiple
man page locations, it also behaves like ``make'' in that it will only
deal with cat pages that are out of date (by default).

Wolfram also wrote a man page for it.

Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-03-15 22:47:38 +00:00
phk
63df474c89 Disabled gdb until it compiles. I need make world to work... 1995-03-13 19:14:05 +00:00
ache
55f66018e5 Bump SHLIB_MAJOR to 263 to match ../Makefile.inc 1995-03-13 01:30:02 +00:00
ache
f7d40645d3 Add cmp -s to beforeinstall target 1995-03-12 23:21:29 +00:00
phk
7ab9d482cb Don't install shared libgcc, we can't do it this way.
I will uuencode and check in to a "compat20" area the 2.0-RELEASE version.
1995-03-12 20:17:07 +00:00
bde
aa95df06d1 Remove the last vestige of COMMENT_BEGIN. 1995-03-12 11:47:20 +00:00
bde
73f88f7090 Undo most of the changes in the gcc-2.6.3 "upgrade"
- Don't define NO_IMPLICIT_EXTERN_C here.  It is already the default
  (defined in i386/bsd.h).
- Don't lose the fixed comment about FUNCTION_PROFILER.
- Don't lose the define of NO_PROFILE_DATA.

Replace the unused define of COMMENT_BEGIN by the less-unused define
of ASM_COMMENT_START.  COMMENT_BEGIN was only defined in i386-specific
files and was not used in any part of gcc-2.6.3.  ASM_COMMENT_START
is defined for several targets and is used for stuff that we don't
support (dwarf).
1995-03-12 11:45:12 +00:00
cvs2svn
1d7ec5c4ee This commit was manufactured by cvs2svn to create branch 'VENDOR-cvs'. 1995-03-12 10:18:55 +00:00
joerg
f3520ffcc6 Add my script here to make people's life easier when importing new
stuff.  I'd like to have it in CVS, and i figured that this might be
the best place to go.

Someone (phk?) could install it into /usr/local/bin on freefall, for
convenience.

Suggested by: phk
1995-03-12 10:18:54 +00:00
phk
0dbbdbe725 Remove a bunch of funtions that are in libc already.
Add back the shared libgcc, now that we don't use it to link against.
1995-03-12 09:37:26 +00:00
nate
8f22c79e6c Added support for #pragma weak.
Obtained from: NetBSD
1995-03-11 04:07:26 +00:00
nate
c1c6b99996 Updated the sources to gcc 2.6.3 with FreeBSD changes already applied.
Note: This isn't the most correct way, but it works and it's fast.
1995-03-11 03:51:44 +00:00
dg
80da5388e7 Back out Poul's hack that forces static libgcc. This has been fixed via
gcc instead.
1995-03-10 19:41:50 +00:00
dg
52fff5dc3f Define LINK_LIBGCC_SPECIAL_1 so that gcc will build static with libgcc. 1995-03-10 19:39:32 +00:00
phk
299cac41a2 Since we are in the gcc bashing mood anyway: Add two changes for
basic-block profiling:
1. use a .stabs(25) symbol to link all the data structures together with.
The regular method isn't safe for the kernel.
2. add a BB before the prologue and add a BB after the epilogue,  this
alows us to find the length of any counted BB.  This is a cheap and somewhat
reasonable measure of actual cost.
1995-03-10 08:24:09 +00:00
paul
9be03fba57 Change the return status of do_system_command to be -1
if a signal is received.

This fixes a bug where killing the process would cause a
"No manual entry for XXX" to be printed even if the manpage
was found.
1995-03-09 19:56:23 +00:00
jkh
5ebd88c022 We can't bail out on generating the pic archive yet.
Submitted by:	bde
1995-03-06 12:17:49 +00:00
phk
12303daa45 Don't make the shared libgcc. I don't belive we need the libgcc_pic.a
anymore, so I killed that as well.
1995-03-06 08:04:05 +00:00
phk
b3aac36bfc Never again shall we link libgcc dynamic. It was a big mistake in the
first place and we were too long in finding out.  Now we know, and the
damage is hard to fix.  This is part one:  ld will not link gcc dynamic,
if specified as "-lgcc".

Suggested by:	dyson & davidg
1995-03-06 08:00:23 +00:00
nate
29821bc9db Install the include file in the same way that all other includes file are
in the 'beforeinstall' target.
1995-03-06 05:51:32 +00:00
wpaul
8e6864e4cc Added support for bootparams map. 1995-03-05 22:48:50 +00:00
phk
ec926b8dab "Various very violent dissections
disables dysfunctional disinformed namei's,
needlessly negating namei cache."

These hacks cuts the number futile attempts made by cc and ccp to find
cross-compilers and other weird stuff.  A make of the BOOTFLP kernel
has 20% less namei calls now, that is from 30647 down to 24563 calls.
1995-03-05 20:34:41 +00:00
nate
71e213cb06 Weak symbol support from NetBSD. This should bring us in sync with the
NetBSD ld code except for local changes for dlopen() and friends and
the hashing on the minor value of the shlibs.  We should be binary
compatible now with all their libraries.

Obtained from: NetBSD
1995-03-04 17:49:20 +00:00
nate
a877c019a3 Add the abilitity to compile the Lites code with the native FreeBSD assembler.
(This adds minor support for the .bss directive)

Submitted by:	Many folks, but I believe Remy Card was the first person to
                propose this change.
1995-03-02 20:29:18 +00:00
ache
40345cb4d5 Fix arrows printout for non-arrows keys in menubox
Move arrows printout to single kernel function
Add PgUp/PgDn/Home/End to checkbox and radiobox
1995-03-02 01:03:39 +00:00
joerg
d53427fd31 typo.
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
1995-02-28 23:16:33 +00:00
ache
f28d25123d Fix two quad_t casts, one reported by wcp@lpds.sublink.org 1995-02-26 23:48:51 +00:00
joerg
6098fa7d81 Patch bei Wolfram to avoid processing duplicate directories.
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-02-26 19:35:06 +00:00
bde
01d0b69e54 Install manpath.config.sample with the correct mode. It should be installed
elsewhere.
1995-02-26 03:03:15 +00:00
jkh
a173c3e8fe Correct a few typos. 1995-02-24 11:21:34 +00:00
ache
ad9e7b3c3e Implement --hline "line" and --hfile file 1995-02-23 22:42:44 +00:00
ache
584851d5dc Simplify notify()
Fix dupwin usage, now it really restore screen
Disable helpline while helpfile displayed
Fix helpfile borders
Fix mesgbox range computing
1995-02-23 22:36:56 +00:00
phk
c1e370e2be Don't rely on execute bit. 1995-02-23 05:48:38 +00:00
nate
9bb4408ebc Fixed non-conflict errors that occur when changes made to the local files are
the same as the changes made in the repository.  This is often seen by
people with remote CVS trees that have applied their local patches to the
master site.  a 'cvs update' will show bogus conflicts.

Obtained from: CVS mailing list, Stig<stig@inse.com>

In diffutils 2.6 and 2.7, diff3 -A complains about identical overlapping
changes.  They're different from the ancestor but not from each other...
Why bother?  The patch below fixes this nonsense and preserves [B]ackwards
compatiblity with the -B flag (also --show-bogus-conflicts).

    Party on...
    Stig
1995-02-20 18:47:18 +00:00
jkh
4f698d1027 Whoops! It wasn't totally winning. I left out a couple of :'s. Fixed. 1995-02-19 09:52:52 +00:00
jkh
c7521faf75 A much more winning default dir file. 1995-02-19 09:50:27 +00:00
joerg
8efb940d28 Wolfram now also submitted a man page for this.
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-02-15 22:52:52 +00:00
ache
5e89533cf9 Remove dir creating, done by mtree
Add missing file name for cmp
1995-02-15 20:59:13 +00:00
ache
23fc8dcfb6 Changes for new _menu interface 1995-02-15 19:48:10 +00:00
ache
cdce999162 file selector, helpline, helpfile and more, with my fixes
Submitted by: wmbfmk@urc.tue.nl
1995-02-15 19:44:08 +00:00
wpaul
eb03d34c75 More DESTDIR lossage. Hopefully this will solve the case of the missing NIS
scripts.
1995-02-15 04:35:55 +00:00
wpaul
d1cad43e92 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
d847f20762 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
bcfec4d5a4 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
ddbe5b4d2b Add missing ${DESTDIR} so that the sample dir file ends up in the
correct place.
1995-02-14 21:15:58 +00:00
jkh
c580fe88c3 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
cf0b4a1f45 Pass prgbox exit code to main exit code 1995-02-13 19:49:42 +00:00
ache
4c83f1817e Much better error handling added. 1995-02-13 18:51:50 +00:00
phk
ca7fdeecf1 Add -D__BSD__ and don't write "LINUX" on a CD as default. 1995-02-13 06:54:47 +00:00
jkh
e2673531ef 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
cf1e6cac42 Add mkisofs to list of targets. 1995-02-12 09:51:53 +00:00
jkh
71248b7211 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
7822696ebe Changes to make it compile under FreeBSD. 1995-02-12 08:06:09 +00:00
jkh
0afaa64088 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
139bbf4b32 Quiet `make -s'. 1995-02-08 20:12:08 +00:00
wpaul
471cb455ad 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
66560f242c 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
e8ecb06507 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
1c347b3bb6 Removed annoying changelog entries from ypclnt.c, added usage() function
to ypxfr.c.
1995-02-06 23:35:49 +00:00
wpaul
623c2cb31e Wrote manual page for ypxfr, modified Makefile to install it. 1995-02-06 22:15:21 +00:00
wpaul
56c3e3f648 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
0a48a09f6a 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
37cdeedfbd 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
b9ad0d7c76 Created yp_mkdb(8) manual page, modified Makefile to install it. 1995-02-04 04:26:20 +00:00
wpaul
0f70410a43 Changed some comments. 1995-02-04 00:13:21 +00:00
wpaul
4dcb86cd7b Fixed potential Makefile glitch that could arise if /var/yp doesn't exist yet. 1995-02-03 22:01:17 +00:00
bde
012b5f177a 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
b42d143312 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
d064fffe16 Added ${.CURDIR}s to afterinstall target. 1995-02-03 03:44:41 +00:00
wpaul
86ad2a72db 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
8fecd80fb3 Removed reference in comments to -o option of yppasswdd: -o option
no longer exists.
1995-02-03 01:11:57 +00:00
bde
3af7aa04c8 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
afa6dfdbac 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
a3ad225d63 Need to set a umask to avoid security problems (/var/yp/passwd
world-writable).
1995-02-01 23:30:02 +00:00
wpaul
e857d5d6ab 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
f51a6839ff /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
1dd2f1d3d0 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
2c0846923c 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
93076fddf9 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
d192a5e060 Added SUNDIR entry for yppush 1995-01-31 09:48:48 +00:00
wpaul
feb6498138 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
d3efeb218f Added subdir entry for ypxfr 1995-01-31 09:29:38 +00:00
wpaul
96cb7ff1bb 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
f8f8ddaa50 New Makefiles for YP server stuff. 1995-01-31 09:14:03 +00:00
wpaul
1a8541952e 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
d78d19a41a 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
00e813f699 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
0c36caab09 Fixed up the text a bit, attribute NetBSD properly. 1995-01-31 04:36:48 +00:00
ache
295e1436bc Add more range/argument checking
Submitted by: charnier@lirmm.fr
1995-01-30 14:11:58 +00:00
ats
22ab556ffc Submitted by: Philippe Charnier <charnier@lirmm.fr>
Install the man page, now that we have one.
1995-01-29 02:16:01 +00:00
bde
2b6d1f696d 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
jkh
95556d12c8 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
bde
dd9736bda2 Remove stale NOOBJ.
Use standard clean and cleandir targets.
1995-01-25 19:26:31 +00:00
bde
aa983e3386 Makefile.tty:
Initialize CLEANFILES.  All tty FONTFILES are objects.
1995-01-25 19:25:20 +00:00
bde
77bd8440bd 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
bde
81ee6768e2 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
jkh
6e06496959 NOOBJS -> NOOBJ - it's more consistent. 1995-01-24 17:49:41 +00:00
jkh
99ac38b21d No object here. 1995-01-24 17:47:49 +00:00
jkh
4ca0c84624 Deal with this not having an object file. 1995-01-24 17:32:09 +00:00