+# HDW Linux sendmail
+#
+# [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org
+# [I] Most used mail server.
+# [V] 8.12.7
+# [R] bdb
+# [S] 3 5
+# [D] sendmail.8.12.7.tar.bz2 ftp://ftp.sendmail.org/pub/sendmail/
+
+# sendmail will be installed with prefix=/usr cause
+# generic settings for most systems.
+
+
+srcdir=sendmail-8.12.5
+
+build_main()
+{
+ echo "HDW: building main sendmail distribution"
+ cd sendmail ; sh Build ; cd ..
+
+ echo "HDW: building sendmail configuration files"
+ cd cf/cf ; cp generic-linux.mc sendmail.mc
+ sh Build sendmail.cf ;
+ [ -f /etc/mail/sendmail.cf ] && \
+ mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.old
+ sh Build install-cf
+
+ rm -Rf `which sendmail` ;
+
+ echo "creating sendmail group and user"
+ groupadd smmsp && \
+ useradd smmsp -s /bin/false -g smmsp -G smmsp -d none
+
+ echo "installing sendmail distribution"
+ cd ../.. ;
+ cd sendmail ; sh Build install ; cd .. ;
+
+ # disable utilities to be installed here:
+
+ utils="editmap lib* mail.local mailstats \
+ makemap praliases rmail smrsh vacation"
+
+ echo "installing sendmail utilities"
+ for util in $utils ;
+ do
+ echo "+building $util" ; cd $util && \
+ sh Build install ; cd ..
+ done
+
+# echo "+editmap" ; cd editmap && sh Build install ; cd ..
+# echo "+libsmdb" ; cd libsmdb && sh Build install ; cd ..
+# echo "+mailstats";cd mailstats && sh Build install ; cd ..
+# echo "+makemap" ; cd makemap && sh Build install ; cd ..
+# echo "+rmail" ; cd rmail && sh Build install ; cd ..
+# echo "+smrsh" ; cd smrsh && sh Build install ; cd ..
+# echo "+praliases";cd praliases && sh Build install ; cd ..
+
+ echo -e "\ndone."
+
+ #exit=0 ; # will be used in the new abort system.
+ # useless using trap :)
+}
+