mkfile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. </$objtype/mkfile
  2. LIBS=common
  3. PROGS=smtp alias fs ned misc q send scanmail pop3 ml marshal vf filterkit unesc bayes
  4. #libs must be made first
  5. DIRS=$LIBS $PROGS
  6. UPDATE=\
  7. mkfile\
  8. /sys/man/1/mail\
  9. all:V:
  10. for (i in $DIRS) @{
  11. cd $i
  12. mk all
  13. }
  14. clean:V:
  15. for (i in $DIRS) @{
  16. cd $i
  17. mk clean
  18. }
  19. nuke:V:
  20. for (i in $LIBS) @{
  21. cd $i
  22. mk nuke
  23. }
  24. for (i in $PROGS) @{
  25. cd $i
  26. mk clean
  27. }
  28. install:V:
  29. for (i in $DIRS) @{
  30. cd $i
  31. mk install
  32. }
  33. installall:V:
  34. for (i in $DIRS) @{
  35. cd $i
  36. mk installall
  37. }
  38. for (i in $DIRS) @{
  39. cd $i
  40. mk clean
  41. }
  42. safeinstallall:V:
  43. for (i in $LIBS) @{
  44. cd $i
  45. mk installall
  46. }
  47. for (i in $PROGS) @{
  48. cd $i
  49. mk safeinstallall
  50. }
  51. for (i in $DIRS) @{
  52. cd $i
  53. mk clean
  54. }
  55. update:V:
  56. update $UPDATEFLAGS $UPDATE
  57. for (i in $DIRS) @{
  58. cd $i
  59. echo '>>>>>>>>>>' `{pwd} '<<<<<<<<<<<'
  60. mk $MKFLAGS 'UPDATEFLAGS='$"UPDATEFLAGS update
  61. }
  62. #
  63. # setup the mail directories. this should be done by the administrator since
  64. # he/she will own everything. the following files must be altered to reflect
  65. # local preference.
  66. #
  67. # /mail/lib/namefiles - remove alias files you don't use, insert ones you do.
  68. # /mail/lib/remotemail - change '-g research.research.bell-labs.com' to your own mail
  69. # gateway. if you have none, remove it.
  70. # - change '-h plan9.bell-labs.com' to a name you would like
  71. # this host to be known as. if you don't care, take it
  72. # out and it will use the name in /env/site.
  73. # /mail/lib/rewrite - change the line that contains 'helix' to include names,
  74. # other than the contents of /env/site, that your system
  75. # answers to. this is a hack and will be fixed.
  76. #
  77. setup:V:
  78. mkdir /mail
  79. chmod 775 /mail
  80. mkdir /mail/lib
  81. chmod 775 /mail/lib
  82. mkdir /mail/queue
  83. mkdir /mail/box
  84. mkdir /mail/tmp
  85. chmod 777 /mail/queue /mail/box /mail/tmp
  86. mkdir /mail/ml
  87. chmod 775 /mail/ml
  88. cp misc/rewrite misc/qmail misc/remotemail misc/namefiles /mail/lib