Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

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