patch-makedefs 1002 B

12345678910111213141516171819202122232425262728293031323334
  1. --- postfix-2.8.7.orig/makedefs 2011-11-03 00:46:22.000000000 +0100
  2. +++ postfix-2.8.7/makedefs 2011-12-03 13:36:33.561684585 +0100
  3. @@ -97,8 +97,8 @@ error() {
  4. case $# in
  5. # Officially supported usage.
  6. - 0) SYSTEM=`(uname -s) 2>/dev/null`
  7. - RELEASE=`(uname -r) 2>/dev/null`
  8. + 0) SYSTEM=Linux
  9. + RELEASE=3.1.4
  10. VERSION=`(uname -v) 2>/dev/null`
  11. case "$VERSION" in
  12. dcosx*) SYSTEM=$VERSION;;
  13. @@ -343,20 +343,6 @@ EOF
  14. esac
  15. ;;
  16. Linux.3*) SYSTYPE=LINUX3
  17. - if [ -f /usr/include/db.h ]
  18. - then
  19. - : we are all set
  20. - elif [ -f /usr/include/db/db.h ]
  21. - then
  22. - CCARGS="$CCARGS -I/usr/include/db"
  23. - else
  24. - # On a properly installed system, Postfix builds
  25. - # by including <db.h> and by linking with -ldb
  26. - echo "No <db.h> include file found." 1>&2
  27. - echo "Install the appropriate db*-devel package first." 1>&2
  28. - echo "See the RELEASE_NOTES file for more information." 1>&2
  29. - exit 1
  30. - fi
  31. SYSLIBS="-ldb"
  32. for name in nsl resolv
  33. do