Browse Source

Plan 9 from Bell Labs 2007-10-06

David du Colombier 11 years ago
parent
commit
4db2188a5b
7 changed files with 81 additions and 17 deletions
  1. 6 6
      cron/sys/cron
  2. 4 1
      cron/upas/cron
  3. 6 5
      dist/replica/_plan9.db
  4. 6 5
      dist/replica/plan9.db
  5. 6 0
      dist/replica/plan9.log
  6. 26 0
      mail/lib/mailnews
  7. 27 0
      sys/man/8/ndb

+ 6 - 6
cron/sys/cron

@@ -1,11 +1,5 @@
 # sys crontab
 
-# grab new rfcs and drafts
-#30 9 * * *	local	/lib/rfc/grabrfc
-
-# save archive vacs after nightly dump; leave plenty of time for it to finish
-#30 6 * * *	fs	cd /sys/log && grep 'archive vac:[0-9a-f]+$' fs >>fs.archive
-
 # keep backup of key info
 #45 * * * *	p9auth	cd /adm && mk -f /cfg/p9auth/mkfile.adm
 
@@ -14,3 +8,9 @@
 
 # look at the wiki changes
 #30 5 * * *	local	cd /sys/lib/dist && yesterday.wiki >yesterday.out >[2=1]
+
+# save archive vacs after nightly dump; leave plenty of time for it to finish
+#30 6 * * *	fs	cd /sys/log && grep 'archive vac:[0-9a-f]+$' fs >>fs.archive
+
+# grab new rfcs and drafts
+#30 9 * * *	local	/lib/rfc/grabrfc

+ 4 - 1
cron/upas/cron

@@ -1,5 +1,8 @@
 # kick mail retries (replace mailserver with your system)
