# hdw - linux sendmail package # # author: hackbard@hackdaworld.dyndns.org # # [V] 8.13.4 # [S] 3-2 # [D] sendmail.8.13.4.tar.gz ftp://ftp.sendmail.org/pub/sendmail/ pre_install() { # some sendmail config files rm -rf $root/etc/mail ; mkdir -p $root/etc/mail cp $confdir/{Makefile,aliases,local-host-names} $root/etc/mail ln -sf mail/sendmail.cf $root/etc/sendmail.cf cp -r cf/* $root/etc/mail cp cf/cf/generic-linux.mc $root/etc/mail/sendmail.mc } build_main() { cp $confdir/site.config.m4 ./devtools/Site/ ./Build && ./Build install } post_install() { # documentation cd ./doc/op sed 's/groff/GROFF_NO_SGR=1 groff/' Makefile > tmp~ mv tmp~ Makefile make op.txt mkdir -p $docdir install -m 644 op.ps op.txt $docdir # create configs cd $root/etc/mail chown -R .mail . touch {virtusertable,access,mailertable} make cd - }