a5b9cc9fd4983851ddd72e7485679acc3507d5d5
[hdw-linux/hdw-linux.git] / packages / hackbard / sendmail / sendmail
1 # hdw - linux sendmail package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 8.13.0
6 # [S] 3-2
7 # [D] sendmail.8.13.0.tar.gz ftp://ftp.sendmail.org/pub/sendmail/
8
9 pre_install()   {
10         # some sendmail config files
11         rm -rf $root/etc/mail ; mkdir -p $root/etc/mail
12         cp $confdir/{Makefile,aliases,local-host-names} $root/etc/mail
13         ln -sf mail/sendmail.cf $root/etc/sendmail.cf
14         cp -r cf/* $root/etc/mail
15         cp cf/cf/generic-linux.mc $root/etc/mail/sendmail.mc
16                 }
17         
18 build_main()    {
19         cp $confdir/site.config.m4 ./devtools/Site/
20         ./Build  && ./Build install
21                 }
22
23 post_install() {
24         # documentation
25         cd ./doc/op
26         sed 's/groff/GROFF_NO_SGR=1 groff/' Makefile > tmp~
27         mv tmp~ Makefile
28         make op.txt
29         mkdir -p $docdir
30         install -m 644 op.ps op.txt $docdir
31         # create configs
32         cd $root/etc/mail
33         chown -R .mail .
34         touch {virtusertable,access,mailertable}
35         make
36         cd -
37                 }