X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-repos%2Fpackages.git;a=blobdiff_plain;f=demian%2Fsendmail.old%2Fsendmail.old;fp=demian%2Fsendmail.old%2Fsendmail.old;h=c729a31c18760a5149e28c1d058f2b6b71b01ae9;hp=0000000000000000000000000000000000000000;hb=f0cf5d9bdce8c606167c114b5ba06792a200b957;hpb=19e8a11f5a1789f804a1b0cb43b1d0c34bf5916c diff --git a/demian/sendmail.old/sendmail.old b/demian/sendmail.old/sendmail.old new file mode 100755 index 0000000..c729a31 --- /dev/null +++ b/demian/sendmail.old/sendmail.old @@ -0,0 +1,63 @@ +# 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 :) +} +