aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am13
-rw-r--r--TODO6
-rw-r--r--perl/Wallet/Config.pm21
3 files changed, 22 insertions, 18 deletions
diff --git a/Makefile.am b/Makefile.am
index 1c42b2d..0e1d99c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,8 @@
# Automake makefile for wallet.
#
# Written by Russ Allbery <rra@stanford.edu>
-# Copyright 2006, 2007, 2008, 2010
-# Board of Trustees, Leland Stanford Jr. University
+# Copyright 2006, 2007, 2008, 2010, 2013
+# The Board of Trustees of the Leland Stanford Junior University
#
# See LICENSE for licensing terms.
@@ -82,6 +82,15 @@ client_wallet_rekey_LDADD = client/libwallet.a util/libutil.a \
dist_man_MANS = client/wallet.1 client/wallet-rekey.1 server/keytab-backend.8 \
server/wallet-admin.8 server/wallet-backend.8 server/wallet-report.8
+# Install the SQL files that are used by the server code to do upgrades.
+dist_pkgdata_DATA = perl/sql/Wallet-Schema-0.07-0.08-MySQL.sql \
+ perl/sql/Wallet-Schema-0.07-0.08-SQLite.sql \
+ perl/sql/Wallet-Schema-0.07-MySQL.sql \
+ perl/sql/Wallet-Schema-0.07-SQLite.sql \
+ perl/sql/Wallet-Schema-0.08-MySQL.sql \
+ perl/sql/Wallet-Schema-0.08-PostgreSQL.sql \
+ perl/sql/Wallet-Schema-0.08-SQLite.sql
+
# A set of flags for warnings. Add -O because gcc won't find some warnings
# without optimization turned on. Desirable warnings that can't be turned
# on due to other problems:
diff --git a/TODO b/TODO
index 07d7a2c..cd95736 100644
--- a/TODO
+++ b/TODO
@@ -183,12 +183,6 @@ Administrative Interface:
but it's supposed to work directly from the classes. Double-check
this.
-Installation:
-
- * WALLET-65: Install the SQL files and set a default value for
- $DB_DDL_DIRECTORY. Document this in the installation instructions.
- Test for the validity of that variable before doing upgrades?
-
Documentation:
* WALLET-43: Write a conventions document for ACL naming, object naming,
diff --git a/perl/Wallet/Config.pm b/perl/Wallet/Config.pm
index 98dae03..9649c6c 100644
--- a/perl/Wallet/Config.pm
+++ b/perl/Wallet/Config.pm
@@ -84,6 +84,17 @@ file.
=over 4
+=item DB_DDL_DIRECTORY
+
+Specifies the directory used to dump the database schema in formats for
+each possible database server. This also includes diffs between schema
+versions, for upgrades. The default value is F</usr/local/share/wallet>,
+which matches the default installation location.
+
+=cut
+
+our $DB_DDL_DIRECTORY = '/usr/local/share/wallet';
+
=item DB_DRIVER
Sets the Perl database driver to use for the wallet database. Common
@@ -167,16 +178,6 @@ backends, particularly SQLite, do not need this.
our $DB_PASSWORD;
-=item DB_DDL_DIRECTORY
-
-Specifies the directory used to dump the database schema in formats for
-each possible database server. This also includes diffs between schema
-versions, for upgrades.
-
-=cut
-
-our $DB_DDL_DIRECTORY;
-
=back
=head1 FILE OBJECT CONFIGURATION