10493 Commits

Author SHA1 Message Date
cvs2svn
de143a5b92 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-02-03 01:35:37 +00:00
jkim
9ca5124a7d MFC: usr.sbin/sysinstall/disks.c 1.155
- Hide 'incorrect geometry warning' in non-interactive mode. Users should
know what they are doing in non-interactive mode.  Less scarier warning
goes to debugging info instead.
- Print sanitized geometry to debugging info.
2006-01-31 22:07:18 +00:00
jkim
59efc5f86e MFC: Add `mediaOpen' function. This function mounts selected media device.
For example, you can dynamically generate and load configuration file
depending on the hardware configuration with the following template:

	mediaSetCDROM
	mediaOpen
	command=/dist/scripts/install.sh
	system
	mediaClose
	configFile=generated.cfg
	loadConfig

Now we have full access to files on the media before installation begins.
2006-01-31 22:03:19 +00:00
krion
be897ab3b0 MFC: pkg_add.1:1.70
date: 2006/01/29 20:30:55;  author: krion;  state: Exp;  lines: +1 -1
  Fix typo.
2006-01-31 18:33:59 +00:00
cperciva
b6e09e9ba7 MFC rev. 1.14:
Replace "fetch" with "fetch -r" when downloading the initial ~38MB
  snapshot in order to avoid unnecessary re-downloading.

  Remove the earlier "rm -f ${SNAPSHOTHASH}.tgz" to make this work.
2006-01-30 04:18:12 +00:00
philip
1a0293eda7 MFC:
Add [-J jid_file] option to write out a JidFile, similar to a PidFile,
  containing the jailid, path, hostname, ip and the command used to start
  the jail.

      src/usr.sbin/jail/jail.8: rev 1.71 -> 1.72
      src/usr.sbin/jail/jail.c: rev 1.20 -> 1.21

PR:		misc/89883
Submitted by:	L. Jason Godsey <lannygodsey -at- yahoo.com>
Reviewed by:	phk
2006-01-30 00:38:37 +00:00
philip
d5c81a9bd0 MFC:
Add "yet another" moused(8) hack: suspend handling mouse events when SIGUSR1
  is caught.  Can be assigned to a window manager shortcut to prevent accidents
  with touchpads.

      src/usr.sbin/moused/moused.8: rev 1.57 -> 1.58
      src/usr.sbin/moused/moused.c: rev 1.74 -> 1.75

PR:		bin/89357
Submitted by:	Nick Hibma <nick -at- van-laarhoven.org>
2006-01-30 00:32:40 +00:00
harti
aab4200093 MFC the HOSTRES-MIB. This is exactly the same version as in HEAD except for
a slightly different mechanism to load geom_md (g_me) which was renamed at
some point. This has been tested on RELENG_6 by erwin and glebius.

Reviewed by:	erwin, glebius
2006-01-27 16:27:34 +00:00
cperciva
a1101f1dce MFC rev. 1.8:
Correctly identify the host and port values on a failed
  getaddrinfo lookup.
2006-01-27 14:44:15 +00:00
cvs2svn
7fcb1e9c3c This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-01-26 12:19:11 +00:00
harti
9d9c8d901e MFC: SNMP module build infrastucture:
share/man/man7/Makefile:1.30
	share/mk/Makefile:1.47
	usr.sbin/bsnmpd/modules/Makefile.inc:1.12
	usr.sbin/bsnmpd/modules/snmp_atm/Makefile:1.4
	usr.sbin/bsnmpd/modules/snmp_mibII/Makefile:1.6
	usr.sbin/bsnmpd/modules/snmp_netgraph/Makefile:1.7
	usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c:1.6
	usr.sbin/bsnmpd/modules/snmp_pf/Makefile:1.2
	share/man/man7/bsd.snmpmod.mk.7:1.4
	share/mk/bsd.snmpmod.mk:1.2
2006-01-25 13:22:59 +00:00
matteo
ecf1277aef MFC:
Honour the "uuid" directive in adduser.conf

      src/usr.sbin/adduser/adduser.sh: rev 1.26 -> 1.27

PR:		conf/87914

Approved by:	philip (mentor, implicit)
2006-01-25 07:43:48 +00:00
gad
751980ab6f MFC 1.103: Improve the handling of errors that might happen with the fork()
done to compress files after they have been rotated.
2006-01-25 04:10:59 +00:00
joel
2d6cdc2b7e MFC: s/5.5/6.0/ in HISTORY section. 2006-01-24 17:02:39 +00:00
ceri
7cebe2cfa5 MFC revision 1.150:
On i386, 7.0 requires 106MB on /usr.  6.0 requires 101MB.
  Bump USR_MIN_SIZE to 128MB, so that an auto-layout install won't fail
  due to /usr being too small.
2006-01-24 15:51:33 +00:00
brooks
ebafce1b5d MFC the ability to restrict deletions to a particular inteface in the -a
case.
2006-01-24 05:39:22 +00:00
cperciva
a9136f59b5 MFC rev 1.5:
Mention that the random time slept by "portsnap cron" is between 1 and
  3600 seconds.
2006-01-21 09:56:28 +00:00
ceri
2a7cb7f0ba MFC revision 1.133:
Preserve any additional arguments to ifconfig that were specified in
  the DHCP case too.
2006-01-20 18:46:06 +00:00
harti
2c80e8f4d2 MFC: BEGEMOT_1_11 and vendor patches:
config.c: 1.1.1.7
	main.c: 1.1.1.10, 1.1.1.11
	snmpd.config: 1.1.1.6
2006-01-20 16:34:37 +00:00
harti
03e2bbe4b2 MFC: BEGEMOT_1_11 and vendor fixes:
mibII.c: 1.1.1.9
	mibII_interfaces.c: 1.1.1.7
2006-01-20 16:27:36 +00:00
ceri
2f6c15280f MFC revision 1.413:
Add ntp.cgi.cz.
2006-01-20 13:03:13 +00:00
ceri
4fd8a7fa17 MFC revisions 1.36 and 1.37:
r1.36:
	  Correct obsolete chown syntax.

	r1.37:
	  If sysinstall was used to configure an anonymous FTP area, it
	was possible for information to be copied from the group file to
	the group file in the FTP area.  This patch based on a patch
	from Zak Johnson <zakj at nox dot cx>.
2006-01-20 13:00:32 +00:00
flz
491b3507c0 MFC:
Add -K option to pkg_add and pkg_info.
  This option saves packages to PKGDIR (if defined or current directory by default)
  as they are downloaded.
  Silent a warning when -n is used and package has a +DISPLAY file.

      src/usr.sbin/pkg_install/info/perform.c: rev 1.53 -> 1.54
      src/usr.sbin/pkg_install/add/main.c: rev 1.65 -> 1.66
      src/usr.sbin/pkg_install/lib/lib.h: rev 1.56 -> 1.57
      src/usr.sbin/pkg_install/info/pkg_info.1: rev 1.55 -> 1.56
      src/usr.sbin/pkg_install/add/add.h: rev 1.12 -> 1.13
      src/usr.sbin/pkg_install/add/pkg_add.1: rev 1.68 -> 1.69
      src/usr.sbin/pkg_install/add/perform.c: rev 1.78 -> 1.79
      src/usr.sbin/pkg_install/info/info.h: rev 1.28 -> 1.29
      src/usr.sbin/pkg_install/lib/url.c: rev 1.4 -> 1.5
      src/usr.sbin/pkg_install/info/main.c: rev 1.48 -> 1.49
2006-01-16 19:51:41 +00:00
delphij
68b438857e MFC pidfile(3) function, and convert several applications to make use
of it.

Bump __FreeBSDversion for the MFC.

Discussed with:	pjd
2006-01-15 17:50:38 +00:00
pav
b68f1c7b71 MFC 1.16: fix: documentation for -m option was inserted halfway thru the text
of -l option.
2006-01-13 20:02:56 +00:00
cperciva
dad028c05c MFC:
Make "portsnap extract" automatically create ${PORTSDIR} if necessary
  instead of complaining that "Directory does not exist or is not
  writable".
2006-01-13 00:53:53 +00:00
flz
384cb78489 MFC:
Fix -r causing SIGSEGV due to parse_args() being called before font_current is set.

      src/usr.sbin/kbdmap/kbdmap.c: rev 1.4
2006-01-12 01:26:34 +00:00
krion
742f52a8cb MFC: add/extract.c:1.44 create/perform.c:1.82 create/pkg_create.1:1.70 create/pl.c:1.28
info/show.c:1.40 lib/plist.c:1.51

  date: 2006/01/07 22:10:57;  author: krion;  state: Exp;  lines: +10 -3
  When using @cwd %%FOO%%, we must ensure to return in the original
  prefix later, but doing so with @cwd %%OLDPREFIX%% (having
  PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
  list. That's not really a problem when dealing with ports but that's
  a problem with packages since pkg_add -p option only overrides the
  first @cwd occurrence.

  This patch allow us to use @cwd without any argument. If no
  directory argument is given, it will set current working directory
  to the first prefix given by the @cwd command.

  PR:             bin/77212
  Submitted by:   flz
2006-01-10 22:17:08 +00:00
ceri
f62c4a36d2 MFC revision 1.82:
inetd(8) requires that /etc/netconfig be present, and contain entries
  for each of udp and tcp (and their IPv6 equivalents when INET6 is
  enabled).  Note that dependency here.

  PR:             docs/90435
  Submitted by:   Dmitry Kazarov <kazarov at mcm dot ru>
  Pointed out by: Daniel Gerzo <danger at rulez dot sk>
2006-01-07 13:57:58 +00:00
ceri
ac30b2fccc MFC revision 1.364:
An i386 machine with 32MB of RAM requires a 700MB disk for auto-layout to
  succeed, whilst an i386 with 256MB of RAM requires more.  Up the amount
  of disk hinted at as a minimum requisite for auto-layout.
2006-01-06 20:10:41 +00:00
ariff
3c58551f23 MFC:
- Fix possible memory leak due to repetetive strdup(3) without matching
     free(3).
   - print_recsrc() should honor shortflag and give appropriate output for
     later consumption by /etc/rc.d/mixer. This will ensure that recording
     device selections survived across reboot. Output everything to stdout
     instead of stderr.
2006-01-04 00:32:14 +00:00
marcel
14fe1a0c49 MFC standardization of the ELF types and update of the ELF constants:
lib/libc/gen/nlist.c:1.19
	libexec/rtld-elf/rtld.c:1.108
	libexec/rtld-elf/rtld.h:1.36
	libexec/rtld-elf/alpha/reloc.c:1.21
	libexec/rtld-elf/amd64/reloc.c:1.16
	libexec/rtld-elf/ia64/reloc.c:1.16
	libexec/rtld-elf/sparc64/reloc.c:1.11
	share/man/man5/elf.5:1.32-1.33
	sys/alpha/alpha/elf_machdep.c:1.20
	sys/amd64/amd64/elf_machdep.c:1.24
	sys/boot/common/bootstrap.h:1.42
	sys/boot/common/load_elf.c:1.33
	sys/boot/common/load_elf_obj.c:1.2
	sys/boot/common/reloc_elf.c:1.2
	sys/ia64/ia64/elf_machdep.c:1.21
	sys/kern/link_elf.c:1.87
	sys/kern/link_elf_obj.c:1.90
	sys/sparc64/sparc64/elf_machdep.c:1.20
	sys/sys/elf32.h:1.9-1.10
	sys/sys/elf64.h:1.11-1.13
	sys/sys/elf_common.h:1.16
	sys/sys/elf_generic.h:1.7
	sys/sys/imgact_elf.h:1.28
	sys/sys/linker.h:1.40
	usr.bin/elf2aout/elf2aout.c:1.10
	usr.bin/elfdump/elfdump.c:1.13
	usr.sbin/crunch/crunchide/exec_elf32.c:1.15
	usr.sbin/kldxref/ef.c:1.9
	usr.sbin/kldxref/ef.h:1.6
	usr.sbin/kldxref/ef_amd64.c:1.3
	usr.sbin/kldxref/ef_i386.c:1.3
	usr.sbin/kldxref/ef_obj.c:1.4
	usr.sbin/kldxref/ef_powerpc.c:1.3
	usr.sbin/kldxref/ef_sparc64.c:1.4-1.5
2005-12-30 22:13:59 +00:00
sobomax
7d384c2f8a MFC: provide example of how to make two keyboards working at the same time
using kbdmux(4).
2005-12-29 20:15:27 +00:00
sobomax
52480b0ed0 MFC: fix logic error which causes <null> to be printed instead of the
actual file name in error message.
2005-12-29 06:04:51 +00:00
glebius
9c2a5c3b76 MFC:
Add a knob to suppress logging of attempts to modify
  permanent ARP entries.

  Submitted by:   Andrew Alcheyev <buddy telenet.ru>
2005-12-28 13:33:41 +00:00
wilko
ae84954d32 Add an example for WEP.
OK-ed by: sam
2005-12-25 22:31:54 +00:00
dougb
83dcdc924b MFC 1.52, do not delete stale /etc/rc.d files by default 2005-12-21 09:04:24 +00:00
pjd
407c7742ed MFC: Move setkey(8) from usr.sbin/ to sbin/ and make rc.d/ipsec to run
before rc.d/mountcritremote, so it is possible to mount /usr/ over
	IPsec.

Discussed on:	arch@
Suggested by:	Tomasz Pi³at <tomasz.pilat@axelspringer.pl>
Prodded by:	dougb
2005-12-15 23:30:12 +00:00
des
f180e73405 MFC: (1.25, 1.26) whitespace cleanup, parser improvements 2005-12-14 09:13:46 +00:00
emax
b1877750af MFC: Teach sdpd(8) to check peer's credentials before accepting request to
register, remove or change services in the local database. For now only
accept the request if the peer has effective user ID the same as 'root'
user ID.
2005-12-13 00:38:28 +00:00
emax
fc03c2855d MFC: Fix typo in rfcomm_pppd(8) man page.
Noticed by:	Ronald Klop
2005-12-13 00:31:03 +00:00
cperciva
4ba093419a MFC revision 1.5:
Make "missing dependency" errors more useful by indicating which port
  is trying to depend upon the non-existent port.

  Suggested by:   kris
2005-12-05 05:07:44 +00:00
philip
673143134c MFC: moused.c r1.71 and r1.74
moused.8 r1.54 to r1.57

moused.c r1.71:
  Add a -H option to enable horizontal virtual scrolling, much like -V for
  vertical virtual scrolling.  This also respects -U for the distance.

moused.c 1.74:
  Add an option to stop 'mouse drift' in some defective/cheap mice.  This
  stops the pointer slowly wandering away on its own in an annoying way when
  the mouse isn't physically moved.

moused.8:
  Documentation of above and ru's mdoc magic.

Procrastinator of the year:	philip
2005-12-04 00:48:33 +00:00
philip
f8de49e67d MFC r1.7:
Check for altq presence during module init, and allow module to work even if
  altq is not present (just disable the altq bits in that case).
2005-12-03 14:45:05 +00:00
philip
da676c8632 MFC r1.85:
Preserve /etc/sysctl.conf when doing a binary update.  This prevents, for
  instance, the dreaded shared memory problem in PostgreSQL coming back to
  haunt you after a binary update.
2005-12-03 14:37:24 +00:00
ru
4603995659 MFC: "nocpu" and "nomakeoptions" directives. 2005-12-01 17:43:09 +00:00
krion
7ba5cae87f MFC: pkg_info.1:1.55
date: 2005/11/23 10:31:59;  author: krion;  state: Exp;  lines: +4 -1
  Document PKG_PATH enviroment variable.

  Prodded by:     Mark Andrews <Mark_Andrews AT isc DOT org>
2005-11-26 20:58:43 +00:00
glebius
d4826e3f0a MFC 1.18 - 1.21:
- Document last change to ARP behavior.
  - Document several undocumented sysctl variables.
  - Fix spelling of few diagnostics.
  - Improve the documentation of "proxyall" knob, somewhat: we do not
    proxy for hosts that are reachable through the same interface the
    request came in from.  This feature is mainly for hosts reachable
    through some P2P link, e.g. the gif(4) tunnel.
2005-11-25 14:40:38 +00:00
cperciva
8cc04de74d Synchronize with version of portsnap in HEAD:
1. make_index no longer coredumps if input has zero lines.
2. phttpget no longer enters an infinite loop if the TCP connection is
closed while phttpget is reading HTTP headers.
2005-11-25 12:56:51 +00:00
rwatson
206b0b662e Merge pstat.c:1.96 from HEAD to RELENG_6:
Print (total - used) as the amount of available swap for a swap device
  when printing swapinfo output, rather than (total), as that is (strictly
  speaking) more accurate.

  Pointed out by: Rob <spamrefuse at yahoo dot com>
2005-11-20 00:40:03 +00:00