add Added Files:
[hdw-repos/packages.git] / demian / sendmail.old / sendmail.old
1 # HDW Linux sendmail
2 #
3 # [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org
4 # [I] Most used mail server.
5 # [V] 8.12.7
6 # [R] bdb
7 # [S] 3 5
8 # [D] sendmail.8.12.7.tar.bz2 ftp://ftp.sendmail.org/pub/sendmail/
9
10 # sendmail will be installed with prefix=/usr cause
11 # generic settings for most systems.
12
13
14 srcdir=sendmail-8.12.5
15
16 build_main()
17 {
18     echo "HDW: building main sendmail distribution"
19     cd sendmail ; sh Build ; cd ..
20
21     echo "HDW: building sendmail configuration files"
22     cd cf/cf ; cp generic-linux.mc sendmail.mc 
23     sh Build sendmail.cf ;
24     [ -f /etc/mail/sendmail.cf ] && \
25     mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.old
26     sh Build install-cf
27     
28     rm -Rf `which sendmail` ;
29     
30     echo "creating sendmail group and user"
31     groupadd smmsp && \
32     useradd smmsp -s /bin/false -g smmsp -G smmsp -d none
33
34     echo "installing sendmail distribution"
35     cd ../.. ;
36     cd sendmail ; sh Build install ; cd .. ;
37
38     # disable utilities to be installed here:
39
40     utils="editmap lib* mail.local mailstats \
41             makemap praliases rmail smrsh vacation"
42     
43     echo "installing sendmail utilities"
44     for util in $utils ; 
45     do
46         echo "+building $util" ; cd $util && \
47         sh Build install ; cd ..
48     done
49         
50 #    echo "+editmap" ; cd editmap &&   sh Build install ; cd ..
51 #    echo "+libsmdb" ; cd libsmdb &&   sh Build install ; cd ..
52 #    echo "+mailstats";cd mailstats && sh Build install ; cd ..
53 #    echo "+makemap" ; cd makemap &&   sh Build install ; cd ..
54 #    echo "+rmail"   ; cd rmail &&     sh Build install ; cd .. 
55 #    echo "+smrsh"   ; cd smrsh &&     sh Build install ; cd ..
56 #    echo "+praliases";cd praliases && sh Build install ; cd ..
57     
58     echo -e "\ndone."
59     
60     #exit=0 ;           # will be used in the new abort system.
61                         # useless using trap :)
62 }
63