Commit Graph

2621 Commits

Author SHA1 Message Date
agc 9aea3f2ecb Add -b argument to pkg_info to display the +BUILD_VERSION file for the
binary package, should it exist.
1998-10-13 17:08:28 +00:00
agc 67f5c7183e Get rid of YES and NO definitions. NO was defined but never used.
YES was defined, and one variable was set to YES.  However, it was
never checked, just non-zero comparison was used.
1998-10-13 10:05:38 +00:00
agc 5e8df8cb74 Fixes for Alpha, from Hideo MASUDA (h-masuda@jm3spa.felix.or.jp), in
PR bin/6284, slightly munged about for platforms which aren't LP64.

Also, don't use hardcoded strings (or their lengths) when we've
already defined them in a common header file.
1998-10-13 10:00:09 +00:00
aidan e04cec137b Allow quote-escaping of environment variable names so that they may contain
spaces again.
1998-10-12 22:15:47 +00:00
agc 959d0a0cde + Remove obsolete and unused string functions.
+ Fix a bug introduced when the package name comparison routines were moved -
alternate matching now completes and works properly.
+ Add -R argument to pkg_create, which re-orders any directories in the
generated PLIST into reverse alphabetic order.
+ Add -l argument to pkg_create, which checks that any symbolic links in
the package are relative-to-$PREFIX pathnames, rather than full pathnames.
+ General cleanup elsewhere.
1998-10-12 12:03:24 +00:00
kim b894c055c6 Before running "rm -rf" on a directory chmod the directory and its parent
to u+rwx to make our chances of success better.  The modes for directories
are reset at the end of a sup run, so we don't need to worry about that.

This possibly might mess up the mode of the parent of the top-level dir,
if the top-level changed to a non-directory.  This is probably rare enough
not to care too much about.

XXX: Should probably chmod the containing directory for each non-directory
removal as well, so there wouldn't be complaints about them.  Please feel
free to send in your opinions on that...
1998-10-12 05:19:48 +00:00
scw cae1a093d5 Quell a compiler warning introduced by the last change. 1998-10-11 10:27:46 +00:00
mrg f2fb63efda add support for 4.4BSD file flags. we take a `flags=xxx' parameter,
using the same style of naming as chflags, ls & xinstall use, plus an
additional `none' to turn off a default setting.
1998-10-10 07:50:27 +00:00
agc 7bdbc205e5 Use the same table for input and output of PLISTs. 1998-10-09 19:51:21 +00:00
tron d7d750d262 Fix build problems if object directories are used. 1998-10-09 19:30:02 +00:00
agc 9daf7cc9b2 More cleanup - various bits of KNF.
Use another table when parsing PLIST files - makes this much more extensible.
1998-10-09 18:27:31 +00:00
agc 16ae233008 Some minor KNF.
Lots more to be done.
1998-10-09 11:16:57 +00:00
agc 3679178e31 Make pkg_info a tad more extensible by using a table to hold the strings
to be printed. Also, don't error out if any unexpected input is read -
just log the error, and keep on going.
Fix a slight bug along the way - if there was an @option in the package,
then pkg_info would die.
1998-10-09 11:05:58 +00:00
agc 82f2922229 Fix a bug in pkg_info -f with @pkgcfl entries. 1998-10-09 09:35:39 +00:00
agc 65e1849228 Garbage collect unused variable..
Update documentation accordingly.
1998-10-09 09:22:15 +00:00
jtk 46510bb5d4 make network-location-changed actually work 1998-10-08 14:13:25 +00:00
agc 70c6765099 Eliminate all use of sprintf(3), and replace it with snprintf(3).
Bounds check the @exec and @unexec commands when they are constructed.
1998-10-08 12:57:58 +00:00
agc b6bd49da4e One more piece of lint. 1998-10-08 12:22:54 +00:00
agc e5d1fd5f5a Get rid of some lint.
No functional changes.
1998-10-08 12:15:24 +00:00
tron c8eb5cc943 Copy "named-xfer" binary to "/usr/libexec" not to "/usr/sbin".
Fixes bin/6261 by Geoff C. Wing.
1998-10-08 07:41:57 +00:00
wsanchez c45946d27c Use u_int32_t rather than Sys-V u_long.
Rename err() to mtree_err(), to avoid conflict with libc.
1998-10-08 02:04:55 +00:00
aidan 2169ed2a6f An environment variable name can no longer have spaces in it. This is to
let commands of the form
* * * * * command flag=value
be interpreted as commands instead of environment settings.
1998-10-07 23:18:29 +00:00
christos c7b4cd5f50 Explain what happens when there is no host set specified in the exports
line, or when a netgroup that has no host is in the set.
1998-10-07 14:52:30 +00:00
christos f491057836 Explains what happens when we get SIGTERM... 1998-10-07 14:51:36 +00:00
christos 479c0bbe47 - Add some MIT KRB/NFS pieces, someday I'll commit the rest.
- fix prototypes for signal handlers.
- use constants from rpcsvc/mount.h, instead the RPCMNT crap.
- don't core-dump when finding a netgroup that has no host part,
  complain instead
