Commit Graph

247 Commits

Author SHA1 Message Date
lukem 98228effd2 Use "nodiff" instead of "nomail" for the tag which is used to exclude
files from having the changes diff generated.  Suggested by Michael Graff.
2001-10-15 03:00:22 +00:00
lukem 9d713861f1 monitor etc/changelist again 2001-10-15 02:56:42 +00:00
lukem 96a1608ee4 Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.
Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
  /etc/changelist:
	- files which we want to monitor for changes but don't want to
	  see the diffs of (master.passwd, ssh_host_key, ...) are
	  tagged with "nomail"
	- files which we don't want to monitor are tagged with "exclude"
	  (such as netgroup.db, kvm.db, ...)
	- monitor /etc/mtree/special.local, /root/.ssh/*
	- remove /etc/changelist, and a bunch of XXX comments
	- use mtree(8)'s -D, -I, and -E to generate lists of files to
	  actually do the changelist stuff on.
	- support /etc/mtree/special.local as an optional user-provided
	  version of /etc/mtree/special (effectively, an enhanced
	  /etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
  including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
  the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
  with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
  in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
  from the old `top level' /var/backups mechanism to the `full path'
  mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
  and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math
2001-10-12 05:18:23 +00:00
lukem 01c63bc35a - add "ntpd" user (homedir: /var/chroot/ntpd) and "ntpd" group, for use by
future work to support a chroot(8)ed ntpd
- move /var/named -> /var/chroot/named for consistency with ntpd
2001-10-11 07:21:07 +00:00
lukem a9b011ff87 remove unnecessary uname=root 2001-10-08 02:48:49 +00:00
lukem ff2aa3f8e8 Take advantage of mtree(8)'s recently added support for absolute paths.
Use a default "/set uname=root gname=wheel".
This drastically reduces the size of the file, as well as making it
far more maintainable. The differences are:
	lines   words  bytes  filename
	  342    1633  16272  special-relative
	  295     998  11971  special-absolute
2001-10-05 16:11:46 +00:00
lukem 877f022d22 Take advantage of mtree(8)'s recently added support for absolute paths.
This drastically reduces the size of the file, as well as making it
far more maintainable. The differences are:
	lines   words  bytes  filename
	3240    3847   43634  NetBSD.dist-relative
	 632     696   17166  NetBSD.dist-absolute
2001-10-05 16:09:38 +00:00
lukem 451df90b87 add /etc/defaults/*.conf 2001-10-02 03:02:10 +00:00
lukem 937f059e75 remove rule for pkgsrc - we don't have one for any of the other source
directories.   requested in [bin/13818]
2001-10-02 01:21:27 +00:00
lukem 3e5fe9c71e add etc/rc.d/*. fixes [bin/12729] 2001-10-02 01:08:11 +00:00
lukem 10887c7f1f rc.local is technically an optional file... 2001-10-02 00:26:07 +00:00
lukem d15062c3c7 add ssh{,d}.conf, ssh_known_hosts{,2}, ssh_host_{[rd]sa_,}key{.pub,} 2001-10-02 00:16:36 +00:00
lukem 6d044e5a56 add a bunch of optional etc stuff from changelist:
Distfile bootparams bootptab ccd.conf daily.local defaultdomain
	dhclient-enter-hooks dhclient-exit-hooks dhclient.conf dhcpd.conf
	disktab ethers ftpd.conf ftpwelcome gateways hesiod.conf hosts.allow
	hosts.deny hosts.lpd ifaliases ipf.conf ipnat.conf ipsec.conf
	monthly.local mygate myname netgroup netgroup.db netstart.local
	ntp.conf passwd.conf rbootd.conf rtadvd.conf security.local
	ttyaction usermgmt.conf weekly.local
- add required stuff from changelist:
	etc/floppytab etc/netconfig etc/sysctl.conf
    	var/cron/tabs/root
	var/yp/Makefile
sort mail/ into its proper place
add some comments to remind us of things to look at in the future
2001-10-01 08:01:36 +00:00
wiz 09c135bad9 Add some dirs needed for texinfo locale files. 2001-09-02 22:55:08 +00:00
wiz 8624e48221 Add /usr/share/man/{cat,man}8/netwinder. 2001-08-23 01:35:36 +00:00
wiz 8d6595d978 Add /usr/share/man/{man,cat}4/sun2 2001-08-17 07:15:12 +00:00
lukem ed97fbd98d create /var/named 0755 root:wheel instead of 0750 root:named 2001-08-09 01:32:46 +00:00
garbled d472541074 And add sshdconf here too. Christ there are alot of files to update. 2001-08-02 05:47:59 +00:00
veego 797097c7d1 Another place where primes was used. Change it to moduli. 2001-06-24 17:28:05 +00:00
simonb a0a111aa26 Add support files for the Walnut. 2001-06-13 15:13:24 +00:00
kim a81dea8eca Remove duplicate usr/share/man/cat8/news68k added in revision 1.159... 2001-06-08 21:16:15 +00:00
kim 8966f5524c not usr/share/man/cat8/new68k but usr/share/man/cat8/news68k 2001-06-08 21:13:23 +00:00
tron a35d0a5c89 Add missign directory "./usr/share/man/cat8/news68k". 2001-06-08 16:45:37 +00:00
wiz cffe2f2fdb Add some more arch-specific man8/cat8 subdirs. 2001-06-08 14:24:44 +00:00
kleink 6ad0537dc7 Look after /etc/primes. 2001-05-28 14:08:50 +00:00
wiz 5362253979 Add /usr/share/man/{cat,man}8/dreamcast 2001-05-27 21:15:59 +00:00
wiz ee09877887 Remove named.boot (only used by BIND 4.x). 2001-05-06 10:53:32 +00:00
garbled a5cfcb8b2b Add the directory for the new sushi menu system/localtime. 2001-04-29 04:49:55 +00:00
garbled 8032753ad3 Add sushi/system/sysctl to this file. 2001-04-26 02:53:46 +00:00
garbled 9b38738db9 Add all the mtree lines for the sushi procs menu. ::whine:: I hate this
file.
2001-04-26 02:37:59 +00:00
garbled 2add5244d8 Add the pile of directory entries for sushi's new networking menu tree. 2001-04-25 03:54:26 +00:00
atatat 7989fb3af8 The script called dhclient-script no longer lives in /etc. 2001-04-21 22:53:36 +00:00
shin 18b3797247 add /dev/altq 2001-04-21 09:54:33 +00:00
wiz 3e40b73c85 Add some dirs for groff-1.16.1 2001-04-19 14:27:10 +00:00
wiz bb4e2557d0 Add usr/share/man/{cat,man}8/macppc 2001-04-16 08:20:57 +00:00
wiz fdb63fff38 Every man section begins with a single page:
Add share/man/{cat,man}4/macppc, and intro.{0,4} there.
Thanks to Tsubai Masanari for help in writing it.
2001-04-06 10:47:16 +00:00
wiz 487a5a5ba1 We don't need man/{cat,man}3/atari anymore, since libahdi is gone (and
has been for over a year), and nobody else installs anything there.
Remove them.
2001-04-04 13:13:59 +00:00
itojun 8bab066e41 dig /usr/share/doc/usd/12.ex instaed of 13.ex 2001-03-31 13:50:36 +00:00
itojun 9fdfe6878f en_US.UTF-2 locale is obsolete. PR 12502 2001-03-31 09:35:34 +00:00
veego ec058576d4 /usr/include/gssapi/rpc and /usr/include/ss are no longer used, so remove
them.
2001-03-18 10:03:51 +00:00
wiz 0447d6c08c Remove obsolete /usr/share/man/{cat,man}{1,3,5}/i386. 2001-03-12 12:48:47 +00:00
garbled e254aae479 Add and delete mtree entries for the change in how scripting/logging is
organized in sushi.
2001-03-07 07:14:16 +00:00
garbled f646706dac Add the mtree entries for the new sushi subdirectories 2001-03-06 21:59:49 +00:00
lukem 2e92ff9036 setup named chroot cage under /var/named 2001-02-28 19:22:30 +00:00
lukem bc9099d3bd don't explicitly need /var/spool/lpd; it's not used by anything by default 2001-02-15 15:00:51 +00:00
nonaka 3f2f1009bc Add ./usr/share/locale/en_US.UTF-2 2001-02-04 16:51:47 +00:00
itojun c714ba6dfc zh_TW.BIG5 (alias to zh_TW.Big5) 2001-02-01 19:45:19 +00:00
itojun 2ee3479198 remove sendmail-IPv4only.cf from checklist. PR 12075. 2001-01-29 09:39:46 +00:00
perry d837578f14 /etc/disklabels is obsolete -- remove it 2001-01-25 15:12:49 +00:00
itojun 4481e2ca0d build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.
2001-01-25 09:16:38 +00:00