Index: server/databases/db.xml
===================================================================
--- server/databases/db.xml	(revision 734cd42f1d00d34dadb1560620da71a6dd271d61)
+++ server/databases/db.xml	(revision ad6910d3af9ffc075948cd55d9b262ca47508790)
@@ -8,7 +8,7 @@
     "http://download.oracle.com/berkeley-db/db-&db-version;.tar.gz">
   <!ENTITY db-download-ftp  " ">
-  <!ENTITY db-md5sum        "bfea581b42dc0fc247041e7d48cfd7fb">
+  <!ENTITY db-md5sum        "9525aa57a282d49e5d1bf5e48ffa8a56">
   <!ENTITY db-size          "36 MB">
-  <!ENTITY db-buildsize     "300 MB with Java and Tcl supports">
+  <!ENTITY db-buildsize     "296 MB">
   <!ENTITY db-time          "0.8 SBU">
 ]>
@@ -36,5 +36,5 @@
     </para>
 
-    &lfs76_checked;
+    &lfs77_checked;
 
     <bridgehead renderas="sect3">Package Information</bridgehead>
@@ -77,5 +77,5 @@
     <para role="optional">
       <xref linkend="tcl"/>,
-      <xref linkend="openjdk"/><!-- or <xref linkend="jdk"/> -->, and
+      <xref linkend="openjdk"/> or <xref linkend="java"/>, and
       <xref linkend="sharutils"/> (for the <command>uudecode</command> command)
     </para>
@@ -193,4 +193,5 @@
 
 <screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
+
 chown -v -R root:root                        \
       /usr/bin/db_*                          \
@@ -245,6 +246,6 @@
 
     <para>
-      <option>--enable-java</option>: Enables
-      <application>Java</application> support in DB and creates the
+      <option>--enable-java</option>: Enables <application>Java</application>
+      support in DB and creates the
       <filename class="libraryfile">libdb_java</filename> libraries.
     </para>
@@ -274,5 +275,5 @@
           db_tuner,
           db_upgrade, and
-          db_verify.
+          db_verify
         </seg>
         <seg>
Index: server/databases/mariadb-systemd.xml
===================================================================
--- server/databases/mariadb-systemd.xml	(revision 734cd42f1d00d34dadb1560620da71a6dd271d61)
+++ server/databases/mariadb-systemd.xml	(revision ad6910d3af9ffc075948cd55d9b262ca47508790)
@@ -7,8 +7,8 @@
   <!ENTITY mariadb-download-http "https://downloads.mariadb.org/interstitial/mariadb-&mariadb-version;/source/mariadb-&mariadb-version;.tar.gz">
   <!ENTITY mariadb-download-ftp  "ftp://mirrors.fe.up.pt/pub/mariadb/mariadb-&mariadb-version;/source/mariadb-&mariadb-version;.tar.gz">
-  <!ENTITY mariadb-md5sum        "07e2ca1ad684c2dc5cb260717c4db41d">
-  <!ENTITY mariadb-size          "53 MB">
-  <!ENTITY mariadb-buildsize     "1.0 GB">
-  <!ENTITY mariadb-time          "15.4 SBU (additional 0.4 SBU for the tests)">
+  <!ENTITY mariadb-md5sum        "59d6c00827ad56f2ac76340fece32fc0">
+  <!ENTITY mariadb-size          "54 MB">
+  <!ENTITY mariadb-buildsize     "1.4 GB">
+  <!ENTITY mariadb-time          "10.5 SBU">
 ]>
 
@@ -36,5 +36,5 @@
     </para>
 
-    &lfs76_checked;
+    &lfs77_checked;
 
     <bridgehead renderas="sect3">Package Information</bridgehead>
@@ -72,6 +72,6 @@
     </itemizedlist>
 
-    <note><para>The installed size of MariaDB is 297 MB, but this can be
-    reduced by about 160 MB, if desired, by removing the /usr/share/mysql/test
+    <note><para>The installed size of MariaDB is 388 MB, but this can be
+    reduced by about 168 MB, if desired, by removing the /usr/share/mysql/test
     directory after installation.</para></note>
 
@@ -95,10 +95,18 @@
       <xref linkend="linux-pam"/>,
       <xref linkend="pcre"/>,
