Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/mtree Take advantage of mtree(8)'s recently added suppor...



details:   https://anonhg.NetBSD.org/src/rev/e6a896d4f29e
branches:  trunk
changeset: 515827:e6a896d4f29e
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Oct 05 16:11:46 2001 +0000

description:
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

diffstat:

 etc/mtree/special |  615 ++++++++++++++++++++++++-----------------------------
 1 files changed, 284 insertions(+), 331 deletions(-)

diffs (truncated from 630 to 300 lines):

diff -r 9d7fb8c4d1ef -r e6a896d4f29e etc/mtree/special
--- a/etc/mtree/special Fri Oct 05 16:09:38 2001 +0000
+++ b/etc/mtree/special Fri Oct 05 16:11:46 2001 +0000
@@ -1,342 +1,295 @@
-#      $NetBSD: special,v 1.45 2001/10/02 03:02:10 lukem Exp $
+#      $NetBSD: special,v 1.46 2001/10/05 16:11:46 lukem Exp $
 #      @(#)special     8.2 (Berkeley) 1/23/94
 #
 # Hand-crafted mtree specification for the dangerous files.
 #
 
-.              type=dir mode=0755 uname=root gname=wheel
+/set uname=root gname=wheel
+
+.                              type=dir  mode=0755
 
-dev            type=dir mode=0755 uname=root gname=wheel
-drum           type=char mode=0640 uname=root gname=kmem
-fd             type=dir mode=0755 uname=root gname=wheel ignore
-..     #dev/fd
-kmem           type=char mode=0640 uname=root gname=kmem
-mem            type=char mode=0640 uname=root gname=kmem
-..     #dev
+./dev                          type=dir  mode=0755
+./dev/drum                     type=char mode=0640 gname=kmem
+./dev/fd                       type=dir  mode=0755 ignore
+./dev/kmem                     type=char mode=0640 gname=kmem
+./dev/mem                      type=char mode=0640 gname=kmem
 