1998-10-07 14:50:35 +00:00
fvdl 778592d8c3 Shut up gcc. 1998-10-06 15:50:30 +00:00
mrg 16d7f0c241 let chroot take "-u user", "-g group" and "-G group,list,group,..." arguments 1998-10-06 03:47:50 +00:00
matt 224e79dde2 Teach rarpd about interface aliases. 1998-10-06 00:23:55 +00:00
kim 463d00633e Allow "chown/chgrp -R -h" so we can change trees with symbolic links without
affecting stuff pointed to.  Don't allow "-R -L -h" as it would not make sense
(at least not to me) to follow all symbolic links and then use lchown.
1998-10-05 21:37:38 +00:00
tron d5a92147c7 Add support for "limit". 1998-10-05 21:37:18 +00:00
tron 6ed9191311 Fix bug in converting "sortlist", add support for "xfrnets". 1998-10-05 21:06:23 +00:00
itohy ec8a0e8dad Eliminate a memory leak. 1998-10-05 19:50:40 +00:00
tron f8433e7cf9 Invent "USE_BIND8" switch to select BIND 8.1.2 instead of BIND 4.9.6. 1998-10-05 18:15:12 +00:00
tron 55b173081e These files shouldn't have been here at all. 1998-10-05 18:09:54 +00:00
tron a4b6188cd5 Import BIND 8.1.2. 1998-10-05 18:01:57 +00:00
ross a258e2c9b1 Squelch minor LP64-related compiler warning/error (-Werror) 1998-10-05 09:02:28 +00:00
kleink 3eefada6a0 sigemptyset() sa_mask of sigaction to be installed. 1998-10-04 18:43:21 +00:00
hubertf 4cc256a5d1 fix some egcs warnings 1998-10-04 01:48:15 +00:00
hubertf 0151583b9c Teach our tools about dependencies containing wildcards. 1998-10-03 16:24:07 +00:00
hubertf 4c0a9c52a7 In an ideal world, make_playpen() and leave_playpen() would maintain
a stack of directories, we'll do with a save/restore_dirs cludge for
now. => Fixes the bug I mentioned yesterday that shows when one pkg
installs another (depending) pkg via FTP.

