remake this branch off master instead of off mysql2PDO.

Establish an automake substitution of @VERSION@ and use it throughotu to override whatever is in zm.conf
This commit is contained in:
Isaac Connor 2013-11-01 09:47:28 -04:00
parent 3c59961846
commit 72b80d7417
5 changed files with 14 additions and 7 deletions

View File

@ -10,6 +10,7 @@ PATH_BUILD=`pwd`
AC_SUBST(PATH_BUILD) AC_SUBST(PATH_BUILD)
TIME_BUILD=`date +'%s'` TIME_BUILD=`date +'%s'`
AC_SUBST(TIME_BUILD) AC_SUBST(TIME_BUILD)
AC_SUBST(VERSION)
AC_ARG_VAR(ZM_DB_HOST,[Hostname where ZoneMinder database located, default localhost]) AC_ARG_VAR(ZM_DB_HOST,[Hostname where ZoneMinder database located, default localhost])
AC_ARG_VAR(ZM_DB_NAME,[Name of ZoneMinder database, default zm]) AC_ARG_VAR(ZM_DB_NAME,[Name of ZoneMinder database, default zm])

View File

@ -20,6 +20,8 @@
# Edit these to suit your configuration # Edit these to suit your configuration
ZM_CONFIG=@ZM_CONFIG@ ZM_CONFIG=@ZM_CONFIG@
source $ZM_CONFIG source $ZM_CONFIG
# ZM_VERSION in the config is now deprecated but will likely still exist in people's config files. This will override it.
ZM_VERSION=@VERSION@
MYSQLDUMP=/usr/bin/mysqldump MYSQLDUMP=/usr/bin/mysqldump
BACKUP_PATH=/var/lib/zm BACKUP_PATH=/var/lib/zm

View File

@ -23,6 +23,8 @@
# Edit these to suit your configuration # Edit these to suit your configuration
ZM_CONFIG=@ZM_CONFIG@ ZM_CONFIG=@ZM_CONFIG@
# ZM_VERSION in the config is now deprecated but will likely still exist in people's config files. This will override it.
ZM_VERSION=@VERSION@
MYSQLDUMP=/usr/bin/mysqldump MYSQLDUMP=/usr/bin/mysqldump
# The rest should not need editing # The rest should not need editing

View File

@ -22,6 +22,8 @@
// This section contains options substituted by the zmconfig.pl utility, do not edit these directly // This section contains options substituted by the zmconfig.pl utility, do not edit these directly
// //
define( "ZM_CONFIG", "@ZM_CONFIG@" ); // Path to config file define( "ZM_CONFIG", "@ZM_CONFIG@" ); // Path to config file
// Define, and override any given in config file
define( "ZM_VERSION", "@VERSION@" ); // Version
$configFile = ZM_CONFIG; $configFile = ZM_CONFIG;
$localConfigFile = basename($configFile); $localConfigFile = basename($configFile);

View File

@ -9,15 +9,9 @@
# or installations. # or installations.
# #
# Current version of ZoneMinder # Path to build directory, used mostly for finding DB upgrade scripts
ZM_VERSION=@VERSION@
# Path to build directory
ZM_PATH_BUILD=@PATH_BUILD@ ZM_PATH_BUILD=@PATH_BUILD@
# Path to installed data directory, used mostly for finding DB upgrade scripts
ZM_PATH_DATA=@PKGDATADIR@
# Build time, used to record when to trigger various checks # Build time, used to record when to trigger various checks
ZM_TIME_BUILD=@TIME_BUILD@ ZM_TIME_BUILD=@TIME_BUILD@
@ -40,6 +34,9 @@ ZM_PATH_CGI=@CGI_PREFIX@
ZM_WEB_USER=@WEB_USER@ ZM_WEB_USER=@WEB_USER@
ZM_WEB_GROUP=@WEB_GROUP@ ZM_WEB_GROUP=@WEB_GROUP@
# ZoneMinder database type: so far only mysql is supported
ZM_DB_TYPE=@ZM_DB_TYPE@
# ZoneMinder database hostname or ip address # ZoneMinder database hostname or ip address
ZM_DB_HOST=@ZM_DB_HOST@ ZM_DB_HOST=@ZM_DB_HOST@
@ -51,3 +48,6 @@ ZM_DB_USER=@ZM_DB_USER@
# ZoneMinder database password # ZoneMinder database password
ZM_DB_PASS=@ZM_DB_PASS@ ZM_DB_PASS=@ZM_DB_PASS@
# Host of this machine
ZM_SERVER_HOST=