-etc            type=dir mode=0755 uname=root gname=wheel
-Distfile       type=file mode=0644 uname=root gname=wheel optional
-amd            type=dir mode=0755 uname=root gname=wheel optional
-..     #etc/amd
-apm            type=dir mode=0755 uname=root gname=wheel optional
-..     #etc/apm
-bootparams     type=file mode=0644 uname=root gname=wheel optional
-bootptab       type=file mode=0644 uname=root gname=wheel optional
-ccd.conf       type=file mode=0644 uname=root gname=wheel optional
-# XXX remove changelist?
-changelist     type=file mode=0644 uname=root gname=wheel
-# XXX remove crontab entry completely ?
-crontab                type=file mode=0644 uname=root gname=wheel optional
-csh.cshrc      type=file mode=0644 uname=root gname=wheel
-csh.login      type=file mode=0644 uname=root gname=wheel
-csh.logout     type=file mode=0644 uname=root gname=wheel
-daily          type=file mode=0644 uname=root gname=wheel
-daily.conf     type=file mode=0644 uname=root gname=wheel
-daily.local    type=file mode=0644 uname=root gname=wheel optional
-defaultdomain  type=file mode=0644 uname=root gname=wheel optional
-defaults       type=dir mode=0755 uname=root gname=wheel
-daily.conf     type=file mode=0444 uname=root gname=wheel
-monthly.conf   type=file mode=0444 uname=root gname=wheel
-rc.conf                type=file mode=0444 uname=root gname=wheel
-security.conf  type=file mode=0444 uname=root gname=wheel
-weekly.conf    type=file mode=0444 uname=root gname=wheel
-..     #etc/defaults
-dhclient-enter-hooks   type=file mode=0644 uname=root gname=wheel optional
-dhclient-exit-hooks    type=file mode=0644 uname=root gname=wheel optional
-dhclient.conf  type=file mode=0644 uname=root gname=wheel optional
-dhcpd.conf     type=file mode=0644 uname=root gname=wheel optional
-disktab                type=file mode=0644 uname=root gname=wheel
-dm.conf                type=file mode=0644 uname=root gname=wheel
-dumpdates      type=file mode=0664 uname=root gname=operator optional
-ethers         type=file mode=0644 uname=root gname=wheel optional
-exports                type=file mode=0644 uname=root gname=wheel optional
-floppytab      type=file mode=0644 uname=root gname=wheel
-fstab          type=file mode=0644 uname=root gname=wheel
-ftpchroot      type=file mode=0644 uname=root gname=wheel
-ftpd.conf      type=file mode=0644 uname=root gname=wheel optional
-ftpusers       type=file mode=0644 uname=root gname=wheel
-ftpwelcome     type=file mode=0644 uname=root gname=wheel optional
-gateways       type=file mode=0644 uname=root gname=wheel optional
-gettytab       type=file mode=0644 uname=root gname=wheel
-group          type=file mode=0644 uname=root gname=wheel
-hesiod.conf    type=file mode=0644 uname=root gname=wheel optional
-hosts          type=file mode=0644 uname=root gname=wheel
-hosts.allow    type=file mode=0644 uname=root gname=wheel optional
-hosts.deny     type=file mode=0644 uname=root gname=wheel optional
-hosts.equiv    type=file mode=0600 uname=root gname=wheel optional
-hosts.lpd      type=file mode=0644 uname=root gname=wheel optional
-ifaliases      type=file mode=0644 uname=root gname=wheel optional
-# XXX support ifconfig.*
-inetd.conf     type=file mode=0644 uname=root gname=wheel
-ipf.conf       type=file mode=0644 uname=root gname=wheel optional
-ipnat.conf     type=file mode=0644 uname=root gname=wheel optional
-ipsec.conf     type=file mode=0644 uname=root gname=wheel optional
-kerberosIV     type=dir mode=0755 uname=root gname=wheel ignore optional
-..     #etc/kerberosIV
-ld.so.conf     type=file mode=0644 uname=root gname=wheel optional
-lkm.conf       type=file mode=0644 uname=root gname=wheel optional
-localtime      type=link mode=0755 uname=root gname=wheel
-login.conf     type=file mode=0644 uname=root gname=wheel optional
-mail           type=dir mode=0755 uname=root gname=wheel
-aliases                type=file mode=0644 uname=root gname=wheel
-aliases.db     type=file mode=0644 uname=root gname=wheel
-helpfile       type=file mode=0444 uname=root gname=wheel
-local-host-names       type=file mode=0644 uname=root gname=wheel optional
-sendmail.cf    type=file mode=0444 uname=root gname=wheel
-..     #etc/mail
-mail.rc                type=file mode=0644 uname=root gname=wheel
-mailer.conf    type=file mode=0644 uname=root gname=wheel
-man.conf       type=file mode=0644 uname=root gname=wheel
-master.passwd  type=file mode=0600 uname=root gname=wheel
-mk.conf                type=file mode=0644 uname=root gname=wheel
-moduli         type=file mode=0444 uname=root gname=wheel
-monthly                type=file mode=0644 uname=root gname=wheel
-monthly.conf   type=file mode=0644 uname=root gname=wheel
-monthly.local  type=file mode=0644 uname=root gname=wheel optional
-mrouted.conf   type=file mode=0644 uname=root gname=wheel
-mtree          type=dir mode=0755 uname=root gname=wheel
-special                type=file mode=0444 uname=root gname=wheel
-..     #etc/mtree
-mygate         type=file mode=0644 uname=root gname=wheel optional
-myname         type=file mode=0644 uname=root gname=wheel optional
-named.conf     type=file mode=0644 uname=root gname=wheel optional
-namedb         type=dir mode=0755 uname=root gname=wheel
-..     #etc/namedb
-netconfig      type=file mode=0644 uname=root gname=wheel
-netgroup       type=file mode=0644 uname=root gname=wheel optional
-netgroup.db    type=file mode=0644 uname=root gname=wheel optional
-netstart.local type=file mode=0644 uname=root gname=wheel optional
-networks       type=file mode=0644 uname=root gname=wheel
-newsyslog.conf type=file mode=0644 uname=root gname=wheel
-nsswitch.conf  type=file mode=0644 uname=root gname=wheel
-ntp.conf       type=file mode=0644 uname=root gname=wheel optional
-passwd         type=file mode=0644 uname=root gname=wheel
-passwd.conf    type=file mode=0644 uname=root gname=wheel optional
-phones         type=file mode=0644 uname=root gname=wheel
-ppp            type=dir mode=0755 uname=root gname=wheel optional
-options                type=file mode=0644 uname=root gname=wheel optional
-..     #etc/ppp
-printcap       type=file mode=0644 uname=root gname=wheel
-profile                type=file mode=0644 uname=root gname=wheel
-protocols      type=file mode=0644 uname=root gname=wheel
-# XXX support raid*.conf
-rbootd.conf    type=file mode=0644 uname=root gname=wheel optional
-rc             type=file mode=0644 uname=root gname=wheel
-rc.conf                type=file mode=0644 uname=root gname=wheel
-rc.d           type=dir mode=0755 uname=root gname=wheel
-DAEMON         type=file mode=0555 uname=root gname=wheel
-LOGIN          type=file mode=0555 uname=root gname=wheel
-NETWORK                type=file mode=0555 uname=root gname=wheel
-SERVERS                type=file mode=0555 uname=root gname=wheel
-accounting     type=file mode=0555 uname=root gname=wheel
-altqd          type=file mode=0555 uname=root gname=wheel
-amd            type=file mode=0555 uname=root gname=wheel
-apmd           type=file mode=0555 uname=root gname=wheel
-bootconf.sh    type=file mode=0555 uname=root gname=wheel
-bootparams     type=file mode=0555 uname=root gname=wheel
-ccd            type=file mode=0555 uname=root gname=wheel
-cleartmp       type=file mode=0555 uname=root gname=wheel
-cron           type=file mode=0555 uname=root gname=wheel
-dhclient       type=file mode=0555 uname=root gname=wheel
-dhcpd          type=file mode=0555 uname=root gname=wheel
-dhcrelay       type=file mode=0555 uname=root gname=wheel
-dmesg          type=file mode=0555 uname=root gname=wheel
-downinterfaces type=file mode=0555 uname=root gname=wheel
-fsck           type=file mode=0555 uname=root gname=wheel
-inetd          type=file mode=0555 uname=root gname=wheel
-ipfilter       type=file mode=0555 uname=root gname=wheel
-ipmon          type=file mode=0555 uname=root gname=wheel
-ipnat          type=file mode=0555 uname=root gname=wheel
-ipsec          type=file mode=0555 uname=root gname=wheel
-isdnd          type=file mode=0555 uname=root gname=wheel
-kdc            type=file mode=0555 uname=root gname=wheel
-ldconfig       type=file mode=0555 uname=root gname=wheel
-lkm1           type=file mode=0555 uname=root gname=wheel
-lkm2           type=file mode=0555 uname=root gname=wheel
-lkm3           type=file mode=0555 uname=root gname=wheel
-local          type=file mode=0555 uname=root gname=wheel
-lpd            type=file mode=0555 uname=root gname=wheel
-mopd           type=file mode=0555 uname=root gname=wheel
-motd           type=file mode=0555 uname=root gname=wheel
-mountall       type=file mode=0555 uname=root gname=wheel
-mountcritlocal type=file mode=0555 uname=root gname=wheel
-mountcritremote        type=file mode=0555 uname=root gname=wheel
-mountd         type=file mode=0555 uname=root gname=wheel
-mrouted                type=file mode=0555 uname=root gname=wheel
-named          type=file mode=0555 uname=root gname=wheel
-ndbootd                type=file mode=0555 uname=root gname=wheel
-network                type=file mode=0555 uname=root gname=wheel
-newsyslog      type=file mode=0555 uname=root gname=wheel
-nfsd           type=file mode=0555 uname=root gname=wheel
-nfslocking     type=file mode=0555 uname=root gname=wheel
-ntpd           type=file mode=0555 uname=root gname=wheel
-ntpdate                type=file mode=0555 uname=root gname=wheel
-poffd          type=file mode=0555 uname=root gname=wheel
-postfix                type=file mode=0555 uname=root gname=wheel
-ppp            type=file mode=0555 uname=root gname=wheel
-pwcheck                type=file mode=0555 uname=root gname=wheel
-quota          type=file mode=0555 uname=root gname=wheel
-racoon         type=file mode=0555 uname=root gname=wheel
-raidframe      type=file mode=0555 uname=root gname=wheel
-rarpd          type=file mode=0555 uname=root gname=wheel
-rbootd         type=file mode=0555 uname=root gname=wheel
-root           type=file mode=0555 uname=root gname=wheel
-route6d                type=file mode=0555 uname=root gname=wheel
-routed         type=file mode=0555 uname=root gname=wheel
-rpcbind                type=file mode=0555 uname=root gname=wheel
-rtadvd         type=file mode=0555 uname=root gname=wheel
-rtsold         type=file mode=0555 uname=root gname=wheel
-rwho           type=file mode=0555 uname=root gname=wheel
-savecore       type=file mode=0555 uname=root gname=wheel
-screenblank    type=file mode=0555 uname=root gname=wheel
-securelevel    type=file mode=0555 uname=root gname=wheel
-sendmail       type=file mode=0555 uname=root gname=wheel
-sshd           type=file mode=0555 uname=root gname=wheel
-swap1          type=file mode=0555 uname=root gname=wheel
-swap2          type=file mode=0555 uname=root gname=wheel
-sysctl         type=file mode=0555 uname=root gname=wheel
-sysdb          type=file mode=0555 uname=root gname=wheel
-syslogd                type=file mode=0555 uname=root gname=wheel
-timed          type=file mode=0555 uname=root gname=wheel
-ttys           type=file mode=0555 uname=root gname=wheel
-virecover      type=file mode=0555 uname=root gname=wheel
-wscons         type=file mode=0555 uname=root gname=wheel
-xdm            type=file mode=0555 uname=root gname=wheel
-xfs            type=file mode=0555 uname=root gname=wheel
-ypbind         type=file mode=0555 uname=root gname=wheel
-yppasswdd      type=file mode=0555 uname=root gname=wheel
-ypserv         type=file mode=0555 uname=root gname=wheel
-..     #etc/rc.d
-# XXX support rc.conf.d/*
-rc.lkm         type=file mode=0644 uname=root gname=wheel
-rc.local       type=file mode=0644 uname=root gname=wheel optional
-rc.shutdown    type=file mode=0644 uname=root gname=wheel
-rc.shutdown.local      type=file mode=0644 uname=root gname=wheel optional
-rc.subr                type=file mode=0644 uname=root gname=wheel
-remote         type=file mode=0644 uname=root gname=wheel
-resolv.conf    type=file mode=0644 uname=root gname=wheel optional
-rpc            type=file mode=0644 uname=root gname=wheel
-rtadvd.conf    type=file mode=0644 uname=root gname=wheel optional
-security       type=file mode=0644 uname=root gname=wheel
-security.conf  type=file mode=0644 uname=root gname=wheel
-security.local type=file mode=0644 uname=root gname=wheel optional
-services       type=file mode=0644 uname=root gname=wheel
-shells         type=file mode=0644 uname=root gname=wheel
-spwd.db                type=file mode=0600 uname=root gname=wheel
-ssh.conf               type=file mode=0644 uname=root gname=wheel optional
-ssh_host_dsa_key       type=file mode=0600 uname=root gname=wheel optional
-ssh_host_dsa_key.pub   type=file mode=0644 uname=root gname=wheel optional
-ssh_host_key           type=file mode=0600 uname=root gname=wheel optional
-ssh_host_key.pub       type=file mode=0644 uname=root gname=wheel optional
-ssh_host_rsa_key       type=file mode=0600 uname=root gname=wheel optional
-ssh_host_rsa_key.pub   type=file mode=0644 uname=root gname=wheel optional
-ssh_known_hosts                type=file mode=0644 uname=root gname=wheel optional
-ssh_known_hosts2       type=file mode=0644 uname=root gname=wheel optional
-sshd.conf              type=file mode=0644 uname=root gname=wheel optional
-sysctl.conf    type=file mode=0644 uname=root gname=wheel
-syslog.conf    type=file mode=0644 uname=root gname=wheel
-ttyaction      type=file mode=0644 uname=root gname=wheel optional
-ttys           type=file mode=0644 uname=root gname=wheel
-usermgmt.conf  type=file mode=0644 uname=root gname=wheel optional
-weekly         type=file mode=0644 uname=root gname=wheel
-weekly.conf    type=file mode=0644 uname=root gname=wheel
-weekly.local   type=file mode=0644 uname=root gname=wheel optional
-wscons.conf    type=file mode=0644 uname=root gname=wheel
-..     #etc
+./etc                          type=dir  mode=0755
+./etc/Distfile                 type=file mode=0644 optional
+./etc/amd                      type=dir  mode=0755 optional
+./etc/apm                      type=dir  mode=0755 optional
+./etc/bootparams               type=file mode=0644 optional
+./etc/bootptab                 type=file mode=0644 optional
+./etc/ccd.conf                 type=file mode=0644 optional
+#      XXX remove changelist?
+./etc/changelist               type=file mode=0644
+#      XXX remove crontab entry completely ?
+./etc/crontab                  type=file mode=0644 optional
+./etc/csh.cshrc                        type=file mode=0644
+./etc/csh.login                        type=file mode=0644
+./etc/csh.logout               type=file mode=0644
+./etc/daily                    type=file mode=0644
+./etc/daily.conf               type=file mode=0644
+./etc/daily.local              type=file mode=0644 optional
+./etc/defaultdomain            type=file mode=0644 optional
+./etc/defaults                 type=dir  mode=0755
+./etc/defaults/daily.conf      type=file mode=0444
+./etc/defaults/monthly.conf    type=file mode=0444
+./etc/defaults/rc.conf         type=file mode=0444
+./etc/defaults/security.conf   type=file mode=0444
+./etc/defaults/weekly.conf     type=file mode=0444
+./etc/dhclient-enter-hooks     type=file mode=0644 optional
+./etc/dhclient-exit-hooks      type=file mode=0644 optional
+./etc/dhclient.conf            type=file mode=0644 optional
+./etc/dhcpd.conf               type=file mode=0644 optional
+./etc/disktab                  type=file mode=0644
+./etc/dm.conf                  type=file mode=0644
+./etc/dumpdates                        type=file mode=0664 gname=operator optional
+./etc/ethers                   type=file mode=0644 optional
+./etc/exports                  type=file mode=0644 optional
+./etc/floppytab                        type=file mode=0644
+./etc/fstab                    type=file mode=0644
+./etc/ftpchroot                        type=file mode=0644
+./etc/ftpd.conf                        type=file mode=0644 optional
+./etc/ftpusers                 type=file mode=0644
+./etc/ftpwelcome               type=file mode=0644 optional
+./etc/gateways                 type=file mode=0644 optional
+./etc/gettytab                 type=file mode=0644
+./etc/group                    type=file mode=0644



Home | Main Index | Thread Index | Old Index