Fixed another bug with extract-in-place when the destination dir is
already there.
1998-10-01 21:16:26 +00:00
briggs 67c67dafdc -v shows the version of the mopd suite, not of mopprobe, specifically. 1998-09-30 15:05:01 +00:00
briggs 21cf1380f9 s/contence/contents/ 1998-09-30 14:58:56 +00:00
hwr 9e33951d8e Verify mini-header checksum.
Rearange printing of S-flag.
1998-09-30 08:57:01 +00:00
hwr 59a88e1c7f Update for IPPROTO_MOBILE 1998-09-30 06:16:07 +00:00
mrg 35d49164e0 use daemon(). remove spurious \n from rarperr() call 1998-09-29 09:21:35 +00:00
lukem 9d8ba54bed don't install in /usr/share if NOSHARE is defined 1998-09-29 07:03:37 +00:00
lukem 67fe57924e don't install in /usr/share if NOSHARE is defined 1998-09-29 06:59:53 +00:00
lukem 9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
christos ce88ebe827 Propagate the fix to Makefile.inc 1998-09-27 16:30:31 +00:00
christos ee5bcaffb1 Don't add LDADD dependencies in the libamu build. 1998-09-27 16:28:54 +00:00
hwr fadc6762f7 Add for packtes of IPPROTO_MOBILE (55). This is yet another
tunneling protocol which is described in RFC2004.
XXX There is no verification of the miniheader checksum at the moment.
1998-09-25 19:10:25 +00:00
jtk 5372885234 fix synopsis, per pr #6194 1998-09-25 00:47:01 +00:00
marc 3386dbf8ac refer to dhclient-script(8) 1998-09-24 04:45:32 +00:00
marc d09fc7c471 include the appreviation in the synopsis so that man -k works
intelligently.
1998-09-24 04:33:45 +00:00
itohy 20b86c5f48 The return value of setmode(3) is a pointer to malloc()'ed area
and must be freed to avoid memory leaks if called repeatedly.
1998-09-23 19:46:00 +00:00
matt 08e1d890a4 Changes so that BPF readers will get the data in fddi packet aligned along
normal boundaries.  This makes tcpdump much happier.
1998-09-20 02:36:08 +00:00
hwr f781823236 Main is int. From Soren S. Jorvang <soren@t.dk>. 1998-09-17 07:41:11 +00:00
frueauf c548010b99 Fix pr 5071 better after feedback from the Originator Havard Eidnes. 1998-09-14 21:23:07 +00:00
frueauf 988c143116 Add (ugly?) code to prevent core dump as described in pr 5071 by Havard Eidnes.
XXX Maybe someone with more taste and understanding should have a look
XXX at this? At least I prefer this over the solution provided in the pr.
1998-09-14 11:52:21 +00:00
tv 1428a599bf Rethink the origins of LDSTATIC. Instead, use an option NOLINKLIB, which
builds and installs only what is necessary to link and run binaries, when
the library is not externally useable.
- NOPIC: Create and link against a static library.
- PIC: Create, link against, and install a shared object.
- PIC+LDSTATIC: Create and link against a static library; create and
  install a shared object.