+      <xref linkend="ruby"/>,
       <xref linkend="unixodbc"/>,
       <xref linkend="valgrind"/>,
+      <ulink url="http://groonga.org/">Groonga</ulink>,
+      <ulink url="http://www.phontron.com/kytea/">KyTea</ulink>,
+      <ulink url="http://sourceforge.net/projects/judy/">Judy</ulink>,
       <ulink url="http://packages.debian.org/source/sid/libaio">libaio</ulink>,
-      <ulink url="http://sourceforge.net/projects/judy/">Judy</ulink>,
-      <ulink url="http://sphinxsearch.com/downloads/">Sphinx</ulink>, and
-      <ulink url="http://www.tokutek.com/products/mysql-download-for-mysql-mariadb/">TokuDB</ulink>
+      <ulink url="https://github.com/Cyan4973/lz4">lz4</ulink>,
+      <ulink url="https://code.google.com/p/mecab/downloads/list">MeCab</ulink>,
+      <ulink url="https://github.com/msgpack/">MessagePack</ulink>,
+      <ulink url="http://www.mruby.org/">mruby</ulink>,
+      <ulink url="http://sphinxsearch.com/downloads/">Sphinx</ulink>,
+      <ulink url="http://www.tokutek.com/products/mysql-download-for-mysql-mariadb/">TokuDB</ulink>, and
+      <ulink url="http://zeromq.org/">ZeroMQ</ulink>
     </para>
 
@@ -135,7 +143,8 @@
 
 <screen><userinput>sed -i "s@data/test@\${INSTALL_MYSQLTESTDIR}@g" sql/CMakeLists.txt &amp;&amp;
-sed -i "s/srv_buf_size/srv_sort_buf_size/" storage/innobase/row/row0log.cc &amp;&amp;
+
 mkdir build &amp;&amp;
-cd build &amp;&amp;
+cd build    &amp;&amp;
+
 cmake -DCMAKE_BUILD_TYPE=Release                       \
       -DCMAKE_INSTALL_PREFIX=/usr                      \
@@ -174,6 +183,6 @@
 
     <para>
-      <command>sed -i ...</command>: First sed sets correct installation
-      directory for some components. Second sed fixes a bug in the code.
+      <command>sed -i ...</command>: This command sets correct installation
+      directory for some components.
     </para>
 
@@ -336,9 +345,8 @@
         A default installation does not set up a password for the
         administrator, so use the following command as the <systemitem
-        class="username">root</systemitem> user to set one. Replace
-        <replaceable>&lt;new-password&gt;</replaceable> with your own.
-      </para>
-
-<screen role="root"><userinput>mysqladmin -u root password <replaceable>&lt;new-password&gt;</replaceable></userinput></screen>
+        class="username">root</systemitem> user to set one.
+      </para>
+
+<screen role="root"><userinput>mysqladmin -u root password</userinput></screen>
 
       <para>
@@ -393,11 +401,9 @@
           mysqldumpslow, mysqlhotcopy, mysqlimport, mysqlshow, mysqlslap,
           mysqltest, mysqltest_embedded, mytop, perror, replace,
-          resolve_stack_dump, and resolveip
+          resolve_stack_dump and resolveip
         </seg>
         <seg>
-          libmysqlclient.{so,a},
-          libmysqlclient_r.{so,a} (symbolic links to libmysqlclient.{so,a}),
-          libmysqld.{so,a}, libmysqlservices.a,
-          and several under /usr/lib/mysql/plugin/
+          libmysqlclient.{so,a}, libmysqlclient_r.{so,a},
+          libmysqld.{so,a} and libmysqlservices.a
         </seg>
         <seg>
@@ -406,5 +412,5 @@
           /usr/include/mysql,
           /usr/lib/mysql,
-          /usr/share/doc/mysql, and
+          /usr/share/doc/mariadb-&mariadb-version; and
           /usr/share/mysql
         </seg>
Index: server/databases/postgresql-systemd.xml
===================================================================
--- server/databases/postgresql-systemd.xml	(revision 734cd42f1d00d34dadb1560620da71a6dd271d61)
+++ server/databases/postgresql-systemd.xml	(revision ad6910d3af9ffc075948cd55d9b262ca47508790)
@@ -7,8 +7,8 @@
   <!ENTITY postgresql-download-http "http://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
   <!ENTITY postgresql-download-ftp  "ftp://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
