diff options
author | Will Andrews <will@FreeBSD.org> | 2004-09-01 22:11:21 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2004-09-01 22:11:21 +0000 |
commit | 1b6c87c5bae910635089f75d955c2711f6633ace (patch) | |
tree | fcbeb2da0d133c8617fa8c0caafb6b84bbf504df /mail/postgrey/pkg-req | |
parent | 1d31bc5cbf97fe44c939702e4261afcd8e005c2b (diff) |
Notes
Diffstat (limited to 'mail/postgrey/pkg-req')
-rw-r--r-- | mail/postgrey/pkg-req | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/postgrey/pkg-req b/mail/postgrey/pkg-req new file mode 100644 index 000000000000..085629b82510 --- /dev/null +++ b/mail/postgrey/pkg-req @@ -0,0 +1,15 @@ +#!/bin/sh + +PATH=$PATH:/usr/local/bin + +if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then + perl -e "use BerkeleyDB;BerkeleyDB::Env->new(-Home => 'test',-Flags => DB_CREATE|DB_RECOVER|DB_INIT_TXN|DB_INIT_MPOOL|DB_INIT_LOG,-SetFlags => DB_AUTO_COMMIT|DB_TXN_NOSYNC);" + if [ $? != 0 ]; then + echo "-----------------------------------------------------------" + echo "Postgrey requires databases/p5-BerkeleyDB to be built with" + echo "Berkeley DB 4.1 or newer. Please reinstall it with the" + echo "WITH_BDB_VER set to 41 or newer." + echo "-----------------------------------------------------------" + exit 1 + fi +fi |