--- Portfile.org	2014-06-24 06:18:03.000000000 +0200
+++ Portfile	2014-06-24 09:54:12.000000000 +0200
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                bacula
-version             5.2.13
+version             7.0.4
 categories          sysutils
 platforms           darwin
 license             {AGPL-3 OpenSSLException}
@@ -18,8 +18,8 @@
 homepage            http://www.bacula.org/
 master_sites        sourceforge
 
-checksums           rmd160  bcc168143c0eec5cb5e983f765935534379f4fcf \
-                    sha256  a4bed458bf001889bd06bf31671b5d9908055a1d1e8113fd750ae4d326607ad8
+checksums           rmd160  09d033f4ea3431f57d8018647af41c1ae417652d \
+                    sha256  ebf802b843a95f6526e82dd181dff7cd7dc7d1fdc55cec8636e0fe3af69acf7e
 
 depends_build       port:pkgconfig
 depends_lib         port:gawk \
@@ -40,12 +40,12 @@
                     --with-libintl-prefix=${prefix} \
                     --with-openssl=${prefix} \
                     --with-libiconv-prefix=${prefix} \
-                    --with-readline=${prefix} \
                     --with-archivedir=/var/tmp \
                     --with-working-dir=${prefix}/var/bacula/working \
                     --with-included-gettext=${prefix} \
                     --enable-smartalloc \
                     --enable-largefile \
+                    --enable-conio \
                     --without-sqlite \
                     --without-sqlite3 \
                     --without-postgresql \
@@ -99,6 +99,7 @@
     depends_lib-append    port:mysql55
     configure.args-append --with-mysql=${prefix}/include/mysql55/mysql
     configure.args-delete --without-mysql
+    configure.args-append --enable-batch-insert
     configure.cppflags-append   -I${prefix}/include/mysql55/mysql
 
     patchfiles          patch-configure-mysql.diff
@@ -111,6 +112,7 @@
     depends_lib-append    port:postgresql83
     configure.args-append --with-postgresql
     configure.args-delete --without-postgresql
+    configure.args-append --enable-batch-insert
     configure.env-append  PATH=${prefix}/lib/postgresql83/bin:$env(PATH)
 }
 
@@ -118,6 +120,7 @@
     depends_lib-append    port:postgresql84
     configure.args-append --with-postgresql
     configure.args-delete --without-postgresql
+    configure.args-append --enable-batch-insert
     configure.env-append  PATH=${prefix}/lib/postgresql84/bin:$env(PATH)
 }
 
