diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
commit | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch) | |
tree | d8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/cmd/upas/mkfile |
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/cmd/upas/mkfile')
-rwxr-xr-x | sys/src/cmd/upas/mkfile | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/sys/src/cmd/upas/mkfile b/sys/src/cmd/upas/mkfile new file mode 100755 index 000000000..d9bd59252 --- /dev/null +++ b/sys/src/cmd/upas/mkfile @@ -0,0 +1,97 @@ +</$objtype/mkfile + +LIBS=common +PROGS=smtp alias fs ned misc q send scanmail pop3 ml marshal vf filterkit unesc bayes +#libs must be made first +DIRS=$LIBS $PROGS + +UPDATE=\ + mkfile\ + /sys/man/1/mail\ + +all:V: + for (i in $DIRS) @{ + cd $i + mk all + } + +clean:V: + for (i in $DIRS) @{ + cd $i + mk clean + } + +nuke:V: + for (i in $LIBS) @{ + cd $i + mk nuke + } + for (i in $PROGS) @{ + cd $i + mk clean + } + +install:V: + for (i in $DIRS) @{ + cd $i + mk install + } + +installall:V: + for (i in $DIRS) @{ + cd $i + mk installall + } + for (i in $DIRS) @{ + cd $i + mk clean + } + +safeinstallall:V: + for (i in $LIBS) @{ + cd $i + mk installall + } + for (i in $PROGS) @{ + cd $i + mk safeinstallall + } + for (i in $DIRS) @{ + cd $i + mk clean + } + +update:V: + update $UPDATEFLAGS $UPDATE + for (i in $DIRS) @{ + cd $i + echo '>>>>>>>>>>' `{pwd} '<<<<<<<<<<<' + mk $MKFLAGS 'UPDATEFLAGS='$"UPDATEFLAGS update + } + +# +# setup the mail directories. this should be done by the administrator since +# he/she will own everything. the following files must be altered to reflect +# local preference. +# +# /mail/lib/namefiles - remove alias files you don't use, insert ones you do. +# /mail/lib/remotemail - change '-g research.research.bell-labs.com' to your own mail +# gateway. if you have none, remove it. +# - change '-h plan9.bell-labs.com' to a name you would like +# this host to be known as. if you don't care, take it +# out and it will use the name in /env/site. +# /mail/lib/rewrite - change the line that contains 'helix' to include names, +# other than the contents of /env/site, that your system +# answers to. this is a hack and will be fixed. +# +setup:V: + mkdir /mail + chmod 775 /mail + mkdir /mail/lib + chmod 775 /mail/lib + mkdir /mail/queue /mail/box /mail/tmp + chmod 777 /mail/queue /mail/box /mail/tmp + chmod +t /mail/queue /mail/tmp + mkdir /mail/ml + chmod 775 /mail/ml + cp misc/rewrite misc/qmail misc/remotemail misc/namefiles /mail/lib |