summaryrefslogtreecommitdiff
path: root/perl/Wallet
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2013-02-13 18:25:53 -0800
committerRuss Allbery <rra@stanford.edu>2013-02-13 18:28:37 -0800
commitdc5d5b7d4a10cf44c356e8f920d852ef26601e1b (patch)
tree036fce0d7c1608af8892f5540c2f5e45226a45f9 /perl/Wallet
parentb750e56ea3f93fbc09917cacfc6b2737ef9671a7 (diff)
Install the wallet schema during make install
Install the wallet schema files generated by DBIx::Class for the various supported database engines into /usr/local/share/wallet (by default, using pkgdatadir) on make install. Set the default $DB_DDL_DIRECTORY value in Wallet::Config accordingly. Change-Id: I7ec52b171bc6aca2c3e1040c037e7cf24553231f Reviewed-on: https://gerrit.stanford.edu/794 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
Diffstat (limited to 'perl/Wallet')
-rw-r--r--perl/Wallet/Config.pm21
1 files changed, 11 insertions, 10 deletions
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