1998-09-13 23:25:18 +00:00
hwr 1374569d41 Add a tool to set/display the configuration of gre(4) interfaces. 1998-09-13 20:50:55 +00:00
hwr bdf6e1db02 Also build greconfig 1998-09-13 20:48:57 +00:00
hubertf 966a060e98 minor fixup for -e option 1998-09-12 21:59:18 +00:00
kim cc01fea167 Before running "rm -rf" on a directory try to turn on the S_IRWXU bits. 1998-09-12 07:36:49 +00:00
pk f6ed324c42 Deal with superblock changes; from PR#6032. 1998-09-11 21:22:53 +00:00
kleink c039c662a2 GMT -> UTC 1998-09-10 19:30:37 +00:00
mouse b95116821c Create tcp.keepidle, tcp.keepintvl, tcp.keepcnt, tcp.slowhz sysctls. 1998-09-10 10:46:03 +00:00
tron 63ef9847d5 Fix broken package dependence handling mentioned by Brook Milligan on
"tech-pkg@netbsd.org".
1998-09-08 21:54:01 +00:00
kim 06f0e05806 Fix paths to match the current code. 1998-09-06 06:25:59 +00:00
lukem 72549586a8 distclean is a synonym for cleandir 1998-09-05 14:57:41 +00:00
christos b5b77bba54 Back out accidental removal of CDTRCTS and fix rcsid's 1998-09-04 19:13:04 +00:00
mellon f0ee4a66e9 Oops, release the lease _before_ deconfiguring the interface. 1998-09-04 18:03:56 +00:00
mellon 2c64334bb9 Build sysconfd and statmsg 1998-09-04 18:01:59 +00:00
mellon 17cf92b7ae Reincorporate sysconfd support. Add support for releasing leases. 1998-09-04 18:01:14 +00:00
mellon f397d4ea4a Add prototype for client_reinit() 1998-09-04 18:00:17 +00:00
mellon 65a4f4bad8 Mention that statmsg depends on sysconfd. 1998-09-04 17:58:16 +00:00
mellon a8737b8da6 Documentation for sysconfd. 1998-09-04 17:57:33 +00:00
mellon 753854cd53 Add release-current-dhcp-leases message. 1998-09-04 17:51:36 +00:00
mellon d424c62366 Document statmsg command. 1998-09-04 17:50:23 +00:00
mellon b9680f85dc Add sysconf message to release DHCP-acquired leases. 1998-09-04 16:47:56 +00:00
christos 44d3b0974b Apply diffs from patchlevel 5. 1998-09-02 20:55:55 +00:00
enami 692962babe add -Dunix to CPPFLAGS to suppress cpp warning. 1998-09-01 03:16:48 +00:00
pk 3237c34e03 Emit device name to device major number table. 1998-08-30 21:33:27 +00:00
nathanw b757463521 Add braces to satisfy egcs. 1998-08-30 03:20:09 +00:00
nathanw a542b8e8e3 Add braces to satisfy egcs. 1998-08-30 01:40:15 +00:00
hubertf e6c468e777 Make really sure to only nuke LogDir when it's been set. Fixes problem
described in PR 5308, code was contributed by Eivind Eklund <eivind@yes.no>.
1998-08-28 00:35:51 +00:00
hubertf 90c872591e Allow symlinks to directories instead of pure directories in several
places (/usr/pkg, /var/db/pkg, ...). Closes PR 6009 by Jim Bernard
<jimjbernard@ox.mines.edu>.
1998-08-27 23:37:35 +00:00
ross b1934d6034 {} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs. 1998-08-27 20:31:00 +00:00
ross 206d54f97f LP64 fixes for recently added code. (In LP64, ptrdiff_t != int.) 1998-08-27 20:11:31 +00:00
ross 5b1f2d4c8c Add {} pairs to shut up egcs. 1998-08-27 18:03:42 +00:00
agc 8bdbb59a69 Add csh(1)-style alternates to pkg_info -e.
Add dewey-decimal relational number matching for package version numbers.
1998-08-27 12:54:03 +00:00
christos 73270b4cf4 Add the default route as static, so that routed does not delete it. 1998-08-27 06:55:16 +00:00
lukem f6a3acc90d in -x, print MB/s two 2 decimal places. noted by enami@netbsd.org 1998-08-27 03:17:49 +00:00
tv 2ba70f299c #include <string.h> 1998-08-27 03:11:37 +00:00
enami cb5c756e90 add -x in usage. 1998-08-27 01:59:38 +00:00
enami b8d6676d67 add missing endif. 1998-08-26 02:11:58 +00:00
lukem 26afa02db6 * implement -x; extended disk statistics. option inspired by solaris' iostat.
* fix a few typos
* a bit of KNF and egcs cleanup
* add a HISTORY (hopefully correct)
1998-08-25 08:05:47 +00:00
hubertf 2fb1caee16 Pass prefix for depending pkgs. 1998-08-25 01:16:03 +00:00
hubertf d54f140300 Remove some trailing (extra) "."s. 1998-08-25 00:54:08 +00:00
hubertf 1285035fe7 Don't exit cleanup() functions if not called from signal handler - this
will show error messages before aborting.
Patch supplied by Jim Bernard <jbernard@ox.mines.edu> in PR 6010, cleanup()
in delete/perform.c prepared to be used as signal handler by me.
1998-08-25 00:12:16 +00:00