talimat 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Description: The sendmail package contains a Mail Transport Agent (MTA).
  2. # URL: ftp://ftp.sendmail.org/pub/sendmail/
  3. # Packager: berlius at nutyx dot com
  4. # Depends on: ghostscript cyrus-sasl openssl procmail openldap
  5. name=sendmail
  6. version=8.15.2
  7. release=1
  8. source=(ftp://ftp.sendmail.org/pub/$name/$name.$version.tar.gz site.config.m4)
  9. build() {
  10. cd $name-$version
  11. source /etc/blfs-bootscripts
  12. wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
  13. tar xvf $scripts-$scriptsversion.tar.bz2
  14. cp -v $SRC/site.config.m4 devtools/Site
  15. sed -i 's|/usr/man/man|/usr/share/man/man|' \
  16. devtools/OS/Linux
  17. cd sendmail
  18. sh Build
  19. cd ../cf/cf
  20. cp generic-linux.mc sendmail.mc
  21. sh Build sendmail.cf
  22. install -v -d -m755 $PKG/etc/mail
  23. install -c -o root -g bin -m 0444 sendmail.cf $PKG/etc/mail/sendmail.cf
  24. install -c -o root -g bin -m 0444 submit.cf $PKG/etc/mail/submit.cf
  25. cd ../..
  26. sh Build install
  27. install -v -m644 cf/cf/{submit,sendmail}.mc $PKG/etc/mail
  28. cp -v -R cf/* $PKG/etc/mail
  29. install -v -m755 -d $PKG/usr/share/doc/sendmail-8.15.2/{cf,sendmail}
  30. install -v -m644 CACerts FAQ KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES \
  31. $PKG/usr/share/doc/sendmail-8.15.2
  32. install -v -m644 sendmail/{README,SECURITY,TRACEFLAGS,TUNING} \
  33. $PKG/usr/share/doc/sendmail-8.15.2/sendmail
  34. install -v -m644 cf/README $PKG/usr/share/doc/sendmail-8.15.2/cf
  35. install -v -d -m755 $PKG/usr/share/man/man8
  36. for manpage in sendmail editmap mailstats makemap praliases smrsh
  37. do
  38. install -v -m644 $manpage/$manpage.8 $PKG/usr/share/man/man8
  39. done &&
  40. install -v -m644 sendmail/aliases.5 $PKG/usr/share/man/man5
  41. install -v -m644 sendmail/mailq.1 $PKG/usr/share/man/man1
  42. install -v -m644 sendmail/newaliases.1 $PKG/usr/share/man/man1
  43. install -v -m644 vacation/vacation.1 $PKG/usr/share/man/man1
  44. cd doc/op
  45. sed -i 's/groff/GROFF_NO_SGR=1 groff/' Makefile
  46. make op.txt op.pdf
  47. install -v -d -m755 $PKG/usr/share/doc/sendmail-8.15.2
  48. install -v -m644 op.ps op.txt op.pdf $PKG/usr/share/doc/sendmail-8.15.2
  49. cd ../..
  50. cd $scripts-$scriptsversion
  51. make DESTDIR=$PKG install-sendmail
  52. }