-0,10,20,30,40,50 * * * *	mailserver		/bin/upas/runq -a /mail/queue /mail/lib/remotemail
+0,10,20,30,40,50 * * * *	mailserver	/bin/upas/runq -a /mail/queue /mail/lib/remotemail
+
+# broadcast news
+11,26,43,56 * * * *	local	/mail/lib/mailnews
 
 # clean up after grey list
 47 4 * * *	mailserver	rm -rf /mail/grey/tmp/*/*

+ 6 - 5
dist/replica/_plan9.db

@@ -121,13 +121,13 @@
 386/bin/aux/mswordstrings - 775 sys sys 1168402283 65541
 386/bin/aux/na - 775 sys sys 1189023884 154372
 386/bin/aux/nfsmount - 775 sys sys 1184731233 233217
-386/bin/aux/nfsserver - 775 sys sys 1182223285 184719
+386/bin/aux/nfsserver - 775 sys sys 1191555133 185867
 386/bin/aux/olefs - 775 sys sys 1179372075 148111
 386/bin/aux/p9bitpost - 775 sys sys 1104121982 127974
 386/bin/aux/pcmcia - 775 sys sys 1148500601 46940
-386/bin/aux/pcnfsd - 775 sys sys 1181507263 128327
+386/bin/aux/pcnfsd - 775 sys sys 1191555138 129331
 386/bin/aux/portmap - 775 sys sys 1184731233 142735
-386/bin/aux/portmapper - 775 sys sys 1181507264 127406
+386/bin/aux/portmapper - 775 sys sys 1191555142 128410
 386/bin/aux/postgif - 775 sys sys 1087442507 175380
 386/bin/aux/postprint - 775 sys sys 1087442507 160041
 386/bin/aux/postreverse - 775 sys sys 1087442508 164726
@@ -885,7 +885,7 @@ cfg/example/cpurc - 775 sys sys 1187226177 266
 cfg/example/termrc - 775 sys sys 1177628544 195
 cron - 20000000777 sys sys 1039727915 0
 cron/upas - 20000000775 upas sys 1039727915 0
-cron/upas/cron - 664 upas sys 1144683680 222
+cron/upas/cron - 664 upas sys 1191622540 284
 dist - 20000000775 sys sys 1127243723 0
 dist/replica - 20000000775 sys sys 1166743907 0
 dist/replica/cd - 664 sys sys 1149084099 922
@@ -5303,6 +5303,7 @@ mail/lib/isspam.rc - 775 upas upas 1063950954 600
 mail/lib/justqmail - 775 upas upas 960055415 100
 mail/lib/kickqueue - 775 upas upas 960106166 89
 mail/lib/lazyqmail - 775 upas upas 999900927 116
+mail/lib/mailnews - 775 upas upas 1191622324 440
 mail/lib/msgcat.rc - 775 upas upas 1064322955 678
 mail/lib/namefiles - 664 upas upas 960222586 63
 mail/lib/names.local - 664 upas upas 960222620 92
@@ -7833,7 +7834,7 @@ sys/man/8/mkpaqfs - 664 sys sys 1181261121 890
 sys/man/8/mksacfs - 664 sys sys 964886843 710
 sys/man/8/mouse - 664 sys sys 971455511 2476
 sys/man/8/na - 664 sys sys 958527089 859
-sys/man/8/ndb - 664 sys sys 1188515390 14031
+sys/man/8/ndb - 664 sys sys 1191613971 14611
 sys/man/8/newuser - 664 sys sys 1116954242 2418
 sys/man/8/nfsserver - 664 sys sys 1191524525 3576
 sys/man/8/pcmcia - 664 sys sys 944959679 408

+ 6 - 5
dist/replica/plan9.db

@@ -121,13 +121,13 @@
 386/bin/aux/mswordstrings - 775 sys sys 1168402283 65541
 386/bin/aux/na - 775 sys sys 1189023884 154372
 386/bin/aux/nfsmount - 775 sys sys 1184731233 233217
-386/bin/aux/nfsserver - 775 sys sys 1182223285 184719
+386/bin/aux/nfsserver - 775 sys sys 1191555133 185867
 386/bin/aux/olefs - 775 sys sys 1179372075 148111
 386/bin/aux/p9bitpost - 775 sys sys 1104121982 127974
 386/bin/aux/pcmcia - 775 sys sys 1148500601 46940
-386/bin/aux/pcnfsd - 775 sys sys 1181507263 128327
+386/bin/aux/pcnfsd - 775 sys sys 1191555138 129331
 386/bin/aux/portmap - 775 sys sys 1184731233 142735
-386/bin/aux/portmapper - 775 sys sys 1181507264 127406
+386/bin/aux/portmapper - 775 sys sys 1191555142 128410
 386/bin/aux/postgif - 775 sys sys 1087442507 175380
 386/bin/aux/postprint - 775 sys sys 1087442507 160041
 386/bin/aux/postreverse - 775 sys sys 1087442508 164726
@@ -885,7 +885,7 @@ cfg/example/cpurc - 775 sys sys 1187226177 266
 cfg/example/termrc - 775 sys sys 1177628544 195
 cron - 20000000777 sys sys 1039727915 0
 cron/upas - 20000000775 upas sys 1039727915 0
-cron/upas/cron - 664 upas sys 1144683680 222
+cron/upas/cron - 664 upas sys 1191622540 284
 dist - 20000000775 sys sys 1127243723 0
 dist/replica - 20000000775 sys sys 1166743907 0
 dist/replica/cd - 664 sys sys 1149084099 922
@@ -5303,6 +5303,7 @@ mail/lib/isspam.rc - 775 upas upas 1063950954 600
 mail/lib/justqmail - 775 upas upas 960055415 100
 mail/lib/kickqueue - 775 upas upas 960106166 89
 mail/lib/lazyqmail - 775 upas upas 999900927 116
+mail/lib/mailnews - 775 upas upas 1191622324 440
 mail/lib/msgcat.rc - 775 upas upas 1064322955 678
 mail/lib/namefiles - 664 upas upas 960222586 63
 mail/lib/names.local - 664 upas upas 960222620 92
@@ -7833,7 +7834,7 @@ sys/man/8/mkpaqfs - 664 sys sys 1181261121 890
 sys/man/8/mksacfs - 664 sys sys 964886843 710
 sys/man/8/mouse - 664 sys sys 971455511 2476
 sys/man/8/na - 664 sys sys 958527089 859
-sys/man/8/ndb - 664 sys sys 1188515390 14031
+sys/man/8/ndb - 664 sys sys 1191613971 14611
 sys/man/8/newuser - 664 sys sys 1116954242 2418
 sys/man/8/nfsserver - 664 sys sys 1191524525 3576
 sys/man/8/pcmcia - 664 sys sys 944959679 408

+ 6 - 0
dist/replica/plan9.log

@@ -53025,3 +53025,9 @@
 1191524403 7 c sys/src/cmd/9nfs/server.c - 664 sys sys 1191523839 11320
 1191529803 0 c 386/bin/file - 775 sys sys 1191528973 128646
 1191538805 0 c sys/src/9/pc/ahci.h - 664 sys sys 1191538081 6316
+1191556805 0 c 386/bin/aux/nfsserver - 775 sys sys 1191555133 185867
+1191556805 1 c 386/bin/aux/pcnfsd - 775 sys sys 1191555138 129331
+1191556805 2 c 386/bin/aux/portmapper - 775 sys sys 1191555142 128410
+1191614404 0 c sys/man/8/ndb - 664 sys sys 1191613971 14611
+1191623405 0 a mail/lib/mailnews - 775 upas upas 1191622324 440
+1191623405 1 c cron/upas/cron - 664 upas sys 1191622540 284

+ 26 - 0
mail/lib/mailnews

@@ -0,0 +1,26 @@
+#!/bin/rc
+
+home=/mail
+files=`{news -n}
+>$home/lib/newstime
+switch($#files){
+case 0
+case *
+	subscribers=`{cat /sys/lib/subscribers}
+	for(i in $subscribers)
+		touch /usr/$i/lib/newstime
+	for(file in $files){
+		switch($file){
+		case news:
+			;
+		case *
+			upasname=`{ls -m /lib/news/$file|sed 's/\[(.*)\]'.*/\1/}
+			{
+				echo 'subject: plan9 news: '^$file
+				echo 'to: news-readers'
+				echo
+				news $file
+			} | mail $subscribers
+		}
+	}
+}

+ 27 - 0
sys/man/8/ndb

@@ -468,6 +468,33 @@ will automatically create both forward and reverse entries for
 .B ns1.cs.bell-labs.com .
 Unlike other DNS servers, there's no way to generate
 inconsistent forward and reverse entries.
+.SS "Classless reverse delegation"
+Following RFC 2317, it is possible to serve reverse DNS data
+for IPv4 subnets smaller than /24.
+Declare the non-/24 subnet, the reverse domain and the individual
+reverse entries.
+.PP
+For example,
+this is how to serve RFC-2317
+.B ptr
+records for
+.L 65.14.39.130
+and
+.L 65.14.39.131
+in the subnet
+.LR 65.14.39.128/123 .
+.IP
+.EX
+ipnet=our-t1 ip=65.14.39.128 ipmask=/123
+
+dom=128.39.14.65.in-addr.arpa soa=
+	refresh=3600 ttl=3600
+	ns=ns1.our-domain.com
+	ns=ns2.our-domain.com
+
+dom=130.128.39.14.65.in-addr.arpa
+dom=131.128.39.14.65.in-addr.arpa
+.EE
 .
 .SS "Delegating Name Service Authority"
 Delegation of a further subtree to another set of name servers