-  <!ENTITY postgresql-md5sum        "8cd6e33e1f8d4d2362c8c08bd0e8802b">
-  <!ENTITY postgresql-size          "16 MB">
-  <!ENTITY postgresql-buildsize     "210.5 MB">
-  <!ENTITY postgresql-time          "1.9 SBU">
+  <!ENTITY postgresql-md5sum        "1fe952c44ed26d7e6a335cf991a9c1c6">
+  <!ENTITY postgresql-size          "17 MB">
+  <!ENTITY postgresql-buildsize     "194 MB">
+  <!ENTITY postgresql-time          "1.3 SBU">
 ]>
 
@@ -34,5 +34,5 @@
     from the Berkeley Postgres database management system.</para>
 
-    &lfs76_checked;
+    &lfs77_checked;
 
     <bridgehead renderas="sect3">Package Information</bridgehead>
@@ -153,6 +153,6 @@
     database server with the following command:</para>
 
-<screen role="root"><userinput>su - postgres -c '/usr/bin/postmaster -D /srv/pgsql/data > \
-    /srv/pgsql/data/logfile 2&gt;&amp;1 &amp;'</userinput></screen>
+<screen role="root"><userinput>su - postgres -c '/usr/bin/postgres -D /srv/pgsql/data > \
+                  /srv/pgsql/data/logfile 2&gt;&amp;1 &amp;'</userinput></screen>
 
     <para>Still as user <systemitem class="username">root</systemitem>, create
@@ -275,18 +275,25 @@
 
       <seglistitem>
-        <seg>clusterdb, createdb, createlang, createuser, dropdb, droplang,
-        dropuser, ecpg, initdb, pg_basebackup, pg_config, pg_controldata,
-        pg_ctl, pg_dump, pg_dumpall, pg_isready, pg_receivexlog, pg_resetxlog,
-        pg_restore, pltcl_delmod, pltcl_listmod, pltcl_loadmod, postgres,
-        postmaster, psql, reindexdb, vacuumdb, and optionally (in contrib/)
-        oid2name, pg_archivecleanup, pgbench, pg_standby, pg_test_fsync,
-        pg_test_timing, pg_upgrade, pg_xlogdump, vacuumlo,
-        and many others</seg>
-        <seg>libecpg.{so,a}, libecpg_compat.{so,a}, libpgcommon.a, libpgport.a,
-        libpgtypes.{so,a}, libpq.{so,a}, various charset modules, and
-        optionally programming language modules under /usr/lib/postgresql</seg>
-        <seg>/srv/pgsql, /usr/include/libpq, /usr/include/postgresql,
-        /usr/lib/postgresql, /usr/share/doc/postgresql-&postgresql-version;, and
-        /usr/share/postgresql</seg>
+        <seg>
+          clusterdb, createdb, createlang, createuser, dropdb, droplang,
+          dropuser, ecpg, initdb, pg_basebackup, pg_config, pg_controldata,
+          pg_ctl, pg_dump, pg_dumpall, pg_isready, pg_receivexlog,
+          pg_recvlogical, pg_resetxlog, pg_restore, pltcl_delmod,
+          pltcl_listmod, pltcl_loadmod, postgres, postmaster (deprecated),
+          psql, reindexdb, vacuumdb, and optionally (in contrib/) oid2name,
+          pg_archivecleanup, pgbench, pg_standby, pg_test_fsync,
+          pg_test_timing, pg_upgrade, pg_xlogdump, vacuumlo, and many others
+        </seg>
+        <seg>
+          libecpg.{so,a}, libecpg_compat.{so,a}, libpgcommon.a, libpgport.a,
+          libpgtypes.{so,a}, and libpq.{so,a}
+        </seg>
+        <seg>
+          /usr/include/{libpq,postgresql},
+          /usr/lib/postgresql,
+          /usr/share/doc/postgresql-&postgresql-version;,
+          /usr/share/postgresql, and
+          /srv/pgsql
+        </seg>
       </seglistitem>
     </segmentedlist>
