Skip to content

Commit

Permalink
Merge pull request ZoneMinder#242 from ZoneMinder/removeversionnumber…
Browse files Browse the repository at this point in the history
…fromzm.conf

Remove ZM_VERSION from zm.conf
  • Loading branch information
mastertheknife committed Nov 4, 2013
2 parents 891757d + 0fd7d85 commit be21a88
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ PATH_BUILD=`pwd`
AC_SUBST(PATH_BUILD)
TIME_BUILD=`date +'%s'`
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_NAME,[Name of ZoneMinder database, default zm])
Expand Down
4 changes: 3 additions & 1 deletion scripts/ZoneMinder/lib/ZoneMinder/Base.pm.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ require Exporter;

our @ISA = qw(Exporter);

use constant ZM_VERSION => "@VERSION@";

# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.

# This allows declaration use ZoneMinder ':all';
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
# will save memory.
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
our %EXPORT_TAGS = ( 'all' => [ qw(ZM_VERSION) ] );

our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );

Expand Down
2 changes: 2 additions & 0 deletions scripts/zmdbbackup.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# Edit these to suit your configuration
ZM_CONFIG=@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
BACKUP_PATH=/var/lib/zm
Expand Down
2 changes: 2 additions & 0 deletions scripts/zmeventdump.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

# Edit these to suit your configuration
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

# The rest should not need editing
Expand Down
2 changes: 2 additions & 0 deletions web/includes/config.php.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
// 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, and override any given in config file
define( "ZM_VERSION", "@VERSION@" ); // Version

$configFile = ZM_CONFIG;
$localConfigFile = basename($configFile);
Expand Down
15 changes: 9 additions & 6 deletions zm.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=@VERSION@

# Path to build directory
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
ZM_TIME_BUILD=@TIME_BUILD@

# Path to installed data directory, used mostly for finding DB upgrade scripts
ZM_PATH_DATA=@PKGDATADIR@

# Path to ZoneMinder binaries
ZM_PATH_BIN=@BINDIR@

Expand All @@ -40,6 +37,9 @@ ZM_PATH_CGI=@CGI_PREFIX@
ZM_WEB_USER=@WEB_USER@
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
ZM_DB_HOST=@ZM_DB_HOST@

Expand All @@ -51,3 +51,6 @@ ZM_DB_USER=@ZM_DB_USER@

# ZoneMinder database password
ZM_DB_PASS=@ZM_DB_PASS@

# Host of this machine
ZM_SERVER_HOST=

0 comments on commit be21a88

Please sign in to comment.