Index: makedefs --- makedefs.orig 2006-07-03 20:30:00 +0000 +++ makedefs 2006-08-03 08:03:57 +0000 @@ -117,6 +117,26 @@ FreeBSD.5*) SYSTYPE=FREEBSD5 ;; FreeBSD.6*) SYSTYPE=FREEBSD6 + case "`uname -v`" in + Gentoo*) SYSTYPE=LINUX2 + if [ -f /usr/include/db.h ] + then + : we are all set + elif [ -f /usr/include/db4/db.h ] + then + CCARGS="$CCARGS -I/usr/include/db4" + else + # No, we're not going to try db1 db2 db3 etc. + # On a properly installed system, Postfix builds + # by including and by linking with -ldb + echo "No include file found." 1>&2 + echo "Install the appropriate db*-devel package first." 1>&2 + echo "See the RELEASE_NOTES file for more information." 1>&2 + exit 1 + fi + SYSLIBS="-ldb" + ;; + esac ;; OpenBSD.2*) SYSTYPE=OPENBSD2 ;;