@@ -486,4 +493,14 @@
           <indexterm zone="postgresql pg_isready">
             <primary sortas="b-pg_isready">pg_isready</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="pg_recvlogical">
+        <term><command>pg_recvlogical</command></term>
+        <listitem>
+          <para>controls PostgreSQL logical decoding streams.</para>
+          <indexterm zone="postgresql pg_recvlogical">
+            <primary sortas="b-pg_recvlogical">pg_recvlogical</primary>
           </indexterm>
         </listitem>
@@ -619,6 +636,5 @@
         <term><command>postgres</command></term>
         <listitem>
-          <para>is a single user database server, generally used for
-          debugging.</para>
+          <para>is the PostgreSQL database server.</para>
           <indexterm zone="postgresql postgres">
             <primary sortas="b-postgres">postgres</primary>
@@ -630,6 +646,6 @@
         <term><command>postmaster</command></term>
         <listitem>
-          <para>(a symlink to <command>postgres</command>) is a multi-user
-          database daemon.</para>
+          <para>(deprecated, a symlink to <command>postgres</command>) is a
+          multi-user database daemon.</para>
           <indexterm zone="postgresql postmaster">
             <primary sortas="b-postmaster">postmaster</primary>
Index: server/databases/sqlite.xml
===================================================================
--- server/databases/sqlite.xml	(revision 734cd42f1d00d34dadb1560620da71a6dd271d61)
+++ server/databases/sqlite.xml	(revision ad6910d3af9ffc075948cd55d9b262ca47508790)
@@ -5,19 +5,17 @@
   %general-entities;
 
-  <!ENTITY sqlite-dl-version    "3080704">
-  <!ENTITY sqlite-doc-version   "3080704">
-
-  <!ENTITY sqlite-download-http
-           "http://sqlite.org/2014/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
+  <!ENTITY sqlite-dl-version    "3081002">
+  <!ENTITY sqlite-doc-version   "3081002">
+
+  <!ENTITY sqlite-download-http "https://www.sqlite.org/2015/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
   <!ENTITY sqlite-download-ftp  " ">
-  <!ENTITY sqlite-md5sum        "33bb8db0038317ce1b0480ca1185c7ba">
-  <!ENTITY sqlite-size          "1.9 MB">
-  <!ENTITY sqlite-buildsize     "26.1 MB (including the Optional Documentation)">
+  <!ENTITY sqlite-md5sum        "a18bfc015cd49a1e7a961b7b77bc3b37">
+  <!ENTITY sqlite-size          "2.0 MB">
+  <!ENTITY sqlite-buildsize     "69 MB">
   <!ENTITY sqlite-time          "0.3 SBU">
 
-  <!ENTITY sqlite-docs-download
-           "http://sqlite.org/2014/sqlite-doc-&sqlite-doc-version;.zip">
-  <!ENTITY sqlite-docs-md5sum   "42560edd0f320e09cfff045ca4f6a281">
-  <!ENTITY sqlite-docs-size     "4.7 MB">
+  <!ENTITY sqlite-docs-download "https://www.sqlite.org/2015/sqlite-doc-&sqlite-doc-version;.zip">
+  <!ENTITY sqlite-docs-md5sum   "59e10cdbacbda10469a7c57843d1ffdd">
+  <!ENTITY sqlite-docs-size     "4.9 MB">
 ]>
 
@@ -45,5 +43,5 @@
     </para>
 
-    &lfs76_checked;
+    &lfs77_checked;
 
     <bridgehead renderas="sect3">Package Information</bridgehead>
@@ -105,5 +103,5 @@
     <bridgehead renderas="sect4">Optional</bridgehead>
     <para role="optional">
-      <xref linkend="unzip"/> (required to unzip the documentation).
+      <xref linkend="unzip"/> (required to unzip the documentation)
     </para>
 
@@ -115,4 +113,10 @@
   <sect2 role="installation">
     <title>Installation of SQLite</title>
+
+    <note>
+      <para>
+        This package does not support parallel build.
+      </para>
+    </note>
 
     <para>
@@ -152,4 +156,5 @@
 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &amp;&amp;
 cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
+
   </sect2>
 
