merged autoconf-install branch to main branch
This commit is contained in:
parent
eac694b83a
commit
d097fd47db
163 changed files with 12931 additions and 1884 deletions
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.1 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/autogen.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/autogen.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -53,6 +53,14 @@ DIE=0
|
||||||
DIE=1
|
DIE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have automake installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
if test "$DIE" -eq 1; then
|
if test "$DIE" -eq 1; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -68,13 +76,21 @@ configure_ac=${etcdir}/configure.ac
|
||||||
configure=${tmpdir}/configure
|
configure=${tmpdir}/configure
|
||||||
aclocal_m4=${tmpdir}/aclocal.m4
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
if [ -f ${etcdir}/acinclude.m4 ]; then
|
# copy over install-sh, as it's going to be missed by autoconf
|
||||||
# run aclocal in etc, as it's blind, only sees files in the current directory
|
cp -f ${bindir}/install-sh ${tmpdir}
|
||||||
ACLOCAL_FLAGS="--output=${aclocal_m4}"
|
|
||||||
echo " aclocal $ACLOCAL_FLAGS"
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
cd ${etcdir} && aclocal $ACLOCAL_FLAGS ; cd ${tmpdir}
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
fi
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
cp -f ${configure_ac} ${tmpdir}
|
||||||
|
cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
${configure} "$@" && echo
|
#${configure} "$@" && echo
|
||||||
|
|
||||||
|
|
|
@ -1,215 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2004 Media Development Loan Fund
|
|
||||||
#
|
|
||||||
# This file is part of the LiveSupport project.
|
|
||||||
# http://livesupport.campware.org/
|
|
||||||
# To report bugs, send an e-mail to bugs@campware.org
|
|
||||||
#
|
|
||||||
# LiveSupport is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# LiveSupport is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with LiveSupport; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Author : $Author: maroy $
|
|
||||||
# Version : $Revision: 1.13 $
|
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/copyInstall.sh,v $
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# This script installs LiveSupport files to their installation location.
|
|
||||||
#
|
|
||||||
# Invoke as:
|
|
||||||
# ./bin/copyInstall.sh
|
|
||||||
#
|
|
||||||
# To get usage help, try the -h option
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Determine directories, files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
reldir=`dirname $0`/..
|
|
||||||
basedir=`cd $reldir; pwd;`
|
|
||||||
bindir=$basedir/bin
|
|
||||||
etcdir=$basedir/etc
|
|
||||||
docdir=$basedir/doc
|
|
||||||
tmpdir=$basedir/tmp
|
|
||||||
toolsdir=$basedir/tools
|
|
||||||
modules_dir=$basedir/modules
|
|
||||||
products_dir=$basedir/products
|
|
||||||
gstreamer_lib_dir=$modules_dir/gstreamerElements/lib
|
|
||||||
|
|
||||||
usrdir=`cd $basedir/usr; pwd;`
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Print the usage information for this script.
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
printUsage()
|
|
||||||
{
|
|
||||||
echo "LiveSupport install copy script.";
|
|
||||||
echo "parameters";
|
|
||||||
echo "";
|
|
||||||
echo " -d, --directory The installation directory, required.";
|
|
||||||
echo " -h, --help Print this message and exit.";
|
|
||||||
echo "";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Process command line parameters
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
CMD=${0##*/}
|
|
||||||
|
|
||||||
opts=$(getopt -o d:h -l directory:,help -n $CMD -- "$@") || exit 1
|
|
||||||
eval set -- "$opts"
|
|
||||||
while true; do
|
|
||||||
case "$1" in
|
|
||||||
-d|--directory)
|
|
||||||
installdir=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-h|--help)
|
|
||||||
printUsage;
|
|
||||||
exit 0;;
|
|
||||||
--)
|
|
||||||
shift;
|
|
||||||
break;;
|
|
||||||
*)
|
|
||||||
echo "Unrecognized option $1.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "x$installdir" == "x" ]; then
|
|
||||||
echo "Required parameter install directory not specified.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo "Installing LiveSupport files.";
|
|
||||||
echo "";
|
|
||||||
echo "Using the following installation parameters:";
|
|
||||||
echo "";
|
|
||||||
echo " installation directory: $installdir";
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# The details of installation
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
install_bin=$installdir/bin
|
|
||||||
install_etc=$installdir/etc
|
|
||||||
install_lib=$installdir/lib
|
|
||||||
install_tmp=$installdir/tmp
|
|
||||||
install_usr=$installdir/usr
|
|
||||||
install_var=$installdir/var
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Create the installation directory structure
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Copying files..."
|
|
||||||
|
|
||||||
mkdir -p $installdir
|
|
||||||
mkdir -p $install_bin
|
|
||||||
mkdir -p $install_etc
|
|
||||||
mkdir -p $install_lib
|
|
||||||
mkdir -p $install_tmp
|
|
||||||
mkdir -p $install_usr
|
|
||||||
mkdir -p $install_var
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copy the PHP files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
mkdir $install_var/getid3
|
|
||||||
cp -pPR $modules_dir/getid3/var $install_var/getid3
|
|
||||||
|
|
||||||
mkdir $install_var/alib
|
|
||||||
cp -pPR $modules_dir/alib/var $install_var/alib
|
|
||||||
|
|
||||||
mkdir $install_var/storageServer
|
|
||||||
cp -pPR $modules_dir/storageServer/var $install_var/storageServer
|
|
||||||
|
|
||||||
mkdir $install_var/archiveServer
|
|
||||||
cp -pPR $modules_dir/archiveServer/var $install_var/archiveServer
|
|
||||||
|
|
||||||
mkdir $install_var/htmlUI
|
|
||||||
cp -pPR $modules_dir/htmlUI/var $install_var/htmlUI
|
|
||||||
|
|
||||||
cp -pPR $modules_dir/storageAdmin/bin $install_usr
|
|
||||||
cp -pPR $modules_dir/storageAdmin/var $install_usr
|
|
||||||
|
|
||||||
mkdir -p $install_usr/lib
|
|
||||||
cp -pPR $toolsdir/pear $install_usr/lib
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copy libraries and related files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
cp -pPR $usrdir/lib/* $install_lib
|
|
||||||
cp -pPR $usrdir/etc/* $install_etc
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copy our gstreamer elements and create the gstreamer registry
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
gstreamer_dir=`find $install_lib -type d -name "gstreamer-*"`
|
|
||||||
|
|
||||||
cp -pPR $usrdir/bin/gst-* $install_bin
|
|
||||||
cp -pPR $modules_dir/gstreamerElements/lib/lib*.so $gstreamer_dir
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copy scheduler related files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
cp -pPR $products_dir/scheduler/tmp/scheduler $install_bin
|
|
||||||
cp -pPR $products_dir/scheduler/bin/scheduler.sh $install_bin
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copy gLiveSupport related files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
cp -pPR $products_dir/gLiveSupport/tmp/gLiveSupport $install_bin
|
|
||||||
cp -pPR $products_dir/gLiveSupport/bin/gLiveSupport.sh $install_bin
|
|
||||||
cp -pPR $products_dir/gLiveSupport/var/widgets $install_var
|
|
||||||
cp -pPR $products_dir/gLiveSupport/var/livesupport.png $install_var
|
|
||||||
cp -pPR $products_dir/gLiveSupport/var/stationLogo.png $install_var
|
|
||||||
cp -pPR $products_dir/gLiveSupport/tmp/gLiveSupport*.res $install_var
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copy post-installation configuration related files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
cp -pPR $bindir/postInstallScheduler.sh $install_bin
|
|
||||||
cp -pPR $bindir/postInstallGLiveSupport.sh $install_bin
|
|
||||||
cp -pPR $etcdir/apache $install_etc
|
|
||||||
cp -pPR $products_dir/scheduler/etc/scheduler.xml.template $install_etc
|
|
||||||
cp -pPR $products_dir/scheduler/etc/odbcinst_template $install_etc
|
|
||||||
cp -pPR $products_dir/scheduler/etc/odbcinst_debian_template $install_etc
|
|
||||||
cp -pPR $products_dir/scheduler/etc/odbc_template $install_etc
|
|
||||||
cp -pPR $products_dir/gLiveSupport/etc/gLiveSupport.xml.template $install_etc
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Clean up remnants of the CVS system
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
rm -rf `find $install_var -type d -name CVS`
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Say goodbye
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Done."
|
|
||||||
|
|
|
@ -22,14 +22,14 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.14 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/install.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/createDatabase.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# This script installs LiveSupport.
|
# This script reates the database used by LiveSupport
|
||||||
#
|
#
|
||||||
# Invoke as:
|
# Invoke as:
|
||||||
# ./bin/install.sh
|
# ./bin/createDatabase.sh
|
||||||
#
|
#
|
||||||
# To get usage help, try the -h option
|
# To get usage help, try the -h option
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -43,11 +43,7 @@ bindir=$basedir/bin
|
||||||
etcdir=$basedir/etc
|
etcdir=$basedir/etc
|
||||||
docdir=$basedir/doc
|
docdir=$basedir/doc
|
||||||
tmpdir=$basedir/tmp
|
tmpdir=$basedir/tmp
|
||||||
toolsdir=$basedir/tools
|
usrdir=$basedir/usr
|
||||||
modules_dir=$basedir/modules
|
|
||||||
products_dir=$basedir/products
|
|
||||||
|
|
||||||
usrdir=`cd $basedir/usr; pwd;`
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -55,21 +51,11 @@ usrdir=`cd $basedir/usr; pwd;`
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
printUsage()
|
printUsage()
|
||||||
{
|
{
|
||||||
echo "LiveSupport install script.";
|
echo "LiveSupport scheduler database creation script.";
|
||||||
echo "parameters";
|
echo "parameters";
|
||||||
echo "";
|
echo "";
|
||||||
echo " -d, --directory The installation directory, required.";
|
|
||||||
echo " -D, --database The name of the LiveSupport database.";
|
echo " -D, --database The name of the LiveSupport database.";
|
||||||
echo " [default: LiveSupport]";
|
echo " [default: LiveSupport]";
|
||||||
echo " -g, --apache-group The group the apache daemon runs as.";
|
|
||||||
echo " [default: apache]";
|
|
||||||
echo " -H, --host The fully qualified host name of the system";
|
|
||||||
echo " [default: guess].";
|
|
||||||
echo " -p, --port The port of the apache web server [default: 80]"
|
|
||||||
echo " -P, --scheduler-port The port of the scheduler daemon to install"
|
|
||||||
echo " [default: 3344]";
|
|
||||||
echo " -r, --www-root The root directory for web documents served";
|
|
||||||
echo " by apache [default: /var/www]";
|
|
||||||
echo " -s, --dbserver The name of the database server host.";
|
echo " -s, --dbserver The name of the database server host.";
|
||||||
echo " [default: localhost]";
|
echo " [default: localhost]";
|
||||||
echo " -u, --dbuser The name of the database user to access the"
|
echo " -u, --dbuser The name of the database user to access the"
|
||||||
|
@ -86,34 +72,16 @@ printUsage()
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
CMD=${0##*/}
|
CMD=${0##*/}
|
||||||
|
|
||||||
opts=$(getopt -o d:D:g:H:hp:P:r:s:u:w: -l apache-group:,database:,dbserver:,dbuser:,dbpassword:,directory:,host:,help,port:,scheduler-port:,www-root: -n $CMD -- "$@") || exit 1
|
opts=$(getopt -o D:hs:u:w: -l database:,dbserver:,dbuser:,dbpassword:,help, -n $CMD -- "$@") || exit 1
|
||||||
eval set -- "$opts"
|
eval set -- "$opts"
|
||||||
while true; do
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-d|--directory)
|
|
||||||
installdir=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-D|--database)
|
-D|--database)
|
||||||
database=$2;
|
database=$2;
|
||||||
shift; shift;;
|
shift; shift;;
|
||||||
-g|--apache-group)
|
|
||||||
apache_group=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-H|--host)
|
|
||||||
hostname=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-h|--help)
|
-h|--help)
|
||||||
printUsage;
|
printUsage;
|
||||||
exit 0;;
|
exit 0;;
|
||||||
-p|--port)
|
|
||||||
http_port=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-P|--scheduler-port)
|
|
||||||
scheduler_port=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-r|--www-root)
|
|
||||||
www_root=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-s|--dbserver)
|
-s|--dbserver)
|
||||||
dbserver=$2;
|
dbserver=$2;
|
||||||
shift; shift;;
|
shift; shift;;
|
||||||
|
@ -133,24 +101,6 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "x$installdir" == "x" ]; then
|
|
||||||
echo "Required parameter install directory not specified.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$hostname" == "x" ]; then
|
|
||||||
hostname=`hostname -f`;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$http_port" == "x" ]; then
|
|
||||||
http_port=80;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$scheduler_port" == "x" ]; then
|
|
||||||
scheduler_port=3344;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$dbserver" == "x" ]; then
|
if [ "x$dbserver" == "x" ]; then
|
||||||
dbserver=localhost;
|
dbserver=localhost;
|
||||||
fi
|
fi
|
||||||
|
@ -167,76 +117,98 @@ if [ "x$dbpassword" == "x" ]; then
|
||||||
dbpassword=livesupport;
|
dbpassword=livesupport;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "x$apache_group" == "x" ]; then
|
echo "Creating database for LiveSupport scheduler.";
|
||||||
apache_group=apache;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$www_root" == "x" ]; then
|
|
||||||
www_root=/var/www
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo "Installing LiveSupport.";
|
|
||||||
echo "";
|
echo "";
|
||||||
echo "Using the following installation parameters:";
|
echo "Using the following parameters:";
|
||||||
echo "";
|
echo "";
|
||||||
echo " installation directory: $installdir";
|
|
||||||
echo " host name: $hostname";
|
|
||||||
echo " web server port: $http_port";
|
|
||||||
echo " scheduler port: $scheduler_port";
|
|
||||||
echo " database server: $dbserver";
|
echo " database server: $dbserver";
|
||||||
echo " database: $database";
|
echo " database: $database";
|
||||||
echo " database user: $dbuser";
|
echo " database user: $dbuser";
|
||||||
echo " database user password: $dbpassword";
|
echo " database user password: $dbpassword";
|
||||||
echo " apache daemon group: $apache_group";
|
|
||||||
echo " apache document root: $www_root";
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# The details of installation
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
ls_dbserver=$dbserver
|
||||||
|
ls_dbuser=$dbuser
|
||||||
|
ls_dbpassword=$dbpassword
|
||||||
|
ls_database=$database
|
||||||
|
|
||||||
|
|
||||||
|
postgres_user=postgres
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Check if we're in the CVS, and bail out if so
|
# Function to check for the existence of an executable on the PATH
|
||||||
|
#
|
||||||
|
# @param $1 the name of the exectuable
|
||||||
|
# @return 0 if the executable exists on the PATH, non-0 otherwise
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
if [ -f CVS/Root ]; then
|
check_exe() {
|
||||||
echo "ERROR: this script is not intended to be run from the CVS sources.";
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo " run this script from inside the source tarball";
|
echo "Executable $1 found...";
|
||||||
exit 1;
|
return 0;
|
||||||
|
else
|
||||||
|
echo "Executable $1 not found...";
|
||||||
|
return 1;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check to see if this script is being run as root
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
if [ `whoami` != "root" ]; then
|
||||||
|
echo "Please run this script as root.";
|
||||||
|
exit ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Do pre-install checks
|
# Check for required tools
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
$bindir/preInstall.sh --apache-group $apache_group || exit 1;
|
echo "Checking for required tools..."
|
||||||
|
|
||||||
|
check_exe "su" || exit 1;
|
||||||
|
check_exe "psql" || exit 1;
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Copy the files
|
# Create the necessary database user and database itself
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
$bindir/copyInstall.sh --directory $installdir || exit 1;
|
echo "Creating database and database user...";
|
||||||
|
|
||||||
|
# FIXME: the below might not work for remote databases
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Do post-install setup
|
if [ "x$ls_dbserver" == "xlocalhost" ]; then
|
||||||
#-------------------------------------------------------------------------------
|
su - $postgres_user -c "echo \"CREATE USER $ls_dbuser \
|
||||||
$installdir/bin/postInstallScheduler.sh --directory $installdir \
|
ENCRYPTED PASSWORD '$ls_dbpassword' \
|
||||||
--database $database \
|
CREATEDB NOCREATEUSER;\" \
|
||||||
--apache-group $apache_group \
|
| psql template1" \
|
||||||
--host $hostname \
|
|| echo "Couldn't create database user $ls_dbuser.";
|
||||||
--port $http_port \
|
|
||||||
--scheduler-port $scheduler_port \
|
su - $postgres_user -c "echo \"CREATE DATABASE \\\"$ls_database\\\" \
|
||||||
--dbserver $dbserver \
|
OWNER $ls_dbuser ENCODING 'utf-8';\" \
|
||||||
--dbuser $dbuser \
|
| psql template1" \
|
||||||
--dbpassword $dbpassword \
|
|| echo "Couldn't create database $ls_database.";
|
||||||
--www-root $www_root \
|
else
|
||||||
|| exit 1;
|
echo "Unable to automatically create database user and table for";
|
||||||
|
echo "remote database $ls_dbserver.";
|
||||||
$installdir/bin/postInstallGLiveSupport.sh --directory $installdir \
|
echo "Make sure to create database user $ls_dbuser with password";
|
||||||
--host $hostname \
|
echo "$ls_dbpassword on database server at $ls_dbserver.";
|
||||||
--port $http_port \
|
echo "Also create a database called $ld_database, owned by this user.";
|
||||||
--scheduler-port $scheduler_port \
|
echo "";
|
||||||
|| exit 1;
|
echo "The easiest way to achieve this is by issuing the following SQL";
|
||||||
|
echo "commands to PostgreSQL:";
|
||||||
|
echo "CREATE USER $ls_dbuser";
|
||||||
|
echo " ENCRYPTED PASSWORD '$ls_dbpassword'";
|
||||||
|
echo " CREATEDB NOCREATEUSER;";
|
||||||
|
echo "CREATE DATABASE \"$ls_database\"";
|
||||||
|
echo " OWNER $ls_dbuser ENCODING 'utf-8';";
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: check for the success of these operations somehow
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Say goodbye
|
# Say goodbye
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.15 $
|
# Version : $Revision: 1.16 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/dist.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/dist.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -231,6 +231,14 @@ cp -pPR README INSTALL configure $ls_tmpdir
|
||||||
rm -rf `find $ls_tmpdir -name CVS -type d`
|
rm -rf `find $ls_tmpdir -name CVS -type d`
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Create the main configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
cd $tmpdir/livesupport-$version
|
||||||
|
./bin/autogen.sh
|
||||||
|
cd $basedir
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Create the tarball
|
# Create the tarball
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
323
livesupport/bin/install-sh
Executable file
323
livesupport/bin/install-sh
Executable file
|
@ -0,0 +1,323 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
|
scriptversion=2005-02-02.21
|
||||||
|
|
||||||
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
# following copyright and license.
|
||||||
|
#
|
||||||
|
# Copyright (C) 1994 X Consortium
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to
|
||||||
|
# deal in the Software without restriction, including without limitation the
|
||||||
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
# sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||||
|
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
# Except as contained in this notice, the name of the X Consortium shall not
|
||||||
|
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||||
|
# ings in this Software without prior written authorization from the X Consor-
|
||||||
|
# tium.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# FSF changes to this file are in the public domain.
|
||||||
|
#
|
||||||
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
|
# `make' implicit rules from creating a file called install from it
|
||||||
|
# when there is no Makefile.
|
||||||
|
#
|
||||||
|
# This script is compatible with the BSD install script, but was written
|
||||||
|
# from scratch. It can only install one file at a time, a restriction
|
||||||
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
|
doit="${DOITPROG-}"
|
||||||
|
|
||||||
|
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||||
|
|
||||||
|
mvprog="${MVPROG-mv}"
|
||||||
|
cpprog="${CPPROG-cp}"
|
||||||
|
chmodprog="${CHMODPROG-chmod}"
|
||||||
|
chownprog="${CHOWNPROG-chown}"
|
||||||
|
chgrpprog="${CHGRPPROG-chgrp}"
|
||||||
|
stripprog="${STRIPPROG-strip}"
|
||||||
|
rmprog="${RMPROG-rm}"
|
||||||
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
|
chmodcmd="$chmodprog 0755"
|
||||||
|
chowncmd=
|
||||||
|
chgrpcmd=
|
||||||
|
stripcmd=
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
mvcmd="$mvprog"
|
||||||
|
src=
|
||||||
|
dst=
|
||||||
|
dir_arg=
|
||||||
|
dstarg=
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
|
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
|
||||||
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-c (ignored)
|
||||||
|
-d create directories instead of installing files.
|
||||||
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
|
-m MODE $chmodprog installed files to MODE.
|
||||||
|
-o USER $chownprog installed files to USER.
|
||||||
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
--help display this help and exit.
|
||||||
|
--version display version info and exit.
|
||||||
|
|
||||||
|
Environment variables override the default commands:
|
||||||
|
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||||
|
"
|
||||||
|
|
||||||
|
while test -n "$1"; do
|
||||||
|
case $1 in
|
||||||
|
-c) shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-d) dir_arg=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--help) echo "$usage"; exit $?;;
|
||||||
|
|
||||||
|
-m) chmodcmd="$chmodprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-s) stripcmd=$stripprog
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-t) dstarg=$2
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-T) no_target_directory=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
|
*) # When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
test -n "$dir_arg$dstarg" && break
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dstarg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dstarg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dstarg=$arg
|
||||||
|
done
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$1"; then
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
echo "$0: no input file specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# It's OK to call `install-sh -d' without argument.
|
||||||
|
# This can happen when creating conditional directories.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
for src
|
||||||
|
do
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $src in
|
||||||
|
-*) src=./$src ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
dst=$src
|
||||||
|
src=
|
||||||
|
|
||||||
|
if test -d "$dst"; then
|
||||||
|
mkdircmd=:
|
||||||
|
chmodcmd=
|
||||||
|
else
|
||||||
|
mkdircmd=$mkdirprog
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
|
echo "$0: $src does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$dstarg"; then
|
||||||
|
echo "$0: no destination specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dst=$dstarg
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $dst in
|
||||||
|
-*) dst=./$dst ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; won't work
|
||||||
|
# if double slashes aren't ignored.
|
||||||
|
if test -d "$dst"; then
|
||||||
|
if test -n "$no_target_directory"; then
|
||||||
|
echo "$0: $dstarg: Is a directory" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
dst=$dst/`basename "$src"`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This sed command emulates the dirname command.
|
||||||
|
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||||
|
|
||||||
|
# Make sure that the destination directory exists.
|
||||||
|
|
||||||
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if test ! -d "$dstdir"; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-$defaultIFS}"
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
|
||||||
|
while test $# -ne 0 ; do
|
||||||
|
pathcomp=$pathcomp$1
|
||||||
|
shift
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
$mkdirprog "$pathcomp"
|
||||||
|
# mkdir can fail with a `File exist' error in case several
|
||||||
|
# install-sh are creating the directory concurrently. This
|
||||||
|
# is OK.
|
||||||
|
test -d "$pathcomp" || exit
|
||||||
|
fi
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
$doit $mkdircmd "$dst" \
|
||||||
|
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||||
|
|
||||||
|
else
|
||||||
|
dstfile=`basename "$dst"`
|
||||||
|
|
||||||
|
# Make a couple of temp file names in the proper directory.
|
||||||
|
dsttmp=$dstdir/_inst.$$_
|
||||||
|
rmtmp=$dstdir/_rm.$$_
|
||||||
|
|
||||||
|
# Trap to clean up those temp files at exit.
|
||||||
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
|
trap '(exit $?); exit' 1 2 13 15
|
||||||
|
|
||||||
|
# Copy the file name to the temp name.
|
||||||
|
$doit $cpprog "$src" "$dsttmp" &&
|
||||||
|
|
||||||
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
|
#
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
|
#
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
if test -f "$dstdir/$dstfile"; then
|
||||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fi || { (exit 1); exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
|
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||||
|
{
|
||||||
|
(exit 0); exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
|
@ -1,275 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2004 Media Development Loan Fund
|
|
||||||
#
|
|
||||||
# This file is part of the LiveSupport project.
|
|
||||||
# http://livesupport.campware.org/
|
|
||||||
# To report bugs, send an e-mail to bugs@campware.org
|
|
||||||
#
|
|
||||||
# LiveSupport is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# LiveSupport is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with LiveSupport; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Author : $Author: fgerlits $
|
|
||||||
# Version : $Revision: 1.8 $
|
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/postInstallGLiveSupport.sh,v $
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# This script makes post-installation steps for GLiveSupport.
|
|
||||||
#
|
|
||||||
# Invoke as:
|
|
||||||
# ./bin/postInstallGLiveSupport.sh
|
|
||||||
#
|
|
||||||
# To get usage help, try the -h option
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Determine directories, files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
reldir=`dirname $0`/..
|
|
||||||
basedir=`cd $reldir; pwd;`
|
|
||||||
bindir=$basedir/bin
|
|
||||||
etcdir=$basedir/etc
|
|
||||||
docdir=$basedir/doc
|
|
||||||
tmpdir=$basedir/tmp
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Print the usage information for this script.
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
printUsage()
|
|
||||||
{
|
|
||||||
echo "GLiveSupport post-install script.";
|
|
||||||
echo "parameters";
|
|
||||||
echo "";
|
|
||||||
echo " -d, --directory The installation directory, required.";
|
|
||||||
echo " -H, --host The fully qualified host name of the system";
|
|
||||||
echo " [default: guess].";
|
|
||||||
echo " -p, --port The port of the apache web server [default: 80]"
|
|
||||||
echo " -P, --scheduler-port The port of the scheduler daemon to install"
|
|
||||||
echo " [default: 3344]";
|
|
||||||
echo " -o, --output-device The audio device of live-mode broadcast";
|
|
||||||
echo " [default: plughw:0,0]";
|
|
||||||
echo " -c, --cue-device The audio device of preview listening";
|
|
||||||
echo " [default: plughw:0,0]";
|
|
||||||
echo " -h, --help Print this message and exit.";
|
|
||||||
echo "";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Process command line parameters
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
CMD=${0##*/}
|
|
||||||
|
|
||||||
opts=$(getopt -o d:H:hp:P:c:o: -l directory:,host:,help,port:,scheduler-port:,cue-device:,output-device: -n $CMD -- "$@") || exit 1
|
|
||||||
eval set -- "$opts"
|
|
||||||
while true; do
|
|
||||||
case "$1" in
|
|
||||||
-d|--directory)
|
|
||||||
installdir=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-H|--host)
|
|
||||||
hostname=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-h|--help)
|
|
||||||
printUsage;
|
|
||||||
exit 0;;
|
|
||||||
-p|--port)
|
|
||||||
http_port=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-P|--scheduler-port)
|
|
||||||
scheduler_port=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-o|--output-device)
|
|
||||||
output_alsa_device=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-c|--cue-device)
|
|
||||||
cue_alsa_device=$2;
|
|
||||||
shift; shift;;
|
|
||||||
--)
|
|
||||||
shift;
|
|
||||||
break;;
|
|
||||||
*)
|
|
||||||
echo "Unrecognized option $1.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "x$installdir" == "x" ]; then
|
|
||||||
echo "Required parameter install directory not specified.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$hostname" == "x" ]; then
|
|
||||||
hostname=`hostname -f`;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$http_port" == "x" ]; then
|
|
||||||
http_port=80;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$scheduler_port" == "x" ]; then
|
|
||||||
scheduler_port=3344;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$output_alsa_device" == "x" ]; then
|
|
||||||
output_alsa_device="plughw:0,0";
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$cue_alsa_device" == "x" ]; then
|
|
||||||
cue_alsa_device="plughw:0,0";
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Making post-install steps for GLiveSupport.";
|
|
||||||
echo "";
|
|
||||||
echo "Using the following installation parameters:";
|
|
||||||
echo "";
|
|
||||||
echo " installation directory: $installdir";
|
|
||||||
echo " host name: $hostname";
|
|
||||||
echo " web server port: $http_port";
|
|
||||||
echo " scheduler port: $scheduler_port";
|
|
||||||
echo " live broadcast device: $output_alsa_device";
|
|
||||||
echo " preview device: $cue_alsa_device";
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# The details of installation
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
ls_php_host=$hostname
|
|
||||||
ls_php_port=$http_port
|
|
||||||
ls_php_urlPrefix=livesupport
|
|
||||||
|
|
||||||
ls_alib_xmlRpcPrefix="xmlrpc/xrLocStor.php"
|
|
||||||
ls_storage_xmlRpcPrefix="xmlrpc/xrLocStor.php"
|
|
||||||
|
|
||||||
ls_scheduler_host=$hostname
|
|
||||||
ls_scheduler_port=$scheduler_port
|
|
||||||
ls_scheduler_urlPrefix=
|
|
||||||
ls_scheduler_xmlRpcPrefix=RC2
|
|
||||||
ls_output_alsa_device=$output_alsa_device
|
|
||||||
ls_cue_alsa_device=$cue_alsa_device
|
|
||||||
|
|
||||||
|
|
||||||
install_bin=$installdir/bin
|
|
||||||
install_etc=$installdir/etc
|
|
||||||
install_lib=$installdir/lib
|
|
||||||
install_tmp=$installdir/tmp
|
|
||||||
install_var=$installdir/var
|
|
||||||
|
|
||||||
|
|
||||||
# replace / characters with a \/ sequence, for sed below
|
|
||||||
# the sed statement is really "s/\//\\\\\//g", but needs escaping because of
|
|
||||||
# bash, hence the extra '\' characters
|
|
||||||
installdir_s=`echo $installdir | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_storage_xmlRpcPrefix_s=`echo $ls_storage_xmlRpcPrefix | \
|
|
||||||
sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_alib_xmlRpcPrefix_s=`echo $ls_alib_xmlRpcPrefix | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_php_urlPrefix_s=`echo $ls_php_urlPrefix | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_scheduler_urlPrefix_s=`echo $ls_scheduler_urlPrefix | \
|
|
||||||
sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_scheduler_xmlRpcPrefix_s=`echo $ls_scheduler_xmlRpcPrefix | \
|
|
||||||
sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_output_alsa_device_s=`echo $ls_output_alsa_device | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_cue_alsa_device_s=`echo $ls_cue_alsa_device | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
|
|
||||||
replace_sed_string="s/ls_install_dir/$installdir_s/; \
|
|
||||||
s/ls_storageUrlPath/\/$ls_php_urlPrefix_s\/storageServer\/var/; \
|
|
||||||
s/ls_php_urlPrefix/$ls_php_urlPrefix_s/; \
|
|
||||||
s/ls_storage_xmlRpcPrefix/$ls_storage_xmlRpcPrefix_s/; \
|
|
||||||
s/ls_alib_xmlRpcPrefix/$ls_alib_xmlRpcPrefix_s/; \
|
|
||||||
s/ls_php_host/$ls_php_host/; \
|
|
||||||
s/ls_php_port/$ls_php_port/; \
|
|
||||||
s/ls_output_alsa_device/$ls_output_alsa_device_s/; \
|
|
||||||
s/ls_cue_alsa_device/$ls_cue_alsa_device_s/; \
|
|
||||||
s/ls_archiveUrlPath/\/$ls_php_urlPrefix_s\/archiveServer\/var/; \
|
|
||||||
s/ls_scheduler_urlPrefix/$ls_scheduler_urlPrefix_s/; \
|
|
||||||
s/ls_scheduler_xmlRpcPrefix/$ls_scheduler_xmlRpcPrefix_s/; \
|
|
||||||
s/ls_scheduler_host/$ls_scheduler_host/; \
|
|
||||||
s/ls_scheduler_port/$ls_scheduler_port/;"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Function to check for the existence of an executable on the PATH
|
|
||||||
#
|
|
||||||
# @param $1 the name of the exectuable
|
|
||||||
# @return 0 if the executable exists on the PATH, non-0 otherwise
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
check_exe() {
|
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
|
||||||
echo "Executable $1 found...";
|
|
||||||
return 0;
|
|
||||||
else
|
|
||||||
echo "Executable $1 not found...";
|
|
||||||
return 1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Check for required tools
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Checking for required tools..."
|
|
||||||
|
|
||||||
check_exe "sed" || exit 1;
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Customize the configuration files with the appropriate values
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Customizing configuration files..."
|
|
||||||
|
|
||||||
tmp_file=/tmp/livesupport_setup.$$
|
|
||||||
|
|
||||||
# customize the GTK- config files, which have hard-coded values in them :(
|
|
||||||
cat $install_etc/gtk-2.0/gdk-pixbuf.loaders \
|
|
||||||
| sed -e "s/^\"\/.*\/usr\/lib/\"$installdir_s\/lib/g" \
|
|
||||||
> $tmp_file
|
|
||||||
mv -f $tmp_file $install_etc/gtk-2.0/gdk-pixbuf.loaders
|
|
||||||
|
|
||||||
# customize the pango config files, which have hard-coded values in them :(
|
|
||||||
pango_rc=$install_etc/pango/pango.rc
|
|
||||||
echo "[Pango]" > $pango_rc
|
|
||||||
echo "ModuleFiles=$install_etc/pango/pango.modules" >> $pango_rc
|
|
||||||
cat $install_etc/pango/pango.modules \
|
|
||||||
| sed -e "s/^\/.*\/usr\/lib/$installdir_s\/lib/g" \
|
|
||||||
> $tmp_file
|
|
||||||
mv -f $tmp_file $install_etc/pango/pango.modules
|
|
||||||
|
|
||||||
# customize the gLiveSupport config file
|
|
||||||
cat $install_etc/gLiveSupport.xml.template \
|
|
||||||
| sed -e "$replace_sed_string" \
|
|
||||||
> $install_etc/gLiveSupport.xml
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Create the gstreamer registry
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Creating gstreamer registry...";
|
|
||||||
|
|
||||||
gstreamer_dir=`find $install_lib -type d -name "gstreamer-*"`
|
|
||||||
export LD_LIBRARY_PATH=$install_lib
|
|
||||||
export GST_REGISTRY=$install_etc/gst-registry.xml
|
|
||||||
export GST_PLUGIN_PATH=$gstreamer_dir
|
|
||||||
$install_bin/gst-register > /dev/null 2>&1
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Say goodbye
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Done."
|
|
||||||
|
|
|
@ -1,542 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2004 Media Development Loan Fund
|
|
||||||
#
|
|
||||||
# This file is part of the LiveSupport project.
|
|
||||||
# http://livesupport.campware.org/
|
|
||||||
# To report bugs, send an e-mail to bugs@campware.org
|
|
||||||
#
|
|
||||||
# LiveSupport is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# LiveSupport is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with LiveSupport; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Author : $Author: fgerlits $
|
|
||||||
# Version : $Revision: 1.9 $
|
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/postInstallScheduler.sh,v $
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# This script makes post-installation steps for the LiveSupport scheduler.
|
|
||||||
#
|
|
||||||
# Invoke as:
|
|
||||||
# ./bin/postInstallScheduler.sh
|
|
||||||
#
|
|
||||||
# To get usage help, try the -h option
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Determine directories, files
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
reldir=`dirname $0`/..
|
|
||||||
basedir=`cd $reldir; pwd;`
|
|
||||||
bindir=$basedir/bin
|
|
||||||
etcdir=$basedir/etc
|
|
||||||
docdir=$basedir/doc
|
|
||||||
tmpdir=$basedir/tmp
|
|
||||||
usrdir=$basedir/usr
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Print the usage information for this script.
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
printUsage()
|
|
||||||
{
|
|
||||||
echo "LiveSupport scheduler post-install script.";
|
|
||||||
echo "parameters";
|
|
||||||
echo "";
|
|
||||||
echo " -d, --directory The installation directory, required.";
|
|
||||||
echo " -D, --database The name of the LiveSupport database.";
|
|
||||||
echo " [default: LiveSupport]";
|
|
||||||
echo " -g, --apache-group The group the apache daemon runs as.";
|
|
||||||
echo " [default: apache]";
|
|
||||||
echo " -H, --host The fully qualified host name of the system";
|
|
||||||
echo " [default: guess].";
|
|
||||||
echo " -p, --port The port of the apache web server [default: 80]"
|
|
||||||
echo " -P, --scheduler-port The port of the scheduler daemon to install"
|
|
||||||
echo " [default: 3344]";
|
|
||||||
echo " -r, --www-root The root directory for web documents served";
|
|
||||||
echo " by apache [default: /var/www]";
|
|
||||||
echo " -s, --dbserver The name of the database server host.";
|
|
||||||
echo " [default: localhost]";
|
|
||||||
echo " -u, --dbuser The name of the database user to access the"
|
|
||||||
echo " database. [default: livesupport]";
|
|
||||||
echo " -w, --dbpassword The database user password.";
|
|
||||||
echo " [default: livesupport]";
|
|
||||||
echo " -o, --output-device The audio device of broadcast";
|
|
||||||
echo " [default: plughw:0,0]";
|
|
||||||
echo " -h, --help Print this message and exit.";
|
|
||||||
echo "";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Process command line parameters
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
CMD=${0##*/}
|
|
||||||
|
|
||||||
opts=$(getopt -o d:D:g:H:hp:P:r:s:u:w:o: -l apache-group:,database:,dbserver:,dbuser:,dbpassword:,directory:,host:,help,port:,scheduler-port:,www-root:,output-device -n $CMD -- "$@") || exit 1
|
|
||||||
eval set -- "$opts"
|
|
||||||
while true; do
|
|
||||||
case "$1" in
|
|
||||||
-d|--directory)
|
|
||||||
installdir=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-D|--database)
|
|
||||||
database=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-g|--apache-group)
|
|
||||||
apache_group=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-H|--host)
|
|
||||||
hostname=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-h|--help)
|
|
||||||
printUsage;
|
|
||||||
exit 0;;
|
|
||||||
-p|--port)
|
|
||||||
http_port=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-P|--scheduler-port)
|
|
||||||
scheduler_port=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-r|--www-root)
|
|
||||||
www_root=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-s|--dbserver)
|
|
||||||
dbserver=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-u|--dbuser)
|
|
||||||
dbuser=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-w|--dbpassword)
|
|
||||||
dbpassword=$2;
|
|
||||||
shift; shift;;
|
|
||||||
-o|--output-device)
|
|
||||||
output_alsa_device=$2;
|
|
||||||
shift; shift;;
|
|
||||||
--)
|
|
||||||
shift;
|
|
||||||
break;;
|
|
||||||
*)
|
|
||||||
echo "Unrecognized option $1.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "x$installdir" == "x" ]; then
|
|
||||||
echo "Required parameter install directory not specified.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$hostname" == "x" ]; then
|
|
||||||
hostname=`hostname -f`;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$http_port" == "x" ]; then
|
|
||||||
http_port=80;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$scheduler_port" == "x" ]; then
|
|
||||||
scheduler_port=3344;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$dbserver" == "x" ]; then
|
|
||||||
dbserver=localhost;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$database" == "x" ]; then
|
|
||||||
database=LiveSupport;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$dbuser" == "x" ]; then
|
|
||||||
dbuser=livesupport;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$dbpassword" == "x" ]; then
|
|
||||||
dbpassword=livesupport;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$apache_group" == "x" ]; then
|
|
||||||
apache_group=apache;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$www_root" == "x" ]; then
|
|
||||||
www_root=/var/www
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$output_alsa_device" == "x" ]; then
|
|
||||||
output_alsa_device="plughw:0,0";
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Making post-install steps for the LiveSupport scheduler.";
|
|
||||||
echo "";
|
|
||||||
echo "Using the following installation parameters:";
|
|
||||||
echo "";
|
|
||||||
echo " installation directory: $installdir";
|
|
||||||
echo " host name: $hostname";
|
|
||||||
echo " web server port: $http_port";
|
|
||||||
echo " scheduler port: $scheduler_port";
|
|
||||||
echo " database server: $dbserver";
|
|
||||||
echo " database: $database";
|
|
||||||
echo " database user: $dbuser";
|
|
||||||
echo " database user password: $dbpassword";
|
|
||||||
echo " apache daemon group: $apache_group";
|
|
||||||
echo " apache document root: $www_root";
|
|
||||||
echo " broadcast device: $output_alsa_device";
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# The details of installation
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
ls_php_host=$hostname
|
|
||||||
ls_php_port=$http_port
|
|
||||||
ls_php_urlPrefix=livesupport
|
|
||||||
|
|
||||||
ls_alib_xmlRpcPrefix="xmlrpc/xrLocStor.php"
|
|
||||||
ls_storage_xmlRpcPrefix="xmlrpc/xrLocStor.php"
|
|
||||||
|
|
||||||
ls_dbserver=$dbserver
|
|
||||||
ls_dbuser=$dbuser
|
|
||||||
ls_dbpassword=$dbpassword
|
|
||||||
ls_database=$database
|
|
||||||
|
|
||||||
ls_scheduler_host=$hostname
|
|
||||||
ls_scheduler_port=$scheduler_port
|
|
||||||
ls_scheduler_urlPrefix=
|
|
||||||
ls_scheduler_xmlRpcPrefix=RC2
|
|
||||||
ls_output_alsa_device=$output_alsa_device
|
|
||||||
|
|
||||||
|
|
||||||
postgres_user=postgres
|
|
||||||
|
|
||||||
install_bin=$installdir/bin
|
|
||||||
install_etc=$installdir/etc
|
|
||||||
install_lib=$installdir/lib
|
|
||||||
install_tmp=$installdir/tmp
|
|
||||||
install_usr=$installdir/usr
|
|
||||||
install_var=$installdir/var
|
|
||||||
|
|
||||||
|
|
||||||
# replace / characters with a \/ sequence, for sed below
|
|
||||||
# the sed statement is really "s/\//\\\\\//g", but needs escaping because of
|
|
||||||
# bash, hence the extra '\' characters
|
|
||||||
installdir_s=`echo $installdir | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_storage_xmlRpcPrefix_s=`echo $ls_storage_xmlRpcPrefix | \
|
|
||||||
sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_alib_xmlRpcPrefix_s=`echo $ls_alib_xmlRpcPrefix | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_php_urlPrefix_s=`echo $ls_php_urlPrefix | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_scheduler_urlPrefix_s=`echo $ls_scheduler_urlPrefix | \
|
|
||||||
sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_scheduler_xmlRpcPrefix_s=`echo $ls_scheduler_xmlRpcPrefix | \
|
|
||||||
sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
ls_output_alsa_device_s=`echo $ls_output_alsa_device | sed -e "s/\//\\\\\\\\\//g"`
|
|
||||||
|
|
||||||
replace_sed_string="s/ls_install_dir/$installdir_s/; \
|
|
||||||
s/ls_dbuser/$ls_dbuser/; \
|
|
||||||
s/ls_dbpassword/$ls_dbpassword/; \
|
|
||||||
s/ls_dbserver/$ls_dbserver/; \
|
|
||||||
s/ls_database/$ls_database/; \
|
|
||||||
s/ls_storageUrlPath/\/$ls_php_urlPrefix_s\/storageServer\/var/; \
|
|
||||||
s/ls_php_urlPrefix/$ls_php_urlPrefix_s/; \
|
|
||||||
s/ls_storage_xmlRpcPrefix/$ls_storage_xmlRpcPrefix_s/; \
|
|
||||||
s/ls_alib_xmlRpcPrefix/$ls_alib_xmlRpcPrefix_s/; \
|
|
||||||
s/ls_php_host/$ls_php_host/; \
|
|
||||||
s/ls_php_port/$ls_php_port/; \
|
|
||||||
s/ls_output_alsa_device/$ls_output_alsa_device_s/; \
|
|
||||||
s/ls_archiveUrlPath/\/$ls_php_urlPrefix_s\/archiveServer\/var/; \
|
|
||||||
s/ls_scheduler_urlPrefix/$ls_scheduler_urlPrefix_s/; \
|
|
||||||
s/ls_scheduler_xmlRpcPrefix/$ls_scheduler_xmlRpcPrefix_s/; \
|
|
||||||
s/ls_scheduler_host/$ls_scheduler_host/; \
|
|
||||||
s/ls_scheduler_port/$ls_scheduler_port/;"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Function to check for the existence of an executable on the PATH
|
|
||||||
#
|
|
||||||
# @param $1 the name of the exectuable
|
|
||||||
# @return 0 if the executable exists on the PATH, non-0 otherwise
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
check_exe() {
|
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
|
||||||
echo "Executable $1 found...";
|
|
||||||
return 0;
|
|
||||||
else
|
|
||||||
echo "Executable $1 not found...";
|
|
||||||
return 1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Check to see if this script is being run as root
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
if [ `whoami` != "root" ]; then
|
|
||||||
echo "Please run this script as root.";
|
|
||||||
exit ;
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Check for required tools
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Checking for required tools..."
|
|
||||||
|
|
||||||
check_exe "sed" || exit 1;
|
|
||||||
check_exe "psql" || exit 1;
|
|
||||||
check_exe "php" || exit 1;
|
|
||||||
check_exe "pear" || exit 1;
|
|
||||||
check_exe "odbcinst" || exit 1;
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Check for the apache group to be a real group
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
group_tmp_file=/tmp/ls_group_check.$$
|
|
||||||
touch $group_tmp_file
|
|
||||||
test_result=`chgrp $apache_group $group_tmp_file 2> /dev/null`
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
rm -f $group_tmp_file;
|
|
||||||
echo "Unable to use apache deamon group $apache_group.";
|
|
||||||
echo "Please check if $apache_group is a correct user group.";
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
rm -f $group_tmp_file;
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Create the necessary database user and database itself
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Creating database and database user...";
|
|
||||||
|
|
||||||
# FIXME: the below might not work for remote databases
|
|
||||||
|
|
||||||
if [ "x$ls_dbserver" == "xlocalhost" ]; then
|
|
||||||
su - $postgres_user -c "echo \"CREATE USER $ls_dbuser \
|
|
||||||
ENCRYPTED PASSWORD '$ls_dbpassword' \
|
|
||||||
CREATEDB NOCREATEUSER;\" \
|
|
||||||
| psql template1" \
|
|
||||||
|| echo "Couldn't create database user $ls_dbuser.";
|
|
||||||
|
|
||||||
su - $postgres_user -c "echo \"CREATE DATABASE \\\"$ls_database\\\" \
|
|
||||||
OWNER $ls_dbuser ENCODING 'utf-8';\" \
|
|
||||||
| psql template1" \
|
|
||||||
|| echo "Couldn't create database $ls_database.";
|
|
||||||
else
|
|
||||||
echo "Unable to automatically create database user and table for";
|
|
||||||
echo "remote database $ls_dbserver.";
|
|
||||||
echo "Make sure to create database user $ls_dbuser with password";
|
|
||||||
echo "$ls_dbpassword on database server at $ls_dbserver.";
|
|
||||||
echo "Also create a database called $ld_database, owned by this user.";
|
|
||||||
echo "";
|
|
||||||
echo "The easiest way to achieve this is by issuing the following SQL";
|
|
||||||
echo "commands to PostgreSQL:";
|
|
||||||
echo "CREATE USER $ls_dbuser";
|
|
||||||
echo " ENCRYPTED PASSWORD '$ls_dbpassword'";
|
|
||||||
echo " CREATEDB NOCREATEUSER;";
|
|
||||||
echo "CREATE DATABASE \"$ls_database\"";
|
|
||||||
echo " OWNER $ls_dbuser ENCODING 'utf-8';";
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# TODO: check for the success of these operations somehow
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Create the ODBC data source and driver
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Creating ODBC data source and driver...";
|
|
||||||
|
|
||||||
odbcinst_template=$install_etc/odbcinst_template
|
|
||||||
odbc_template=$install_etc/odbc_template
|
|
||||||
odbc_template_tmp=/tmp/odbc_template.$$
|
|
||||||
|
|
||||||
# check for an existing PostgreSQL ODBC driver, and only install if necessary
|
|
||||||
odbcinst_res=`odbcinst -q -d | grep "\[PostgreSQL\]"`
|
|
||||||
if [ "x$odbcinst_res" == "x" ]; then
|
|
||||||
echo "Registering ODBC PostgreSQL driver...";
|
|
||||||
odbcinst -i -d -v -f $odbcinst_template || exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Registering LiveSupport ODBC data source...";
|
|
||||||
cat $odbc_template | sed -e "$replace_sed_string" > $odbc_template_tmp
|
|
||||||
odbcinst -i -s -l -f $odbc_template_tmp || exit 1;
|
|
||||||
rm -f $odbc_template_tmp
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Install PEAR packages (locally in the LiveSupport)
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
$install_usr/lib/pear/bin/install.sh -d $installdir || exit 1;
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Customize the configuration files with the appropriate values
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Customizing configuration files..."
|
|
||||||
|
|
||||||
cat $install_var/storageServer/var/conf.php.template \
|
|
||||||
| sed -e "$replace_sed_string" \
|
|
||||||
> $install_var/storageServer/var/conf.php
|
|
||||||
|
|
||||||
cat $install_var/archiveServer/var/conf.php.template \
|
|
||||||
| sed -e "$replace_sed_string" \
|
|
||||||
> $install_var/archiveServer/var/conf.php
|
|
||||||
|
|
||||||
cat $install_usr/var/conf.php.template \
|
|
||||||
| sed -e "$replace_sed_string" \
|
|
||||||
> $install_usr/var/conf.php
|
|
||||||
|
|
||||||
cat $install_etc/scheduler.xml.template \
|
|
||||||
| sed -e "$replace_sed_string" \
|
|
||||||
> $install_etc/scheduler.xml
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Setup working directories
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Setting up working directories..."
|
|
||||||
|
|
||||||
mkdir -p $install_var/storageServer/var/stor/buffer
|
|
||||||
mkdir -p $install_var/storageServer/var/access
|
|
||||||
mkdir -p $install_var/storageServer/var/trans
|
|
||||||
|
|
||||||
mkdir -p $install_var/archiveServer/var/stor/buffer
|
|
||||||
mkdir -p $install_var/archiveServer/var/access
|
|
||||||
mkdir -p $install_var/archiveServer/var/trans
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Setup directory permissions
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Setting up directory permissions..."
|
|
||||||
|
|
||||||
chgrp $apache_group $install_var/archiveServer/var/stor
|
|
||||||
chgrp $apache_group $install_var/archiveServer/var/access
|
|
||||||
chgrp $apache_group $install_var/archiveServer/var/trans
|
|
||||||
chgrp $apache_group $install_var/archiveServer/var/stor/buffer
|
|
||||||
|
|
||||||
chmod g+sw $install_var/archiveServer/var/stor
|
|
||||||
chmod g+sw $install_var/archiveServer/var/access
|
|
||||||
chmod g+sw $install_var/archiveServer/var/trans
|
|
||||||
chmod g+sw $install_var/archiveServer/var/stor/buffer
|
|
||||||
|
|
||||||
chgrp $apache_group $install_var/storageServer/var/stor
|
|
||||||
chgrp $apache_group $install_var/storageServer/var/access
|
|
||||||
chgrp $apache_group $install_var/storageServer/var/trans
|
|
||||||
chgrp $apache_group $install_var/storageServer/var/stor/buffer
|
|
||||||
|
|
||||||
chmod g+sw $install_var/storageServer/var/stor
|
|
||||||
chmod g+sw $install_var/storageServer/var/access
|
|
||||||
chmod g+sw $install_var/storageServer/var/trans
|
|
||||||
chmod g+sw $install_var/storageServer/var/stor/buffer
|
|
||||||
|
|
||||||
chgrp $apache_group $install_var/htmlUI/var/templates_c
|
|
||||||
chgrp $apache_group $install_var/htmlUI/var/html/img
|
|
||||||
|
|
||||||
chmod g+sw $install_var/htmlUI/var/templates_c
|
|
||||||
chmod g+sw $install_var/htmlUI/var/html/img
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Configuring Apache
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Configuring apache ..."
|
|
||||||
CONFFILE=90_php_livesupport.conf
|
|
||||||
AP_DDIR_FOUND=no
|
|
||||||
for APACHE_DDIR in \
|
|
||||||
/etc/apache/conf.d /etc/apache2/conf/modules.d /etc/httpd/conf.d
|
|
||||||
do
|
|
||||||
echo -n "$APACHE_DDIR "
|
|
||||||
if [ -d $APACHE_DDIR ]; then
|
|
||||||
echo "Y"
|
|
||||||
AP_DDIR_FOUND=yes
|
|
||||||
cp $basedir/etc/apache/$CONFFILE $APACHE_DDIR
|
|
||||||
else
|
|
||||||
echo "N"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ "$AP_DDIR_FOUND" != "yes" ]; then
|
|
||||||
echo "###############################"
|
|
||||||
echo " Could not configure Apache"
|
|
||||||
echo " include following file into apache config manually:"
|
|
||||||
echo " $basedir/etc/apache/$CONFFILE"
|
|
||||||
echo "###############################"
|
|
||||||
fi
|
|
||||||
echo "done"
|
|
||||||
|
|
||||||
echo "Restarting apache...";
|
|
||||||
AP_SCR_FOUND=no
|
|
||||||
for APACHE_SCRIPT in apache apache2 httpd ; do
|
|
||||||
echo -n "$APACHE_SCRIPT "
|
|
||||||
if [ -x /etc/init.d/$APACHE_SCRIPT ]; then
|
|
||||||
echo "Y"
|
|
||||||
AP_SCR_FOUND=yes
|
|
||||||
/etc/init.d/$APACHE_SCRIPT restart
|
|
||||||
else
|
|
||||||
echo "N"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ "$AP_SCR_FOUND" != "yes" ]; then
|
|
||||||
echo "###############################"
|
|
||||||
echo " Could not reload Apache"
|
|
||||||
echo " please reload apache manually"
|
|
||||||
echo "###############################"
|
|
||||||
fi
|
|
||||||
echo "done"
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Create symlinks
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Creating symlinks...";
|
|
||||||
|
|
||||||
# create symlink for the PHP pages in apache's document root
|
|
||||||
rm -f $www_root/livesupport
|
|
||||||
ln -s $install_var $www_root/livesupport
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Initialize the database
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Initializing database...";
|
|
||||||
|
|
||||||
# create PHP-related database tables
|
|
||||||
cd $install_var/storageServer/var/install
|
|
||||||
php -q install.php || exit 1;
|
|
||||||
cd -
|
|
||||||
|
|
||||||
# create scheduler-related database tables
|
|
||||||
cd $installdir
|
|
||||||
$bindir/scheduler.sh install || exit 1;
|
|
||||||
cd -
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Create the gstreamer registry
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Creating gstreamer registry...";
|
|
||||||
|
|
||||||
gstreamer_dir=`find $install_lib -type d -name "gstreamer-*"`
|
|
||||||
export LD_LIBRARY_PATH=$install_lib
|
|
||||||
export GST_REGISTRY=$install_etc/gst-registry.xml
|
|
||||||
export GST_PLUGIN_PATH=$gstreamer_dir
|
|
||||||
$install_bin/gst-register > /dev/null 2>&1
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Say goodbye
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
echo "Done."
|
|
||||||
|
|
105
livesupport/bin/setupDeveopmentEnvironment.sh
Executable file
105
livesupport/bin/setupDeveopmentEnvironment.sh
Executable file
|
@ -0,0 +1,105 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.1 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/setupDeveopmentEnvironment.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# A script to set up the development environment for LiveSupport
|
||||||
|
#
|
||||||
|
# Invoke as:
|
||||||
|
# ./bin/setupDevelopmentEnvironment.sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Determine directories, files
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
docdir=$basedir/doc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
toolsdir=$basedir/tools
|
||||||
|
modules_dir=$basedir/modules
|
||||||
|
products_dir=$basedir/products
|
||||||
|
|
||||||
|
usrdir=`cd $basedir/usr; pwd;`
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Print the usage information for this script.
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
printUsage()
|
||||||
|
{
|
||||||
|
echo "LiveSupport development environment setup script.";
|
||||||
|
echo "parameters";
|
||||||
|
echo "";
|
||||||
|
echo " -h, --help Print this message and exit.";
|
||||||
|
echo "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Process command line parameters
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
CMD=${0##*/}
|
||||||
|
|
||||||
|
opts=$(getopt -o h -l help -n $CMD -- "$@") || exit 1
|
||||||
|
eval set -- "$opts"
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-h|--help)
|
||||||
|
printUsage;
|
||||||
|
exit 0;;
|
||||||
|
--)
|
||||||
|
shift;
|
||||||
|
break;;
|
||||||
|
*)
|
||||||
|
echo "Unrecognized option $1.";
|
||||||
|
printUsage;
|
||||||
|
exit 1;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Create the configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
rm -rf $tmpdir/configure
|
||||||
|
$bindir/autogen.sh
|
||||||
|
$basedir/configure --prefix=$usrdir --with-www-docroot=$usrdir/var
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Compile everything at once, including the tools
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
make all
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# We're done
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Done."
|
||||||
|
|
8
livesupport/configure
vendored
8
livesupport/configure
vendored
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.1 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/configure,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/configure,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
# This script in effect calls the real automake / autoconf configure script
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
# assume we're in $basedir/bin
|
# assume we're in $basedir
|
||||||
reldir=`dirname $0`
|
reldir=`dirname $0`
|
||||||
basedir=`cd $reldir; pwd;`
|
basedir=`cd $reldir; pwd;`
|
||||||
test -z "$basedir" && basedir=.
|
test -z "$basedir" && basedir=.
|
||||||
|
@ -45,8 +45,8 @@ autogen=$bindir/autogen.sh
|
||||||
configure=$tmpdir/configure
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
if [ -x $configure ]; then
|
if [ -x $configure ]; then
|
||||||
(cd $tmpdir && $configure "$*")
|
(cd $tmpdir && $configure $*)
|
||||||
else
|
else
|
||||||
(cd $basedir && $autogen "$*")
|
(cd $basedir && $autogen $*)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||||
<title>Getting started with the LiveSupport development environment</title>
|
<title>Getting started with the LiveSupport development environment</title>
|
||||||
<meta content="$Author: sebastian $" name="author">
|
<meta content="$Author: maroy $" name="author">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Preface</h1>
|
<h1>Preface</h1>
|
||||||
|
@ -12,8 +12,8 @@ project, Copyright © 2004 <a href="http://www.mdlf.org/">Media
|
||||||
Development Loan Fund</a>, under the GNU <a
|
Development Loan Fund</a>, under the GNU <a
|
||||||
href="http://www.gnu.org/licenses/gpl.html">GPL</a>.<br>
|
href="http://www.gnu.org/licenses/gpl.html">GPL</a>.<br>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Author: $Author: sebastian $</li>
|
<li>Author: $Author: maroy $</li>
|
||||||
<li>Version: $Revision: 1.18 $</li>
|
<li>Version: $Revision: 1.19 $</li>
|
||||||
<li>Location: $Source:
|
<li>Location: $Source:
|
||||||
/home/cvs/livesupport/doc/gettingStarted.html,v $</li>
|
/home/cvs/livesupport/doc/gettingStarted.html,v $</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -103,32 +103,16 @@ This will check out and create the LiveSupport development <a
|
||||||
href="developmentEnvironment/directoryStructure.html">directory
|
href="developmentEnvironment/directoryStructure.html">directory
|
||||||
structure</a>.<br>
|
structure</a>.<br>
|
||||||
<h2>Configure the environment</h2>
|
<h2>Configure the environment</h2>
|
||||||
|
The development environment is most easily set up by running the
|
||||||
|
following script:<br>
|
||||||
|
<br>
|
||||||
The development environment as to be configured with an autoconf-style
|
The development environment as to be configured with an autoconf-style
|
||||||
configure script. To do this, simply type:<br>
|
configure script. To do this, simply type:<br>
|
||||||
<pre><code><br></code><code>cd livesupport<br></code><code>./configure<br></code></pre>
|
<pre><code><br></code><code>cd livesupport<br></code><code>./bin/setupDeveopmentEnvironment.sh<br></code></pre>
|
||||||
after checking out the sources.<br>
|
|
||||||
<h2>Set up tools</h2>
|
|
||||||
LiveSupport uses widely available tools for development, like the GNU
|
|
||||||
C++ compiler, but also uses more specific tools. As these tools, or the
|
|
||||||
exact versions of these tools are not expected to be installed on the
|
|
||||||
development system, the LiveSupport development environment contains
|
|
||||||
them. The tools are installed into the <code>livesupport/usr</code>
|
|
||||||
directory, as described in the directory structure document.<br>
|
|
||||||
<br>
|
<br>
|
||||||
Moreover, some components in livesupport have to be set up prior to
|
This script will set up the libraries used by LiveSupport (by compiling
|
||||||
compilation, for example running autoconf or similar configuration
|
and installing them under livesupport/usr), and set up the development
|
||||||
programs. This ensures that the components compile fine on the
|
environment for all LiveSupport modules.<br>
|
||||||
development system.<br>
|
|
||||||
<br>
|
|
||||||
To achieve all these goals, invoke the target <code>setup</code> in
|
|
||||||
the main <code>Makefile</code>, at the root of the LiveSupport
|
|
||||||
directory structure, by issuing the following command in the
|
|
||||||
livesupport directory:<br>
|
|
||||||
<pre><code><br>make setup<br><br></code></pre>
|
|
||||||
The execution of this command will take a while, as all the supporting
|
|
||||||
libraries and tools are compiled and installed to the <code>livesupport/usr</code>
|
|
||||||
directory. Please note that nothing is installed outside of the
|
|
||||||
LiveSupport directory structure.<br>
|
|
||||||
<h2>Personalize your LiveSupport development environment</h2>
|
<h2>Personalize your LiveSupport development environment</h2>
|
||||||
The LiveSupport development environment can be run in two ways: either
|
The LiveSupport development environment can be run in two ways: either
|
||||||
only one developer actively doing LiveSupport development on the
|
only one developer actively doing LiveSupport development on the
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||||
<title>LiveSupport installation documentation</title>
|
<title>LiveSupport installation documentation</title>
|
||||||
<meta content="$Author: fgerlits $" name="author">
|
<meta content="$Author: maroy $" name="author">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Preface</h1>
|
<h1>Preface</h1>
|
||||||
|
@ -12,8 +12,8 @@ project, Copyright © 2004 <a href="http://www.mdlf.org/">Media
|
||||||
Development Loan Fund</a>, under the GNU <a
|
Development Loan Fund</a>, under the GNU <a
|
||||||
href="http://www.gnu.org/licenses/gpl.html">GPL</a>.<br>
|
href="http://www.gnu.org/licenses/gpl.html">GPL</a>.<br>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Author: $Author: fgerlits $</li>
|
<li>Author: $Author: maroy $</li>
|
||||||
<li>Version: $Revision: 1.10 $</li>
|
<li>Version: $Revision: 1.11 $</li>
|
||||||
<li>Location: $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/doc/install.html,v $</li>
|
<li>Location: $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/doc/install.html,v $</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h1>Scope</h1>
|
<h1>Scope</h1>
|
||||||
|
@ -36,9 +36,9 @@ Those who think they know everything, the quick steps to install
|
||||||
LiveSupport are (make sure to run at least the <code>./bin/install.sh</code>
|
LiveSupport are (make sure to run at least the <code>./bin/install.sh</code>
|
||||||
script as root):<br>
|
script as root):<br>
|
||||||
<br>
|
<br>
|
||||||
<pre><code>wget </code><code></code><code>http://livesupport.campware.org/look/campware</code><code>/download/livesupport-<version>.tar.bz2<br></code><code>wget </code><code></code><code>http://livesupport.campware.org/look/campware</code><code>/download/livesupport-libraries-<version>.tar.bz2<br>tar xfj livesupport-<version>.tar.bz2<br></code><code>tar xfj livesupport-libraries-<version>.tar.bz2<br>cd livesupport-<version><br>./configure<br>make setup && make compile<br>./bin/install.sh -d /usr/local/livesupport -g apache -r /var/www<br>/usr/local/livesupport/bin/scheduler.sh start<br></code></pre>
|
<pre><code>wget </code><code></code><code>http://livesupport.campware.org/look/campware</code><code>/download/livesupport-<version>.tar.bz2<br></code><code>wget </code><code></code><code>http://livesupport.campware.org/look/campware</code><code>/download/livesupport-libraries-<version>.tar.bz2<br>tar xfj livesupport-<version>.tar.bz2<br></code><code>tar xfj livesupport-libraries-<version>.tar.bz2<br>cd livesupport-<version><br>./configure </code><code>--with-prefix=/usr/local/livesupport --with-apache-group=apache --with-www-docroot=/var/www</code><code><br>make<br>make install<br>/usr/local/livesupport/bin/scheduler.sh start<br></code></pre>
|
||||||
<br>
|
<br>
|
||||||
Then try the URL <code>http://localhost/livesupport/htmlUI/var/html/ </code>,
|
Then try the URL <code>http://localhost/livesupport/ </code>,
|
||||||
and log in using username: <code>root</code>, password: <code>q</code>.<br>
|
and log in using username: <code>root</code>, password: <code>q</code>.<br>
|
||||||
<br>
|
<br>
|
||||||
Everyone else, please read the lines below carefully.<br>
|
Everyone else, please read the lines below carefully.<br>
|
||||||
|
@ -145,7 +145,7 @@ on in this document, this group will be referred to as <code><apache-group>
|
||||||
Also note the document root directory for your apache installation
|
Also note the document root directory for your apache installation
|
||||||
(usually <code>/var/www</code> or <code>/var/www/htdocs</code>
|
(usually <code>/var/www</code> or <code>/var/www/htdocs</code>
|
||||||
or <code>/var/www/<yourhost>/htdocs</code>). Later on in this
|
or <code>/var/www/<yourhost>/htdocs</code>). Later on in this
|
||||||
document, this directory will be reffered to as <code><www-root></code>.<br>
|
document, this directory will be referred to as <code><www-root></code>.<br>
|
||||||
<h1>Obtaining LiveSupport sources</h1>
|
<h1>Obtaining LiveSupport sources</h1>
|
||||||
LiveSupport sources come in two different tarballs:<br>
|
LiveSupport sources come in two different tarballs:<br>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -156,8 +156,10 @@ LiveSupport source files<code><br>
|
||||||
external libraries used by LiveSupport<code><br>
|
external libraries used by LiveSupport<code><br>
|
||||||
</code></li>
|
</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
Both files can be downloaded from <a href="http://sourceforge.net/projects/livesupport/"><code>http://sourceforge.net/projects/livesupport/</code></a>.
|
Both files can be downloaded from <a
|
||||||
<br><br>
|
href="http://sourceforge.net/projects/livesupport/"><code>http://sourceforge.net/projects/livesupport/</code></a>.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
After downloading the files, untar them in the same directory:<br>
|
After downloading the files, untar them in the same directory:<br>
|
||||||
<br>
|
<br>
|
||||||
<pre><code>tar xfj livesupport-<version>.tar.bz2<br>tar xfj livesupport-libraries-<version>.tar.bz2<br></code></pre>
|
<pre><code>tar xfj livesupport-<version>.tar.bz2<br>tar xfj livesupport-libraries-<version>.tar.bz2<br></code></pre>
|
||||||
|
@ -169,61 +171,49 @@ LiveSupport.<br>
|
||||||
To compile LiveSupport, enter the LiveSupport directory, and execute
|
To compile LiveSupport, enter the LiveSupport directory, and execute
|
||||||
the following commands:<br>
|
the following commands:<br>
|
||||||
<br>
|
<br>
|
||||||
<pre><code>cd livesupport-<version><br>./configure<br>make setup && make compile<br></code></pre>
|
<pre><code>cd livesupport-<version><br>./configure </code><code>--with-prefix=/usr/local/livesupport --with-apache-group=apache --with-www-docroot=/var/www<br></code><code>make<br></code></pre>
|
||||||
<br>
|
<br>
|
||||||
This will take quite a while, so go have a tea, watch a movie, relax,
|
The configure options used above are the options most probably used:<br>
|
||||||
etc.<br>
|
|
||||||
<h1>Installing LiveSupport<br>
|
|
||||||
</h1>
|
|
||||||
After a successful compilation, to install LiveSupport, you have to
|
|
||||||
decide which directory you want LiveSupport installed into. This
|
|
||||||
directory will be referred to as <code><ls-installdir></code>
|
|
||||||
later on in this document.<br>
|
|
||||||
<br>
|
<br>
|
||||||
The installation is done using the <code>bin/install.sh</code> script
|
<pre><code> --prefix=PREFIX install architecture-independent files in PREFIX<br> [/usr/local]</code></pre>
|
||||||
found in the LiveSupport base directory. This script has to be run as <code>root</code>.
|
The installation directory. Supply the previously
|
||||||
To see the possible options to the script, invoke it with the <code>--help</code>
|
|
||||||
parameter. A brief overview of the most frequently used parameters:<br>
|
|
||||||
<br>
|
|
||||||
<pre><code> -d, --directory The installation directory, required.<br><br></code></pre>
|
|
||||||
The installation directory, a required parameter. Supply the previously
|
|
||||||
decided LiveSupport installation directory here, <code><ls-installdir></code>
|
decided LiveSupport installation directory here, <code><ls-installdir></code>
|
||||||
(as mentioned above). A sensible value to use here is <code>/usr/local/livesupport</code>.<br>
|
(as mentioned above). A sensible value to use here is <code>/usr/local/livesupport</code>.<br>
|
||||||
<pre><code><br> -g, --apache-group The group the apache daemon runs as.<br> [default: apache]<br><br></code></pre>
|
<pre><code><br> --with-apache-group use apache running in the specified group (apache)<br><br></code></pre>
|
||||||
The user group the apache web server daemon runs at (see the section
|
The user group the apache web server daemon runs at (see the section
|
||||||
above on installing apache). Supply the <code><apache-group></code>
|
above on installing apache). Supply the <code><apache-group></code>
|
||||||
value here, as mentioned above, which is usually either <code>apache</code>
|
value here, as mentioned above, which is usually either <code>apache</code>
|
||||||
or <code>www-data</code>.<br>
|
or <code>www-data</code>.<br>
|
||||||
<br>
|
<br>
|
||||||
<pre> -r, --www-root The root directory for web documents served<br> by apache [default: /var/www]<br><br></pre>
|
<pre> --with-www-docroot deploy LiveSupport under the specified docroot<br> (/var/www)<br><br></pre>
|
||||||
The document root of your apache installation (see the section above on
|
The document root of your apache installation (see the section above on
|
||||||
installing apache). Supply the <code><www-root></code>
|
installing apache). Supply the <code><www-root></code>
|
||||||
value here, as mentioned above, which is usually <code>/var/www</code>
|
value here, as mentioned above, which is usually <code>/var/www</code>
|
||||||
or <code>/var/www/htdocs</code>
|
or <code>/var/www/htdocs</code>
|
||||||
or <code>/var/www/<yourhost>/htdocs.</code>
|
or <code>/var/www/<yourhost>/htdocs.</code>
|
||||||
<pre><code><br> -H, --host The fully qualified host name of the system<br> [default: guess].<br></code><br></pre>
|
<span style="font-family: monospace;"><br>
|
||||||
The fully qualified domain name of your system. If the install script
|
|
||||||
cannot determine your host name correctly, please supply the FQDN via
|
|
||||||
this parameter.<br>
|
|
||||||
<br>
|
<br>
|
||||||
Thus a typical invocation of the install script is the following:<br>
|
</span>Compilation will take quite a while, so go have a tea, watch a
|
||||||
|
movie, relax,
|
||||||
|
etc.<br>
|
||||||
<br>
|
<br>
|
||||||
<pre><code>./bin/install.sh -d <ls-installdir> -g <apache-group> -r <www-root></code><br></pre>
|
If you want the installation script to create the database tables used
|
||||||
|
by LiveSupport, consider using the following configure options:<br>
|
||||||
<br>
|
<br>
|
||||||
The install script has more options, which enable you to customize your
|
<pre> --with-create-database specify whether the LiveSupport database and database<br> user should be created (no)<br> --with-create-odbc-data-source<br> specify whether the ODBC data source for LiveSupport<br> should be created (no)<br> --with-init-database specify whether the LiveSupport database tables<br> should be initialized (no)<br> --with-configure-apache specify whether apache should be configured for<br> LiveSupport through its conf.d directory (no)<br><br><br></pre>
|
||||||
installation of LiveSupport. Note that the defaults are usually quite
|
For a full list of options, see <code>./configure --help</code><br>
|
||||||
sensible values, which will create the following setup:<br>
|
<h1>Installing LiveSupport<br>
|
||||||
|
</h1>
|
||||||
|
After a successful compilation, to install LiveSupport, you can install
|
||||||
|
LiveSupport by typing:<br>
|
||||||
|
<br>
|
||||||
|
<pre><code>make install</code><br></pre>
|
||||||
|
<br>
|
||||||
|
This will install LiveSupport into the directory specified to the
|
||||||
|
configure script. It will also create necessary database tables,
|
||||||
|
depending on the invocation of the configure script. Most probably you
|
||||||
|
will have to run make install as root.<br>
|
||||||
<br>
|
<br>
|
||||||
<ul>
|
|
||||||
<li>a PostgreSQL database user named <code>livesupport</code>, with
|
|
||||||
password <code>livesupport</code>.</li>
|
|
||||||
<li>a PostgreSQL database named <code>LiveSupport</code>.</li>
|
|
||||||
<li>an ODBC data source named <code>LiveSupport</code>, connecting
|
|
||||||
to the database of the same name.</li>
|
|
||||||
<li>initialize the database with appropriate tables</li>
|
|
||||||
<li>create a symlink into your apache root to point to <code><ls-installdir>/var</code>.<br>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<h1>Try it out</h1>
|
<h1>Try it out</h1>
|
||||||
After a successful installation, the LiveSupport scheduler has to be
|
After a successful installation, the LiveSupport scheduler has to be
|
||||||
started. The scheduler has a System V runlevel-style startup script,
|
started. The scheduler has a System V runlevel-style startup script,
|
||||||
|
@ -235,7 +225,7 @@ simply invoke:<br>
|
||||||
The only thing left to do is to try out the LiveSupport web interface
|
The only thing left to do is to try out the LiveSupport web interface
|
||||||
or the GUI application.<br>
|
or the GUI application.<br>
|
||||||
<br>
|
<br>
|
||||||
For the web interface, point your browser to the following URL: <code>http://<yourhost>/livesupport/htmlUI/var/html/</code>
|
For the web interface, point your browser to the following URL: <code>http://<yourhost>/livesupport/</code>
|
||||||
.<br>
|
.<br>
|
||||||
<br>
|
<br>
|
||||||
The GUI application can be started by issuing the following command:<br>
|
The GUI application can be started by issuing the following command:<br>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.10 $
|
# Version : $Revision: 1.11 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/etc/Makefile.in,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -49,6 +49,25 @@ COVERAGE_DIR = ${DOC_DIR}/coverage
|
||||||
ETC_DIR = ${BASE_DIR}/etc
|
ETC_DIR = ${BASE_DIR}/etc
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
|
||||||
|
prefix = @prefix@
|
||||||
|
|
||||||
|
HOSTNAME = @HOSTNAME@
|
||||||
|
APACHE_GROUP = @APACHE_GROUP@
|
||||||
|
WWW_DOCROOT = @WWW_DOCROOT@
|
||||||
|
WWW_PORT = @WWW_PORT@
|
||||||
|
SCHEDULER_PORT = @SCHEDULER_PORT@
|
||||||
|
DB_SERVER = @DB_SERVER@
|
||||||
|
DATABASE = @DATABASE@
|
||||||
|
DB_USER = @DB_USER@
|
||||||
|
DB_PASSWORD = @DB_PASSWORD@
|
||||||
|
STATION_AUDIO_OUT = "@STATION_AUDIO_OUT@"
|
||||||
|
STUDIO_AUDIO_OUT = "@STUDIO_AUDIO_OUT@"
|
||||||
|
STUDIO_AUDIO_CUE = "@STUDIO_AUDIO_CUE@"
|
||||||
|
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH=${prefix}/lib
|
||||||
|
export PKG_CONFIG_PATH=${prefix}/lib/pkgconfig
|
||||||
|
|
||||||
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
||||||
XMLRPC-DOXYGEN_CONFIG = ${ETC_DIR}/xmlrpc-doxygen.config
|
XMLRPC-DOXYGEN_CONFIG = ${ETC_DIR}/xmlrpc-doxygen.config
|
||||||
|
|
||||||
|
@ -102,7 +121,11 @@ PLAYLIST_EXECUTOR_DIR = ${MODULES_DIR}/playlistExecutor
|
||||||
EVENT_SCHEDULER_DIR = ${MODULES_DIR}/eventScheduler
|
EVENT_SCHEDULER_DIR = ${MODULES_DIR}/eventScheduler
|
||||||
SCHEDULER_CLIENT_DIR = ${MODULES_DIR}/schedulerClient
|
SCHEDULER_CLIENT_DIR = ${MODULES_DIR}/schedulerClient
|
||||||
WIDGETS_DIR = ${MODULES_DIR}/widgets
|
WIDGETS_DIR = ${MODULES_DIR}/widgets
|
||||||
|
ALIB_DIR = ${MODULES_DIR}/alib
|
||||||
ARCHIVE_SERVER_DIR = ${MODULES_DIR}/archiveServer
|
ARCHIVE_SERVER_DIR = ${MODULES_DIR}/archiveServer
|
||||||
|
GETID3_DIR = ${MODULES_DIR}/getid3
|
||||||
|
HTML_UI_DIR = ${MODULES_DIR}/htmlUI
|
||||||
|
STORAGE_ADMIN_DIR = ${MODULES_DIR}/storageAdmin
|
||||||
STORAGE_SERVER_DIR = ${MODULES_DIR}/storageServer
|
STORAGE_SERVER_DIR = ${MODULES_DIR}/storageServer
|
||||||
|
|
||||||
PRODUCTS_DIR = ${BASE_DIR}/products
|
PRODUCTS_DIR = ${BASE_DIR}/products
|
||||||
|
@ -116,23 +139,25 @@ GLIVESUPPORT_DIR = ${PRODUCTS_DIR}/gLiveSupport
|
||||||
.PHONY: all doc clean docclean depclean distclean doxygen testresults
|
.PHONY: all doc clean docclean depclean distclean doxygen testresults
|
||||||
.PHONY: setup tools_setup doxytag_setup modules_setup products_setup
|
.PHONY: setup tools_setup doxytag_setup modules_setup products_setup
|
||||||
|
|
||||||
all: printusage
|
all: setup compile
|
||||||
|
|
||||||
printusage:
|
help:
|
||||||
${ECHO} "LiveSupport project main Makefile"
|
${ECHO} "LiveSupport project main Makefile"
|
||||||
${ECHO} "http://livesupport.campware.org/"
|
${ECHO} "http://livesupport.campware.org/"
|
||||||
${ECHO} "Copyright (c) 2004 Media Development Loan Fund under the GNU GPL"
|
${ECHO} "Copyright (c) 2004 Media Development Loan Fund under the GNU GPL"
|
||||||
${ECHO} ""
|
${ECHO} ""
|
||||||
${ECHO} "Useful targets for this makefile:"
|
${ECHO} "Useful targets for this makefile:"
|
||||||
${ECHO} " setup - set up the development environment"
|
${ECHO} " all - set up and compile everthing"
|
||||||
|
${ECHO} " install - install everything"
|
||||||
${ECHO} " doc - build autogenerated documentation"
|
${ECHO} " doc - build autogenerated documentation"
|
||||||
${ECHO} " doxygen - build autogenerated doxygen documentation only"
|
|
||||||
${ECHO} ""
|
|
||||||
${ECHO} "Some less frequently used targets:"
|
|
||||||
${ECHO} " compile - compile all modules"
|
|
||||||
${ECHO} " recompile - recompile all modules"
|
|
||||||
${ECHO} " clean - clean all modules"
|
${ECHO} " clean - clean all modules"
|
||||||
${ECHO} " check - check all modules"
|
${ECHO} " check - check all modules"
|
||||||
|
${ECHO} ""
|
||||||
|
${ECHO} "Some less frequently used targets:"
|
||||||
|
${ECHO} " setup - set up the development environment"
|
||||||
|
${ECHO} " doxygen - build autogenerated doxygen documentation only"
|
||||||
|
${ECHO} " compile - compile all modules"
|
||||||
|
${ECHO} " recompile - recompile all modules"
|
||||||
|
|
||||||
doc: doxygen testresults flawfinder
|
doc: doxygen testresults flawfinder
|
||||||
|
|
||||||
|
@ -163,6 +188,8 @@ clean:
|
||||||
${RMDIR} ${DOXYGEN_DIR}/html
|
${RMDIR} ${DOXYGEN_DIR}/html
|
||||||
${RMDIR} ${COVERAGE_DIR}/*
|
${RMDIR} ${COVERAGE_DIR}/*
|
||||||
${RM} ${TMP_DIR}/*.stamp
|
${RM} ${TMP_DIR}/*.stamp
|
||||||
|
${RM} ${TMP_DIR}/ac* ${TMP_DIR}/config* ${TMP_DIR}/install-sh
|
||||||
|
${RMDIR} ${TMP_DIR}/auto*
|
||||||
|
|
||||||
setup: ${TMP_DIR}/setup.stamp
|
setup: ${TMP_DIR}/setup.stamp
|
||||||
${TMP_DIR}/setup.stamp: tools_setup doxytag_setup modules_setup products_setup
|
${TMP_DIR}/setup.stamp: tools_setup doxytag_setup modules_setup products_setup
|
||||||
|
@ -172,21 +199,85 @@ recompile: distclean modules_setup products_setup compile
|
||||||
|
|
||||||
tools_setup: ${TMP_DIR}/tools_setup.stamp
|
tools_setup: ${TMP_DIR}/tools_setup.stamp
|
||||||
${TMP_DIR}/tools_setup.stamp:
|
${TMP_DIR}/tools_setup.stamp:
|
||||||
${BOOST_DIR}/${BOOST_VERSION}/bin/install.sh
|
cd ${CXXUNIT_DIR}/${CXXUNIT_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
${CXXUNIT_DIR}/${CXXUNIT_VERSION}/bin/install.sh
|
${MAKE} -C ${CXXUNIT_DIR}/${CXXUNIT_VERSION} install
|
||||||
${LIBODBCXX_DIR}/${LIBODBCXX_VERSION}/bin/install.sh
|
|
||||||
${XMLRPCXX_DIR}/${XMLRPCXX_VERSION}/bin/install.sh
|
ifeq ("@BOOST_DATE_TIME_LIB@","")
|
||||||
${LCOV_DIR}/${LCOV_VERSION}/bin/install.sh
|
cd ${BOOST_DIR}/${BOOST_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
${GTK_DIR}/${GTK_VERSION}/bin/install.sh
|
${MAKE} -C ${BOOST_DIR}/${BOOST_VERSION} install
|
||||||
${GTKMM_DIR}/${GTKMM_VERSION}/bin/install.sh
|
endif
|
||||||
${GSTREAMER_DIR}/${GSTREAMER_VERSION}/bin/install.sh
|
|
||||||
${LIBXMLXX_DIR}/${LIBXMLXX_VERSION}/bin/install.sh
|
cd ${CXXUNIT_DIR}/${CXXUNIT_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
${ICU_DIR}/${ICU_VERSION}/bin/install.sh
|
${MAKE} -C ${CXXUNIT_DIR}/${CXXUNIT_VERSION} install
|
||||||
${CURL_DIR}/${CURL_VERSION}/bin/install.sh
|
|
||||||
${TAGLIB_DIR}/${TAGLIB_VERSION}/bin/install.sh
|
cd ${LIBODBCXX_DIR}/${LIBODBCXX_VERSION} && \
|
||||||
# ${PEAR_DIR}/bin/install.sh
|
bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${LIBODBCXX_DIR}/${LIBODBCXX_VERSION} install
|
||||||
|
|
||||||
|
cd ${XMLRPCXX_DIR}/${XMLRPCXX_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${XMLRPCXX_DIR}/${XMLRPCXX_VERSION} install
|
||||||
|
|
||||||
|
cd ${LCOV_DIR}/${LCOV_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${LCOV_DIR}/${LCOV_VERSION} install
|
||||||
|
|
||||||
|
ifeq ("@GTK_CFLAGS@","")
|
||||||
|
cd ${GTK_DIR}/${GTK_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${GTK_DIR}/${GTK_VERSION} install
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ("@GTKMM_CFLAGS@","")
|
||||||
|
cd ${GTKMM_DIR}/${GTKMM_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${GTKMM_DIR}/${GTKMM_VERSION} install
|
||||||
|
endif
|
||||||
|
|
||||||
|
cd ${GSTREAMER_DIR}/${GSTREAMER_VERSION} && \
|
||||||
|
bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${GSTREAMER_DIR}/${GSTREAMER_VERSION} install
|
||||||
|
|
||||||
|
ifeq ("@LIBXMLPP_CFLAGS@","")
|
||||||
|
cd ${LIBXMLXX_DIR}/${LIBXMLXX_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${LIBXMLXX_DIR}/${LIBXMLXX_VERSION} install
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ("@ICU_CFLAGS@","")
|
||||||
|
cd ${ICU_DIR}/${ICU_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${ICU_DIR}/${ICU_VERSION} install
|
||||||
|
endif
|
||||||
|
|
||||||
|
cd ${CURL_DIR}/${CURL_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${CURL_DIR}/${CURL_VERSION} install
|
||||||
|
|
||||||
|
cd ${TAGLIB_DIR}/${TAGLIB_VERSION} && bin/autogen.sh --prefix=${prefix}
|
||||||
|
${MAKE} -C ${TAGLIB_DIR}/${TAGLIB_VERSION} install
|
||||||
|
|
||||||
touch ${TMP_DIR}/tools_setup.stamp
|
touch ${TMP_DIR}/tools_setup.stamp
|
||||||
|
|
||||||
|
tools_distclean:
|
||||||
|
-${MAKE} -C ${CXXUNIT_DIR}/${CXXUNIT_VERSION} distclean
|
||||||
|
ifeq ("@BOOST_DATE_TIME_LIB@","")
|
||||||
|
-${MAKE} -C ${BOOST_DIR}/${BOOST_VERSION} distclean
|
||||||
|
endif
|
||||||
|
-${MAKE} -C ${CXXUNIT_DIR}/${CXXUNIT_VERSION} distclean
|
||||||
|
-${MAKE} -C ${LIBODBCXX_DIR}/${LIBODBCXX_VERSION} distclean
|
||||||
|
-${MAKE} -C ${XMLRPCXX_DIR}/${XMLRPCXX_VERSION} distclean
|
||||||
|
-${MAKE} -C ${LCOV_DIR}/${LCOV_VERSION} distclean
|
||||||
|
ifeq ("@GTK_CFLAGS@","")
|
||||||
|
-${MAKE} -C ${GTK_DIR}/${GTK_VERSION} distclean
|
||||||
|
endif
|
||||||
|
ifeq ("@GTKMM_CFLAGS@","")
|
||||||
|
-${MAKE} -C ${GTKMM_DIR}/${GTKMM_VERSION} distclean
|
||||||
|
endif
|
||||||
|
-${MAKE} -C ${GSTREAMER_DIR}/${GSTREAMER_VERSION} distclean
|
||||||
|
ifeq ("@LIBXMLPP_CFLAGS@","")
|
||||||
|
-${MAKE} -C ${LIBXMLXX_DIR}/${LIBXMLXX_VERSION} distclean
|
||||||
|
endif
|
||||||
|
ifeq ("@ICU_CFLAGS@","")
|
||||||
|
-${MAKE} -C ${ICU_DIR}/${ICU_VERSION} distclean
|
||||||
|
endif
|
||||||
|
-${MAKE} -C ${CURL_DIR}/${CURL_VERSION} distclean
|
||||||
|
-${MAKE} -C ${TAGLIB_DIR}/${TAGLIB_VERSION} distclean
|
||||||
|
${RM} ${TMP_DIR}/tools_setup.stamp
|
||||||
|
|
||||||
doxytag_setup: ${TMP_DIR}/doxytag_setup.stamp
|
doxytag_setup: ${TMP_DIR}/doxytag_setup.stamp
|
||||||
${TMP_DIR}/doxytag_setup.stamp:
|
${TMP_DIR}/doxytag_setup.stamp:
|
||||||
${DOXYTAG} -t ${TAGFILE} ${EXTERNAL_DOC_PAGES}
|
${DOXYTAG} -t ${TAGFILE} ${EXTERNAL_DOC_PAGES}
|
||||||
|
@ -194,26 +285,70 @@ ${TMP_DIR}/doxytag_setup.stamp:
|
||||||
|
|
||||||
modules_setup: ${TMP_DIR}/modules_setup.stamp
|
modules_setup: ${TMP_DIR}/modules_setup.stamp
|
||||||
${TMP_DIR}/modules_setup.stamp:
|
${TMP_DIR}/modules_setup.stamp:
|
||||||
${CORE_DIR}/bin/autogen.sh
|
cd ${ALIB_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
${AUTHENTICATION_DIR}/bin/autogen.sh
|
cd ${ARCHIVE_SERVER_DIR}/tmp && \
|
||||||
${DB_DIR}/bin/autogen.sh
|
./configure --prefix=${prefix} \
|
||||||
${STORAGE_DIR}/bin/autogen.sh
|
--with-hostname=${HOSTNAME} \
|
||||||
${GSTREAMER_ELEMENTS_DIR}/bin/autogen.sh
|
--with-www-port=${WWW_PORT} \
|
||||||
${PLAYLIST_EXECUTOR_DIR}/bin/autogen.sh
|
--with-database-server=${DB_SERVER} \
|
||||||
${EVENT_SCHEDULER_DIR}/bin/autogen.sh
|
--with-database=${DATABASE} \
|
||||||
${SCHEDULER_CLIENT_DIR}/bin/autogen.sh
|
--with-database-user=${DB_USER} \
|
||||||
${WIDGETS_DIR}/bin/autogen.sh
|
--with-database-password=${DB_PASSWORD}
|
||||||
# -${MAKE} -C ${ARCHIVE_SERVER_DIR} all
|
cd ${GETID3_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
# -${MAKE} -C ${STORAGE_SERVER_DIR} all
|
cd ${HTML_UI_DIR}/tmp && ./configure --prefix=${prefix} \
|
||||||
|
--with-apache-group=${APACHE_GROUP} \
|
||||||
|
--with-www-docroot=${WWW_DOCROOT} \
|
||||||
|
--with-configure-apache=yes
|
||||||
|
cd ${STORAGE_ADMIN_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${STORAGE_SERVER_DIR}/tmp && \
|
||||||
|
./configure --prefix=${prefix} \
|
||||||
|
--with-hostname=${HOSTNAME} \
|
||||||
|
--with-www-port=${WWW_PORT} \
|
||||||
|
--with-scheduler-port=${SCHEDULER_PORT} \
|
||||||
|
--with-database-server=${DB_SERVER} \
|
||||||
|
--with-database=${DATABASE} \
|
||||||
|
--with-database-user=${DB_USER} \
|
||||||
|
--with-database-password=${DB_PASSWORD} \
|
||||||
|
--with-init-database=yes
|
||||||
|
cd ${CORE_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${AUTHENTICATION_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${DB_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${STORAGE_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${GSTREAMER_ELEMENTS_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${PLAYLIST_EXECUTOR_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${EVENT_SCHEDULER_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${SCHEDULER_CLIENT_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
|
cd ${WIDGETS_DIR}/tmp && ./configure --prefix=${prefix}
|
||||||
touch ${TMP_DIR}/modules_setup.stamp
|
touch ${TMP_DIR}/modules_setup.stamp
|
||||||
|
|
||||||
products_setup: ${TMP_DIR}/products_setup.stamp
|
products_setup: ${TMP_DIR}/products_setup.stamp
|
||||||
${TMP_DIR}/products_setup.stamp:
|
${TMP_DIR}/products_setup.stamp:
|
||||||
${SCHEDULER_DIR}/bin/autogen.sh
|
cd ${SCHEDULER_DIR}/tmp && \
|
||||||
${GLIVESUPPORT_DIR}/bin/autogen.sh
|
./configure --prefix=${prefix} \
|
||||||
|
--with-hostname=${HOSTNAME} \
|
||||||
|
--with-www-port=${WWW_PORT} \
|
||||||
|
--with-scheduler-port=${SCHEDULER_PORT} \
|
||||||
|
--with-database-server=${DB_SERVER} \
|
||||||
|
--with-database=${DATABASE} \
|
||||||
|
--with-database-user=${DB_USER} \
|
||||||
|
--with-database-password=${DB_PASSWORD} \
|
||||||
|
--with-audio-out=${STATION_AUDIO_OUT} \
|
||||||
|
--with-create-odbc-data-source=yes \
|
||||||
|
--with-init-database=yes
|
||||||
|
cd ${GLIVESUPPORT_DIR}/tmp && \
|
||||||
|
./configure --prefix=${prefix} \
|
||||||
|
--with-hostname=${HOSTNAME} \
|
||||||
|
--with-www-port=${WWW_PORT} \
|
||||||
|
--with-scheduler-port=${SCHEDULER_PORT} \
|
||||||
|
--with-database-server=${DB_SERVER} \
|
||||||
|
--with-database=${DATABASE} \
|
||||||
|
--with-database-user=${DB_USER} \
|
||||||
|
--with-database-password=${DB_PASSWORD} \
|
||||||
|
--with-audio-out=${STUDIO_AUDIO_OUT} \
|
||||||
|
--with-audio-cue=${STUDIO_AUDIO_CUE}
|
||||||
touch ${TMP_DIR}/products_setup.stamp
|
touch ${TMP_DIR}/products_setup.stamp
|
||||||
|
|
||||||
distclean:
|
distclean: clean tools_distclean
|
||||||
${MAKE} -C ${CORE_DIR} distclean
|
${MAKE} -C ${CORE_DIR} distclean
|
||||||
${MAKE} -C ${AUTHENTICATION_DIR} distclean
|
${MAKE} -C ${AUTHENTICATION_DIR} distclean
|
||||||
${MAKE} -C ${DB_DIR} distclean
|
${MAKE} -C ${DB_DIR} distclean
|
||||||
|
@ -278,15 +413,37 @@ check:
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Installation related targets
|
# Installation related targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: install
|
.PHONY: install create_database install_modules install_products
|
||||||
|
|
||||||
INSTALL_COPY_EXE = ${BIN_DIR}/copyInstall.sh
|
install: setup compile create_database install_modules install_products
|
||||||
ifeq (${prefix},)
|
|
||||||
INSTALL_PREFIX = @prefix@
|
create_database:
|
||||||
else
|
ifeq (@CREATE_LS_DATABASE@,yes)
|
||||||
INSTALL_PREFIX = ${prefix}
|
${BIN_DIR}/createDatabase.sh --database=${DATABASE} \
|
||||||
|
--dbserver=${DB_SERVER} \
|
||||||
|
--dbuser=${DB_USER} \
|
||||||
|
--dbpassword=${DB_PASSWORD}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install: setup compile
|
install_modules:
|
||||||
${INSTALL_COPY_EXE} --directory ${INSTALL_PREFIX}
|
${MAKE} -C ${ALIB_DIR} install
|
||||||
|
${MAKE} -C ${ARCHIVE_SERVER_DIR} install
|
||||||
|
${MAKE} -C ${GETID3_DIR} install
|
||||||
|
${MAKE} -C ${HTML_UI_DIR} install
|
||||||
|
${MAKE} -C ${STORAGE_ADMIN_DIR} install
|
||||||
|
${MAKE} -C ${STORAGE_SERVER_DIR} install
|
||||||
|
${MAKE} -C ${CORE_DIR} install
|
||||||
|
${MAKE} -C ${AUTHENTICATION_DIR} install
|
||||||
|
${MAKE} -C ${DB_DIR} install
|
||||||
|
${MAKE} -C ${STORAGE_DIR} install
|
||||||
|
${MAKE} -C ${GSTREAMER_ELEMENTS_DIR} install
|
||||||
|
${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} install
|
||||||
|
${MAKE} -C ${EVENT_SCHEDULER_DIR} install
|
||||||
|
${MAKE} -C ${SCHEDULER_CLIENT_DIR} install
|
||||||
|
${MAKE} -C ${WIDGETS_DIR} install
|
||||||
|
|
||||||
|
install_products:
|
||||||
|
${MAKE} -C ${SCHEDULER_DIR} install
|
||||||
|
${MAKE} -C ${GLIVESUPPORT_DIR} install
|
||||||
|
|
||||||
|
|
||||||
|
|
204
livesupport/etc/acinclude.m4
Normal file
204
livesupport/etc/acinclude.m4
Normal file
|
@ -0,0 +1,204 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/etc/acinclude.m4,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Macro to check for available modules using pkg-conf
|
||||||
|
dnl
|
||||||
|
dnl usage:
|
||||||
|
dnl PKG_CHECK_MODULES(GSTUFF,[gtk+-2.0 >= 1.3], action-if, action-not)
|
||||||
|
dnl
|
||||||
|
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
||||||
|
dnl also defines GSTUFF_PKG_ERRORS on error
|
||||||
|
dnl
|
||||||
|
dnl This function was taken from the glade-- project
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([PKG_CHECK_MODULES], [
|
||||||
|
succeeded=no
|
||||||
|
|
||||||
|
if test -z "$PKG_CONFIG"; then
|
||||||
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$PKG_CONFIG" = "no" ; then
|
||||||
|
echo "*** The pkg-config script could not be found. Make sure it is"
|
||||||
|
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
||||||
|
echo "*** to the full path to pkg-config."
|
||||||
|
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
||||||
|
else
|
||||||
|
PKG_CONFIG_MIN_VERSION=0.9.0
|
||||||
|
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
||||||
|
AC_MSG_CHECKING(for $2)
|
||||||
|
|
||||||
|
if $PKG_CONFIG --exists "$2" ; then
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
succeeded=yes
|
||||||
|
|
||||||
|
AC_MSG_CHECKING($1_CFLAGS)
|
||||||
|
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
||||||
|
AC_MSG_RESULT($$1_CFLAGS)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING($1_LIBS)
|
||||||
|
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
||||||
|
AC_MSG_RESULT($$1_LIBS)
|
||||||
|
else
|
||||||
|
$1_CFLAGS=""
|
||||||
|
$1_LIBS=""
|
||||||
|
## If we have a custom action on failure, don't print errors, but
|
||||||
|
## do set a variable so people can do so.
|
||||||
|
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
||||||
|
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST($1_CFLAGS)
|
||||||
|
AC_SUBST($1_LIBS)
|
||||||
|
else
|
||||||
|
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
||||||
|
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $succeeded = yes; then
|
||||||
|
ifelse([$3], , :, [$3])
|
||||||
|
else
|
||||||
|
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Macro to check for a specific version of the ICU library
|
||||||
|
dnl
|
||||||
|
dnl usage:
|
||||||
|
dnl AC_CHECK_ICU(3.0, action-if-found, action-if-not-found)
|
||||||
|
dnl
|
||||||
|
dnl defines ICU_CFLAGS, ICU_CXXFLAGS and ICU_LIBS, see icu-config man page
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([AC_CHECK_ICU],
|
||||||
|
[
|
||||||
|
AC_PATH_PROG(ICU_CONFIG, icu-config, no)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for ICU library >= $1)
|
||||||
|
|
||||||
|
if test "$ICU_CONFIG" = "no" ; then
|
||||||
|
FAILED="true"
|
||||||
|
else
|
||||||
|
ICU_VERSION=`$ICU_CONFIG --version`
|
||||||
|
VERSION_CHECK=`expr $ICU_VERSION \\>\\= $1`
|
||||||
|
|
||||||
|
if test "$VERSION_CHECK" = "1" ; then
|
||||||
|
AC_MSG_RESULT([ICU version ICU_VERSION >= $1 found])
|
||||||
|
ICU_CFLAGS=`$ICU_CONFIG --cflags`
|
||||||
|
ICU_CXXFLAGS=`$ICU_CONFIG --cxxflags`
|
||||||
|
ICU_LDFLAGS=`$ICU_CONFIG --ldflags`
|
||||||
|
|
||||||
|
AC_SUBST(ICU_CFLAGS)
|
||||||
|
AC_SUBST(ICU_CXXFLAGS)
|
||||||
|
AC_SUBST(ICU_LDFLAGS)
|
||||||
|
|
||||||
|
dnl execute action-if-found
|
||||||
|
ifelse([$2], , :, [$2])
|
||||||
|
else
|
||||||
|
FAILED="true"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$FAILED" = "true" ; then
|
||||||
|
dnl execute action-if-not-found
|
||||||
|
ifelse([$3], , AC_MSG_ERROR([only insufficient version $ICU_VERSION < $1 of ICU library found]), [$3])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Macro to check for C++ namespaces
|
||||||
|
dnl for more information on this macro, see
|
||||||
|
dnl http://autoconf-archive.cryp.to/ac_cxx_namespaces.html
|
||||||
|
dnl
|
||||||
|
dnl usage:
|
||||||
|
dnl If the compiler can prevent names clashes using namespaces,
|
||||||
|
dnl define HAVE_NAMESPACES.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([AC_CXX_NAMESPACES],
|
||||||
|
[AC_CACHE_CHECK(whether the compiler implements namespaces,
|
||||||
|
ac_cv_cxx_namespaces,
|
||||||
|
[AC_LANG_SAVE
|
||||||
|
AC_LANG_CPLUSPLUS
|
||||||
|
AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}],
|
||||||
|
[using namespace Outer::Inner; return i;],
|
||||||
|
ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no)
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
])
|
||||||
|
if test "$ac_cv_cxx_namespaces" = yes; then
|
||||||
|
AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Macro to check for the boost datetime library.
|
||||||
|
dnl for more information on boost, see http://www.boost.org/
|
||||||
|
dnl for more information on this macro, see
|
||||||
|
dnl http://autoconf-archive.cryp.to/ax_boost_date-time.html
|
||||||
|
dnl
|
||||||
|
dnl usage:
|
||||||
|
dnl This macro checks to see if the Boost.DateTime library is installed.
|
||||||
|
dnl It also attempts to guess the currect library name using several attempts.
|
||||||
|
dnl It tries to build the library name using a user supplied name or suffix
|
||||||
|
dnl and then just the raw library.
|
||||||
|
dnl
|
||||||
|
dnl If the library is found, HAVE_BOOST_DATE_TIME is defined and
|
||||||
|
dnl BOOST_DATE_TIME_LIB is set to the name of the library.
|
||||||
|
dnl
|
||||||
|
dnl This macro calls AC_SUBST(BOOST_DATE_TIME_LIB).
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([AX_BOOST_DATE_TIME],
|
||||||
|
[AC_REQUIRE([AC_CXX_NAMESPACES])dnl
|
||||||
|
AC_CACHE_CHECK(whether the Boost::DateTime library is available,
|
||||||
|
ax_cv_boost_date_time,
|
||||||
|
[AC_LANG_SAVE
|
||||||
|
AC_LANG_CPLUSPLUS
|
||||||
|
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <boost/date_time/gregorian/gregorian_types.hpp>]],
|
||||||
|
[[using namespace boost::gregorian; date d(2002,Jan,10); return 0;]]),
|
||||||
|
ax_cv_boost_date_time=yes, ax_cv_boost_date_time=no)
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
])
|
||||||
|
if test "$ax_cv_boost_date_time" = yes; then
|
||||||
|
AC_DEFINE(HAVE_BOOST_DATE_TIME,,[define if the Boost::DateTime library is available])
|
||||||
|
dnl Now determine the appropriate file names
|
||||||
|
AC_ARG_WITH([boost-date-time],AS_HELP_STRING([--with-boost-date-time],
|
||||||
|
[specify the boost date-time library or suffix to use]),
|
||||||
|
[if test "x$with_boost_date_time" != "xno"; then
|
||||||
|
ax_date_time_lib=$with_boost_date_time
|
||||||
|
ax_boost_date_time_lib=boost_date_time-$with_boost_date_time
|
||||||
|
fi])
|
||||||
|
for ax_lib in $ax_date_time_lib $ax_boost_date_time_lib boost_date_time; do
|
||||||
|
AC_CHECK_LIB($ax_lib, main, [BOOST_DATE_TIME_LIB=$ax_lib break])
|
||||||
|
done
|
||||||
|
AC_SUBST(BOOST_DATE_TIME_LIB)
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.2 $
|
dnl Version : $Revision: 1.3 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -32,15 +32,415 @@ dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
dnl like atom4te cache directories, config.* files, etc. into the directory
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
dnl it is being run from. We clearly don't want these in our base directory.
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(LiveSupport, 0.9, bugs@campware.org)
|
AC_INIT(LiveSupport, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.2 $)
|
AC_REVISION($Revision: 1.3 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../products/scheduler/src/main.cxx)
|
AC_CONFIG_SRCDIR(../products/scheduler/src/main.cxx)
|
||||||
|
|
||||||
|
AC_PROG_CC()
|
||||||
AC_PROG_CXX()
|
AC_PROG_CXX()
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the LiveSupport database and user should be created
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(CREATE_LS_DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([create-database],
|
||||||
|
AC_HELP_STRING([--with-create-database],
|
||||||
|
[specify wether the LiveSupport database and database user
|
||||||
|
should be created (no)]),
|
||||||
|
[CREATE_LS_DATABASE=${withval}],
|
||||||
|
[CREATE_LS_DATABASE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([creating LiveSupport database: ${CREATE_LS_DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the ODBC data source should be created
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(CREATE_ODBC_DATA_SOURCE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([create-odbc-data-source],
|
||||||
|
AC_HELP_STRING([--with-create-odbc-data-source],
|
||||||
|
[specify wether the ODBC data source for LiveSupport should be
|
||||||
|
created (no)]),
|
||||||
|
[CREATE_ODBC_DATA_SOURCE=${withval}],
|
||||||
|
[CREATE_ODBC_DATA_SOURCE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([creating ODBC data source: ${CREATE_ODBC_DATA_SOURCE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the LiveSupport database tables should be initialized
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(INIT_LS_DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([init-database],
|
||||||
|
AC_HELP_STRING([--with-init-database],
|
||||||
|
[specify wether the LiveSupport database tables should be
|
||||||
|
initialized (no)]),
|
||||||
|
[INIT_LS_DATABASE=${withval}],
|
||||||
|
[INIT_LS_DATABASE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([initializing LiveSupport database: ${INIT_LS_DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether apache should be configured through it's conf.d directory
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(CONFIGURE_APACHE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([configure-apache],
|
||||||
|
AC_HELP_STRING([--with-configure-apache],
|
||||||
|
[specify wether apache should be configured for LiveSupport
|
||||||
|
through its conf.d directory (no)]),
|
||||||
|
[CONFIGURE_APACHE=${withval}],
|
||||||
|
[CONFIGURE_APACHE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([configure apache: ${CONFIGURE_APACHE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the FQDN
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(HOSTNAME)
|
||||||
|
|
||||||
|
AC_ARG_WITH([hostname],
|
||||||
|
AC_HELP_STRING([--with-hostname],
|
||||||
|
[use the specified hostname (guess)]),
|
||||||
|
[HOSTNAME=${withval}], [HOSTNAME=`hostname -f`])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using hostname: ${HOSTNAME}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify group in which apache is running
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(APACHE_GROUP)
|
||||||
|
|
||||||
|
AC_ARG_WITH([apache-group],
|
||||||
|
AC_HELP_STRING([--with-apache-group],
|
||||||
|
[use apache running in the specified group (apache)]),
|
||||||
|
[APACHE_GROUP=${withval}], [APACHE_GROUP=apache])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using apache group: ${APACHE_GROUP}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify web document root
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(WWW_DOCROOT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([www-docroot],
|
||||||
|
AC_HELP_STRING([--with-www-docroot],
|
||||||
|
[deploy LiveSupport under the specified docroot (/var/www)]),
|
||||||
|
[WWW_DOCROOT=${withval}], [WWW_DOCROOT=/var/www])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using www document root: ${WWW_DOCROOT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the web server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(WWW_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([www-port],
|
||||||
|
AC_HELP_STRING([--with-www-port],
|
||||||
|
[use the specified www port (80)]),
|
||||||
|
[WWW_PORT=${withval}], [WWW_PORT=80])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using www port: ${WWW_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the scheduler server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(SCHEDULER_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([scheduler-port],
|
||||||
|
AC_HELP_STRING([--with-scheduler-port],
|
||||||
|
[use the specified scheduler port (3344)]),
|
||||||
|
[SCHEDULER_PORT=${withval}], [SCHEDULER_PORT=3344])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using scheduler port: ${SCHEDULER_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server name
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_SERVER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-server],
|
||||||
|
AC_HELP_STRING([--with-database-server],
|
||||||
|
[use the specified database server (localhost)]),
|
||||||
|
[DB_SERVER=${withval}], [DB_SERVER=localhost])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server: ${DB_SERVER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl get the name of the LiveSupport database
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database],
|
||||||
|
AC_HELP_STRING([--with-database],
|
||||||
|
[the name of the postgresql database to use (LiveSupport)]),
|
||||||
|
[DATABASE=${withval}], [DATABASE=LiveSupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database: ${DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_USER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-user],
|
||||||
|
AC_HELP_STRING([--with-database-user],
|
||||||
|
[use the specified database server user (livesupport)]),
|
||||||
|
[DB_USER=${withval}], [DB_USER=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user: ${DB_USER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user password
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_PASSWORD)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-password],
|
||||||
|
AC_HELP_STRING([--with-database-password],
|
||||||
|
[use the specified database server user password (livesupport)]),
|
||||||
|
[DB_PASSWORD=${withval}], [DB_PASSWORD=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user password: ${DB_PASSWORD}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the audio output device for the scheduler
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(STATION_AUDIO_OUT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([station-audio-out],
|
||||||
|
AC_HELP_STRING([--with-station-audio-out],
|
||||||
|
[use the specified audio output device for the station,
|
||||||
|
either ALSA or OSS (plughw:0)]),
|
||||||
|
[STATION_AUDIO_OUT=${withval}], [STATION_AUDIO_OUT=plughw:0])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using audio output device for the station: ${STAITON_AUDIO_OUT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the audio output device for the studio
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(STUDIO_AUDIO_OUT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([studio-audio-out],
|
||||||
|
AC_HELP_STRING([--with-studio-audio-out],
|
||||||
|
[use the specified audio output device for the studio,
|
||||||
|
either ALSA or OSS (plughw:0)]),
|
||||||
|
[STUDIO_AUDIO_OUT=${withval}], [STUDIO_AUDIO_OUT=plughw:0])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using audio output device for studio: ${STUDIO_AUDIO_OUT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the audio output device for the studio for cueing
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(STUDIO_AUDIO_CUE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([studio-audio-cue],
|
||||||
|
AC_HELP_STRING([--with-studio-audio-cue],
|
||||||
|
[use the specified audio cue device for the studio,
|
||||||
|
either ALSA or OSS (plughw:0)]),
|
||||||
|
[STUDIO_AUDIO_CUE=${withval}], [STUDIO_AUDIO_CUE=plughw:0])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using audio cue device for studio: ${STUDIO_AUDIO_CUE}])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dnl unfortunately for both AC_CONFIG_COMMANDS and AC_CONFIG_SUBDIRS, the
|
||||||
|
dnl directories have to be literally included, so we can't use any
|
||||||
|
dnl fancy variables to avoid duplication of hard-coded values :(
|
||||||
|
|
||||||
|
|
||||||
|
dnl check for the boost library
|
||||||
|
AX_BOOST_DATE_TIME()
|
||||||
|
|
||||||
|
if test "$BOOST_DATE_TIME_LIB" = "" ; then
|
||||||
|
AC_MSG_RESULT([not found boost library of sufficient version, will compile from our own])
|
||||||
|
COMPILE_BOOST="yes"
|
||||||
|
else
|
||||||
|
COMPILE_BOOST="no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dnl check for gtk+ 2.6.1 or more recent
|
||||||
|
PKG_CHECK_MODULES(GTK,[gtk+-2.0 >= 2.6.1],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([using gtk+ found on the system])
|
||||||
|
COMPILE_GTK="no"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([not found gtk+ of sufficient version, will compile from our own])
|
||||||
|
COMPILE_GTK="yes"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl check for gtk-- 2.5.5 or more recent
|
||||||
|
PKG_CHECK_MODULES(GTKMM,[gtkmm-2.4 >= 2.5.5],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([using gtk-- found on the system])
|
||||||
|
COMPILE_GTKMM="no"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([not found gtk-- of sufficient version, will compile from our own])
|
||||||
|
COMPILE_GTKMM="yes"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl check for ICU 3.0 or more recent
|
||||||
|
AC_CHECK_ICU(3.0,
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([using ICU found on the system])
|
||||||
|
COMPILE_ICU="no"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([not found ICU of sufficient version, will compile from our own])
|
||||||
|
COMPILE_ICU="yes"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl check for libxml++ 2.8.1 or more recent
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([using libxml++ found on the system])
|
||||||
|
COMPILE_LIBXMLPP="no"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([not found libxml++ of sufficient version, will compile from our own])
|
||||||
|
COMPILE_LIBXMLPP="yes"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl set up the alib module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/alib/tmp/configure],
|
||||||
|
[../modules/alib/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the archive server module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/archiveServer/tmp/configure],
|
||||||
|
[../modules/archiveServer/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the getid3 module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/getid3/tmp/configure],
|
||||||
|
[../modules/getid3/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the htmlUI module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/htmlUI/tmp/configure],
|
||||||
|
[../modules/htmlUI/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the storage admin module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/storageAdmin/tmp/configure],
|
||||||
|
[../modules/storageAdmin/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the storage server module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/storageServer/tmp/configure],
|
||||||
|
[../modules/storageServer/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the core module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/core/tmp/configure],
|
||||||
|
[../modules/core/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the authentication module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/authentication/tmp/configure],
|
||||||
|
[../modules/authentication/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the db module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/db/tmp/configure],
|
||||||
|
[../modules/db/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the storage module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/storage/tmp/configure],
|
||||||
|
[../modules/storage/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the gstreamer elements module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/gstreamerElements/tmp/configure],
|
||||||
|
[../modules/gstreamerElements/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the playlist executor module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/playlistExecutor/tmp/configure],
|
||||||
|
[../modules/playlistExecutor/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the event scheduler module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/eventScheduler/tmp/configure],
|
||||||
|
[../modules/eventScheduler/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the scheduler client module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/schedulerClient/tmp/configure],
|
||||||
|
[../modules/schedulerClient/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the widgets module
|
||||||
|
AC_CONFIG_COMMANDS([../modules/widgets/tmp/configure],
|
||||||
|
[../modules/widgets/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the scheduler product
|
||||||
|
AC_CONFIG_COMMANDS([../products/scheduler/tmp/configure],
|
||||||
|
[../products/scheduler/bin/autogen.sh])
|
||||||
|
|
||||||
|
dnl set up the gLiveSupport product
|
||||||
|
AC_CONFIG_COMMANDS([../products/gLiveSupport/tmp/configure],
|
||||||
|
[../products/gLiveSupport/bin/autogen.sh])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dnl display status info on what libraries will get compiled
|
||||||
|
|
||||||
|
AC_MSG_NOTICE(
|
||||||
|
[compiling the following external libraries that are needed
|
||||||
|
by LiveSupport:
|
||||||
|
|
||||||
|
boost 1.31 ${COMPILE_BOOST}
|
||||||
|
cppunit 1.10.2 yes
|
||||||
|
curl 7.12.3 yes
|
||||||
|
gstreamer 0.8.10 yes
|
||||||
|
gtk+ 2.6.1 ${COMPILE_GTK}
|
||||||
|
gtk-- 2.5.5 ${COMPILE_GTKMM}
|
||||||
|
icu 3.0 ${COMPILE_ICU}
|
||||||
|
lcov 1.3 yes
|
||||||
|
libodbc++ 0.2.3 yes
|
||||||
|
libxml++ 2.8.1 ${COMPILE_LIBXMLPP}
|
||||||
|
taglib 1.3.1 yes
|
||||||
|
xmlrpc++ 2004-07-13 yes
|
||||||
|
|
||||||
|
|
||||||
|
using the following configuration settings:
|
||||||
|
|
||||||
|
hostname: ${HOSTNAME}
|
||||||
|
apache group: ${APACHE_GROUP}
|
||||||
|
www document root: ${WWW_DOCROOT}
|
||||||
|
www port: ${WWW_PORT}
|
||||||
|
scheduler port: ${SCHEDULER_PORT}
|
||||||
|
database server: ${DB_SERVER}
|
||||||
|
database name: ${DATABASE}
|
||||||
|
database user: ${DB_USER}
|
||||||
|
database user password: ${DB_PASSWORD}
|
||||||
|
station audio output device: ${STATION_AUDIO_OUT}
|
||||||
|
studio audio output device: ${STUDIO_AUDIO_OUT}
|
||||||
|
studio audio cue device: ${STUDIO_AUDIO_CUE}
|
||||||
|
creating LiveSupport database: ${CREATE_LS_DATABASE}
|
||||||
|
creating ODBC data source: ${CREATE_ODBC_DATA_SOURCE}
|
||||||
|
initialize LiveSupport database: ${INIT_LS_DATABASE}
|
||||||
|
configuring apache: ${CONFIGURE_APACHE}
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
|
||||||
AC_OUTPUT()
|
AC_OUTPUT()
|
||||||
|
|
||||||
|
|
101
livesupport/modules/alib/bin/autogen.sh
Executable file
101
livesupport/modules/alib/bin/autogen.sh
Executable file
|
@ -0,0 +1,101 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/alib/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="Alib"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
#ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
#echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
#cp -f ${configure_ac} ${tmpdir}
|
||||||
|
#cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
#aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
|
#echo " autoheader ${configure_ac}"
|
||||||
|
#autoheader ${configure_ac}
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
52
livesupport/modules/alib/configure
vendored
Executable file
52
livesupport/modules/alib/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/alib/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: tomas $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.2 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/alib/Attic/Makefile,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/alib/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -33,6 +33,8 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Misc
|
# Misc
|
||||||
|
@ -55,14 +57,15 @@ INCLUDE_DIR = ${BASE_DIR}/include
|
||||||
LIB_DIR = ${BASE_DIR}/lib
|
LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
|
|
||||||
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
||||||
|
|
||||||
PHP_DIR = ${BASE_DIR}/var
|
PHP_DIR = ${VAR_DIR}
|
||||||
TEST_RUNNER = ${PHP_DIR}/tests/index.php
|
TEST_RUNNER = ${PHP_DIR}/tests/index.php
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -84,11 +87,11 @@ TEST_RUNNER = ${PHP_DIR}/tests/index.php
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean dist db_init db_clean
|
.PHONY: all dir_setup doc clean docclean depclean distclean dist install
|
||||||
|
.PHONY: db_init db_clean
|
||||||
|
|
||||||
all: dir_setup db_init
|
all:
|
||||||
|
|
||||||
#dir_setup: ${TMP_DIR} ${DOXYGEN_DIR}
|
|
||||||
dir_setup: ${DOXYGEN_DIR}
|
dir_setup: ${DOXYGEN_DIR}
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
|
@ -112,11 +115,18 @@ distclean: clean docclean
|
||||||
# ${TEST_RUNNER}
|
# ${TEST_RUNNER}
|
||||||
check: all
|
check: all
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/alib/var
|
||||||
|
# ${MKDIR} ${USR_VAR_DIR}/LiveSupport/alib/var/xmlrpc
|
||||||
|
${CP} ${VAR_DIR}/*.php ${USR_VAR_DIR}/LiveSupport/alib/var
|
||||||
|
# ${CP} ${VAR_DIR}/xmlrpc/*.php ${USR_VAR_DIR}/LiveSupport/alib/var/xmlrpc
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# IMPORTANT: db_init and db_clean are commented out only for Livesupport,
|
# IMPORTANT: db_init and db_clean are commented out only for Livesupport,
|
||||||
# where alib is installed through storage modules
|
# where alib is initialized through storageServer module
|
||||||
|
|
||||||
db_init:
|
db_init:
|
||||||
# cd var/install; php -q install.php
|
# cd var/install; php -q install.php
|
45
livesupport/modules/alib/etc/configure.ac
Normal file
45
livesupport/modules/alib/etc/configure.ac
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/alib/etc/configure.ac,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl NOTE: Run all configure related scripts from the tmp directory of the
|
||||||
|
dnl project.
|
||||||
|
dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_INIT(Alib, 1.0, bugs@campware.org)
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(../var/alib.php)
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
AC_OUTPUT()
|
101
livesupport/modules/archiveServer/bin/autogen.sh
Executable file
101
livesupport/modules/archiveServer/bin/autogen.sh
Executable file
|
@ -0,0 +1,101 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="ArchiveServer"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
#ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
#echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
#cp -f ${configure_ac} ${tmpdir}
|
||||||
|
#cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
#aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
|
#echo " autoheader ${configure_ac}"
|
||||||
|
#autoheader ${configure_ac}
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
52
livesupport/modules/archiveServer/configure
vendored
Executable file
52
livesupport/modules/archiveServer/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# StorageServer - file storage component
|
# ArchiveServer - central archive component
|
||||||
# Copyright (c) 2004 Media Development Loan Fund
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
#
|
#
|
||||||
# This file is part of the LiveSupport project.
|
# This file is part of the LiveSupport project.
|
||||||
|
@ -19,9 +19,9 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: tomas $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.14 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/Attic/Makefile,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -33,12 +33,17 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
SED = sed
|
||||||
|
ECHO = echo
|
||||||
|
CAT = cat
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Misc
|
# Misc
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
MODULE_NAME = storageServer
|
MODULE_NAME = archiveServer
|
||||||
TAR_C = tar -cj --exclude CVS --exclude '*~' -C ${BASE_DIR} -f
|
TAR_C = tar -cj --exclude CVS --exclude '*~' -C ${BASE_DIR} -f
|
||||||
DIST_EXT = .tgz
|
DIST_EXT = .tgz
|
||||||
DATE = `date +%y%m%d`
|
DATE = `date +%y%m%d`
|
||||||
|
@ -55,14 +60,16 @@ INCLUDE_DIR = ${BASE_DIR}/include
|
||||||
LIB_DIR = ${BASE_DIR}/lib
|
LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
|
|
||||||
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
||||||
|
|
||||||
PHP_DIR = ${BASE_DIR}/var
|
PHP_DIR = ${VAR_DIR}
|
||||||
INSTALL_DIR = ${PHP_DIR}/install
|
INSTALL_DIR = ${PHP_DIR}/install
|
||||||
STOR_DIR = ${PHP_DIR}/stor
|
STOR_DIR = ${PHP_DIR}/stor
|
||||||
ACCESS_DIR = ${PHP_DIR}/access
|
ACCESS_DIR = ${PHP_DIR}/access
|
||||||
|
@ -70,8 +77,30 @@ TRANS_DIR = ${PHP_DIR}/trans
|
||||||
BUFF_DIR = ${STOR_DIR}/buffer
|
BUFF_DIR = ${STOR_DIR}/buffer
|
||||||
TEST_RUNNER = ${PHP_DIR}/xmlrpc/testRunner.sh
|
TEST_RUNNER = ${PHP_DIR}/xmlrpc/testRunner.sh
|
||||||
|
|
||||||
PEAR_INSTALLER = ${BASE_DIR}/../../tools/pear/bin/install.sh
|
DEST_DIR = ${USR_VAR_DIR}/LiveSupport/archiveServer/var
|
||||||
ROOT_PATH = ${BASE_DIR}/../..
|
|
||||||
|
HOSTNAME = @HOSTNAME@
|
||||||
|
WWW_PORT = @WWW_PORT@
|
||||||
|
DB_SERVER = @DB_SERVER@
|
||||||
|
DATABASE = @DATABASE@
|
||||||
|
DB_USER = @DB_USER@
|
||||||
|
DB_PASSWORD = @DB_PASSWORD@
|
||||||
|
|
||||||
|
PHP_URL_PREFIX=livesupport
|
||||||
|
|
||||||
|
USR_LIB_DIR_S=$(shell ${ECHO} ${USR_LIB_DIR} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
PHP_URL_PREFIX_S=$(shell ${ECHO} ${PHP_URL_PREFIX} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
|
||||||
|
REPLACE_SED_STRING="s/ls_lib_dir/${USR_LIB_DIR_S}/; \
|
||||||
|
s/ls_dbuser/${DB_USER}/; \
|
||||||
|
s/ls_dbpassword/${DB_PASSWORD}/; \
|
||||||
|
s/ls_dbserver/${DB_SERVER}/; \
|
||||||
|
s/ls_database/${DATABASE}/; \
|
||||||
|
s/ls_storageUrlPath/\/${PHP_URL_PREFIX_S}\/storageServer\/var/; \
|
||||||
|
s/ls_php_host/${HOSTNAME}/; \
|
||||||
|
s/ls_php_port/${WWW_PORT}/; \
|
||||||
|
s/ls_archiveUrlPath/\/${PHP_URL_PREFIX_S}\/archiveServer\/var/;"
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Configuration parameters
|
# Configuration parameters
|
||||||
|
@ -92,19 +121,10 @@ ROOT_PATH = ${BASE_DIR}/../..
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean dist \
|
.PHONY: all dir_setup doc clean docclean depclean distclean dist install
|
||||||
db_init db_clean testonly transtest local reset pear_setup
|
.PHONY: db_init db_clean testonly
|
||||||
|
|
||||||
all: local
|
all:
|
||||||
$(MAKE) -C ../archiveServer all
|
|
||||||
|
|
||||||
local: pear_setup dir_setup db_init
|
|
||||||
|
|
||||||
dir_setup: ${DOXYGEN_DIR}
|
|
||||||
bin/setupDirs.sh ${STOR_DIR} ${ACCESS_DIR} ${TRANS_DIR} ${BUFF_DIR}
|
|
||||||
|
|
||||||
pear_setup:
|
|
||||||
${PEAR_INSTALLER} -d ${ROOT_PATH}
|
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
${DOXYGEN} ${DOXYGEN_CONFIG}
|
${DOXYGEN} ${DOXYGEN_CONFIG}
|
||||||
|
@ -118,7 +138,6 @@ docclean:
|
||||||
${RMDIR} ${DOXYGEN_DIR}/html
|
${RMDIR} ${DOXYGEN_DIR}/html
|
||||||
|
|
||||||
depclean: clean
|
depclean: clean
|
||||||
$(MAKE) -C ../archiveServer clean
|
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
${TAR_C} ${MODULE_NAME}${DATE}${DIST_EXT} *
|
${TAR_C} ${MODULE_NAME}${DATE}${DIST_EXT} *
|
||||||
|
@ -127,23 +146,32 @@ distclean: clean docclean
|
||||||
|
|
||||||
testonly: ${TEST_RUNNER}
|
testonly: ${TEST_RUNNER}
|
||||||
${TEST_RUNNER}
|
${TEST_RUNNER}
|
||||||
# $(MAKE) transtest
|
|
||||||
|
|
||||||
check: all testonly
|
check: all
|
||||||
|
#testonly
|
||||||
localcheck: local testonly
|
|
||||||
|
|
||||||
recheck: clean check
|
recheck: clean check
|
||||||
|
|
||||||
reset:
|
install:
|
||||||
./bin/resetStorage.sh
|
${MKDIR} ${DEST_DIR}
|
||||||
|
${MKDIR} ${DEST_DIR}/access
|
||||||
|
${MKDIR} ${DEST_DIR}/install
|
||||||
|
${MKDIR} ${DEST_DIR}/stor
|
||||||
|
${MKDIR} ${DEST_DIR}/stor/buffer
|
||||||
|
${MKDIR} ${DEST_DIR}/trans
|
||||||
|
${MKDIR} ${DEST_DIR}/xmlrpc
|
||||||
|
${CP} ${VAR_DIR}/*.{php,template} ${DEST_DIR}
|
||||||
|
${CP} ${VAR_DIR}/install/*.php ${DEST_DIR}/install
|
||||||
|
${CP} ${VAR_DIR}/xmlrpc/*.php ${DEST_DIR}/xmlrpc
|
||||||
|
${CAT} ${VAR_DIR}/conf.php.template | ${SED} -e ${REPLACE_SED_STRING} \
|
||||||
|
> ${DEST_DIR}/conf.php
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
transtest:
|
dir_setup: ${DOXYGEN_DIR}
|
||||||
./var/tests/transTest.sh
|
bin/setupDirs.sh ${STOR_DIR} ${ACCESS_DIR} ${TRANS_DIR} ${BUFF_DIR}
|
||||||
# cd var/tests; php -q transTest.php
|
|
||||||
|
|
||||||
db_init:
|
db_init:
|
||||||
cd var/install; php -q install.php
|
cd var/install; php -q install.php
|
138
livesupport/modules/archiveServer/etc/configure.ac
Normal file
138
livesupport/modules/archiveServer/etc/configure.ac
Normal file
|
@ -0,0 +1,138 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/etc/configure.ac,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl NOTE: Run all configure related scripts from the tmp directory of the
|
||||||
|
dnl project.
|
||||||
|
dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_INIT(ArchiveServer, 1.0, bugs@campware.org)
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(../var/Archive.php)
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the FQDN
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(HOSTNAME)
|
||||||
|
|
||||||
|
AC_ARG_WITH([hostname],
|
||||||
|
AC_HELP_STRING([--with-hostname],
|
||||||
|
[use the specified hostname (guess)]),
|
||||||
|
[HOSTNAME=${withval}], [HOSTNAME=`hostname -f`])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using hostname: ${HOSTNAME}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the web server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(WWW_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([www-port],
|
||||||
|
AC_HELP_STRING([--with-www-port],
|
||||||
|
[use the specified www port (80)]),
|
||||||
|
[WWW_PORT=${withval}], [WWW_PORT=80])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using www port: ${WWW_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server name
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_SERVER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-server],
|
||||||
|
AC_HELP_STRING([--with-database-server],
|
||||||
|
[use the specified database server (localhost)]),
|
||||||
|
[DB_SERVER=${withval}], [DB_SERVER=localhost])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server: ${DB_SERVER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl get the name of the LiveSupport database
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database],
|
||||||
|
AC_HELP_STRING([--with-database],
|
||||||
|
[the name of the postgresql database to use (LiveSupport)]),
|
||||||
|
[DATABASE=${withval}], [DATABASE=LiveSupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database: ${DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_USER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-user],
|
||||||
|
AC_HELP_STRING([--with-database-user],
|
||||||
|
[use the specified database server user (livesupport)]),
|
||||||
|
[DB_USER=${withval}], [DB_USER=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user: ${DB_USER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user password
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_PASSWORD)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-password],
|
||||||
|
AC_HELP_STRING([--with-database-password],
|
||||||
|
[use the specified database server user password (livesupport)]),
|
||||||
|
[DB_PASSWORD=${withval}], [DB_PASSWORD=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user password: ${DB_PASSWORD}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl display status info on what libraries will get compiled
|
||||||
|
|
||||||
|
AC_MSG_NOTICE(
|
||||||
|
[using the following configuration settings:
|
||||||
|
|
||||||
|
hostname: ${HOSTNAME}
|
||||||
|
www port: ${WWW_PORT}
|
||||||
|
database server: ${DB_SERVER}
|
||||||
|
database name: ${DATABASE}
|
||||||
|
database user: ${DB_USER}
|
||||||
|
database user password: ${DB_PASSWORD}
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
AC_OUTPUT()
|
|
@ -22,8 +22,8 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.5 $
|
Version : $Revision: 1.6 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/conf.php.template,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/conf.php.template,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -82,7 +82,7 @@ $config = array(
|
||||||
'bufferDir' => dirname(__FILE__).'/../../archiveServer/var/stor/buffer',
|
'bufferDir' => dirname(__FILE__).'/../../archiveServer/var/stor/buffer',
|
||||||
'transDir' => dirname(__FILE__).'/../../archiveServer/var/trans',
|
'transDir' => dirname(__FILE__).'/../../archiveServer/var/trans',
|
||||||
'accessDir' => dirname(__FILE__).'/../../archiveServer/var/access',
|
'accessDir' => dirname(__FILE__).'/../../archiveServer/var/access',
|
||||||
'pearPath' => 'ls_install_dir/usr/lib/php/php',
|
'pearPath' => 'ls_lib_dir/pear',
|
||||||
'isArchive' => TRUE,
|
'isArchive' => TRUE,
|
||||||
'validate' => TRUE,
|
'validate' => TRUE,
|
||||||
'useTrash' => FALSE,
|
'useTrash' => FALSE,
|
||||||
|
|
52
livesupport/modules/authentication/configure
vendored
Executable file
52
livesupport/modules/authentication/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.9 $
|
# Version : $Revision: 1.10 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -49,7 +50,7 @@ LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
@ -119,7 +120,7 @@ TEST_RUNNER_LIBS = -l${AUTHENTICATION_LIB} -l${CORE_LIB} \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean check
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${AUTHENTICATION_LIB_FILE}
|
all: dir_setup ${AUTHENTICATION_LIB_FILE}
|
||||||
|
|
||||||
|
@ -147,6 +148,12 @@ check: all ${TEST_RUNNER}
|
||||||
${MAKE} -C ${STORAGE_SERVER_DIR}
|
${MAKE} -C ${STORAGE_SERVER_DIR}
|
||||||
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/Authentication
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/Authentication/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/Authentication
|
||||||
|
${CP} ${AUTHENTICATION_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.3 $
|
dnl Version : $Revision: 1.4 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(Authentication, 1.0, bugs@campware.org)
|
AC_INIT(Authentication, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.3 $)
|
AC_REVISION($Revision: 1.4 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/AuthenticationClientFactory.cxx)
|
AC_CONFIG_SRCDIR(../src/AuthenticationClientFactory.cxx)
|
||||||
|
|
||||||
|
@ -44,10 +44,25 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h)
|
AC_CHECK_HEADERS(getopt.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
52
livesupport/modules/core/configure
vendored
Executable file
52
livesupport/modules/core/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.31 $
|
# Version : $Revision: 1.32 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -52,7 +53,7 @@ SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
VAR_DIR = ${BASE_DIR}/var
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_BIN_DIR = ${USR_DIR}/bin
|
USR_BIN_DIR = ${USR_DIR}/bin
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
|
@ -160,7 +161,7 @@ TEST_RUNNER_LIBS = -l${CORE_LIB} ${ICU_LIBS} \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${CORE_LIB_FILE}
|
all: dir_setup ${CORE_LIB_FILE}
|
||||||
|
|
||||||
|
@ -187,6 +188,12 @@ distclean: clean docclean
|
||||||
check: ${TEST_RUNNER} ${TEST_RUNNER_RES}
|
check: ${TEST_RUNNER} ${TEST_RUNNER_RES}
|
||||||
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/Core
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/Core/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/Core
|
||||||
|
${CP} ${CORE_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.11 $
|
dnl Version : $Revision: 1.12 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(Core, 1.0, bugs@campware.org)
|
AC_INIT(Core, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.11 $)
|
AC_REVISION($Revision: 1.12 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/UniqueId.cxx)
|
AC_CONFIG_SRCDIR(../src/UniqueId.cxx)
|
||||||
|
|
||||||
|
@ -50,7 +50,21 @@ fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h sys/time.h time.h sys/types.h pwd.h errno.h stdint.h)
|
AC_CHECK_HEADERS(getopt.h sys/time.h time.h sys/types.h pwd.h errno.h stdint.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
|
|
@ -21,26 +21,32 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: fberckel $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.2 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/splayTest.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/db/configure,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# This script runs the Helix Simple player using test.mp3.
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
reldir=`dirname $0`/..
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
basedir=`cd $reldir; pwd;`
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
bindir=$basedir/bin
|
bindir=$basedir/bin
|
||||||
docdir=$basedir/doc
|
|
||||||
tmpdir=$basedir/tmp
|
tmpdir=$basedir/tmp
|
||||||
usrbindir=$basedir/usr/bin
|
|
||||||
modules_dir=$basedir/modules
|
|
||||||
usrlibdir=$basedir/usr/lib
|
|
||||||
|
|
||||||
echo "";
|
|
||||||
echo "Now playing test.mp3 with the Helix Simple Player";
|
|
||||||
echo "";
|
|
||||||
|
|
||||||
$usrbindir/splay $modules_dir/playlistExecutor/var/test.mp3 -l $usrlibdir/helix
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.10 $
|
# Version : $Revision: 1.11 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/db/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/db/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -50,7 +51,7 @@ LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
@ -118,7 +119,7 @@ TEST_RUNNER_LIBS = -l${DB_LIB} -l${CORE_LIB} -lcppunit -ldl
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${DB_LIB_FILE}
|
all: dir_setup ${DB_LIB_FILE}
|
||||||
|
|
||||||
|
@ -145,6 +146,12 @@ distclean: clean docclean
|
||||||
check: all ${TEST_RUNNER}
|
check: all ${TEST_RUNNER}
|
||||||
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/Db
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/Db/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/Db
|
||||||
|
${CP} ${DB_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.6 $
|
dnl Version : $Revision: 1.7 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/db/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/db/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(Db, 1.0, bugs@campware.org)
|
AC_INIT(Db, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.6 $)
|
AC_REVISION($Revision: 1.7 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../include/LiveSupport/Db/ConnectionManagerInterface.h)
|
AC_CONFIG_SRCDIR(../include/LiveSupport/Db/ConnectionManagerInterface.h)
|
||||||
|
|
||||||
|
@ -44,11 +44,27 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h)
|
AC_CHECK_HEADERS(getopt.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
PKG_CHECK_MODULES(LIBODBCXX,[libodbc++])
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBODBCXX,[libodbc++])
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
52
livesupport/modules/eventScheduler/configure
vendored
Executable file
52
livesupport/modules/eventScheduler/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.7 $
|
# Version : $Revision: 1.8 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -49,7 +50,7 @@ LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
@ -116,7 +117,7 @@ TEST_RUNNER_LIBS = -l${EVENT_SCHEDULER_LIB} -l${CORE_LIB} \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${EVENT_SCHEDULER_LIB_FILE}
|
all: dir_setup ${EVENT_SCHEDULER_LIB_FILE}
|
||||||
|
|
||||||
|
@ -143,6 +144,12 @@ distclean: clean docclean
|
||||||
check: all ${TEST_RUNNER}
|
check: all ${TEST_RUNNER}
|
||||||
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/EventScheduler
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/EventScheduler/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/EventScheduler
|
||||||
|
${CP} ${EVENT_SCHEDULER_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.3 $
|
dnl Version : $Revision: 1.4 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(EventScheduler, 1.0, bugs@campware.org)
|
AC_INIT(EventScheduler, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.3 $)
|
AC_REVISION($Revision: 1.4 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/SchedulerThread.cxx)
|
AC_CONFIG_SRCDIR(../src/SchedulerThread.cxx)
|
||||||
|
|
||||||
|
@ -44,10 +44,25 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h unistd.h sys/time.h)
|
AC_CHECK_HEADERS(getopt.h unistd.h sys/time.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
101
livesupport/modules/getid3/bin/autogen.sh
Executable file
101
livesupport/modules/getid3/bin/autogen.sh
Executable file
|
@ -0,0 +1,101 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/getid3/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="GetId3"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
#ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
#echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
#cp -f ${configure_ac} ${tmpdir}
|
||||||
|
#cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
#aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
|
#echo " autoheader ${configure_ac}"
|
||||||
|
#autoheader ${configure_ac}
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
52
livesupport/modules/getid3/configure
vendored
Executable file
52
livesupport/modules/getid3/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/getid3/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : Author: James Heinrich <getid3@users.sourceforge.net>
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.1 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/getid3/Attic/Makefile,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/getid3/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -34,6 +34,8 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Misc
|
# Misc
|
||||||
|
@ -56,14 +58,15 @@ INCLUDE_DIR = ${BASE_DIR}/include
|
||||||
LIB_DIR = ${BASE_DIR}/lib
|
LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
|
|
||||||
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
||||||
|
|
||||||
PHP_DIR = ${BASE_DIR}/var
|
PHP_DIR = ${VAR_DIR}
|
||||||
#TEST_RUNNER = ${PHP_DIR}/tests/index.php
|
#TEST_RUNNER = ${PHP_DIR}/tests/index.php
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -85,7 +88,7 @@ PHP_DIR = ${BASE_DIR}/var
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean dist
|
.PHONY: all dir_setup doc clean docclean depclean distclean dist install
|
||||||
|
|
||||||
all: dir_setup
|
all: dir_setup
|
||||||
|
|
||||||
|
@ -113,6 +116,11 @@ distclean: clean docclean
|
||||||
# ${TEST_RUNNER}
|
# ${TEST_RUNNER}
|
||||||
check: all
|
check: all
|
||||||
|
|
||||||
|
install:
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/getid3/var
|
||||||
|
${CP} ${VAR_DIR}/*.{php,txt} ${USR_VAR_DIR}/LiveSupport/getid3/var
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
45
livesupport/modules/getid3/etc/configure.ac
Normal file
45
livesupport/modules/getid3/etc/configure.ac
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/getid3/etc/configure.ac,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl NOTE: Run all configure related scripts from the tmp directory of the
|
||||||
|
dnl project.
|
||||||
|
dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_INIT(GetId3, 1.0, bugs@campware.org)
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(../var/getid3.check.php)
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
AC_OUTPUT()
|
52
livesupport/modules/gstreamerElements/configure
vendored
Executable file
52
livesupport/modules/gstreamerElements/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/gstreamerElements/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.9 $
|
# Version : $Revision: 1.10 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/gstreamerElements/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/gstreamerElements/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -55,7 +56,7 @@ VAR_DIR = ${BASE_DIR}/var
|
||||||
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
||||||
|
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_BIN_DIR = ${USR_DIR}/bin
|
USR_BIN_DIR = ${USR_DIR}/bin
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
|
@ -163,7 +164,7 @@ PLAY_LIBS = -l${GSTREAMER_ELEMENTS_LIB} -l${CORE_LIB}
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${GSTREAMER_ELEMENTS_LIB_FILE} \
|
all: dir_setup ${GSTREAMER_ELEMENTS_LIB_FILE} \
|
||||||
${ONESHOT_READER_LIB_FILE} \
|
${ONESHOT_READER_LIB_FILE} \
|
||||||
|
@ -205,6 +206,18 @@ distclean: clean docclean
|
||||||
check: all ${TEST_RUNNER}
|
check: all ${TEST_RUNNER}
|
||||||
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/GstreamerElements
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/GstreamerElements/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/GstreamerElements
|
||||||
|
${CP} ${GSTREAMER_ELEMENTS_LIB_FILE} \
|
||||||
|
${ONESHOT_READER_LIB_FILE} \
|
||||||
|
${MINIMAL_AUDIO_SMIL_LIB_FILE} \
|
||||||
|
${PARTIAL_PLAY_LIB_FILE} \
|
||||||
|
${SWITCHER_LIB_FILE} \
|
||||||
|
${USR_LIB_DIR}
|
||||||
|
-GST_PLUGIN_PATH=${USR_LIB_DIR} ${GST_REGISTER}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.1 $
|
dnl Version : $Revision: 1.2 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/gstreamerElements/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/gstreamerElements/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(GstreamerElements, 1.0, bugs@campware.org)
|
AC_INIT(GstreamerElements, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.1 $)
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/oneshot-reader.c)
|
AC_CONFIG_SRCDIR(../src/oneshot-reader.c)
|
||||||
|
|
||||||
|
@ -45,10 +45,25 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(string.h getopt.h)
|
AC_CHECK_HEADERS(string.h getopt.h)
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GSTREAMER,[gstreamer-0.8 >= 0.8])
|
PKG_CHECK_MODULES(GSTREAMER,[gstreamer-0.8 >= 0.8])
|
||||||
AC_SUBST(GSTREAMER_CFLAGS)
|
AC_SUBST(GSTREAMER_CFLAGS)
|
||||||
AC_SUBST(GSTREAMER_LIBS)
|
AC_SUBST(GSTREAMER_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
DirectoryIndex index.php
|
|
||||||
Options +FollowSymLinks -Indexes
|
|
||||||
|
|
||||||
<IfModule mod_mime.c>
|
|
||||||
<IfModule mod_php4.c>
|
|
||||||
AddType application/x-httpd-php .php
|
|
||||||
|
|
||||||
php_flag magic_quotes_gpc On
|
|
||||||
php_flag register_globals Off
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
</IfModule>
|
|
101
livesupport/modules/htmlUI/bin/autogen.sh
Executable file
101
livesupport/modules/htmlUI/bin/autogen.sh
Executable file
|
@ -0,0 +1,101 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="Alib"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
#ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
#echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
#cp -f ${configure_ac} ${tmpdir}
|
||||||
|
#cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
#aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
|
#echo " autoheader ${configure_ac}"
|
||||||
|
#autoheader ${configure_ac}
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
150
livesupport/modules/htmlUI/bin/configureApache.sh
Executable file
150
livesupport/modules/htmlUI/bin/configureApache.sh
Executable file
|
@ -0,0 +1,150 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/bin/configureApache.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# This script configures apache for the htmlUI
|
||||||
|
#
|
||||||
|
# Invoke as:
|
||||||
|
# ./bin/configureApache.sh
|
||||||
|
#
|
||||||
|
# To get usage help, try the -h option
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Determine directories, files
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
docdir=$basedir/doc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
usrdir=$basedir/usr
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Print the usage information for this script.
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
printUsage()
|
||||||
|
{
|
||||||
|
echo "LiveSupport apache configuration script.";
|
||||||
|
echo "parameters";
|
||||||
|
echo "";
|
||||||
|
echo " -h, --help Print this message and exit.";
|
||||||
|
echo "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Process command line parameters
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
CMD=${0##*/}
|
||||||
|
|
||||||
|
opts=$(getopt -o h -l help -n $CMD -- "$@") || exit 1
|
||||||
|
eval set -- "$opts"
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-h|--help)
|
||||||
|
printUsage;
|
||||||
|
exit 0;;
|
||||||
|
--)
|
||||||
|
shift;
|
||||||
|
break;;
|
||||||
|
*)
|
||||||
|
echo "Unrecognized option $1.";
|
||||||
|
printUsage;
|
||||||
|
exit 1;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
echo "Configuring apache for LiveSupport HTML interface.";
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check to see if this script is being run as root
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
if [ `whoami` != "root" ]; then
|
||||||
|
echo "Please run this script as root.";
|
||||||
|
exit ;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Configuring Apache
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Configuring apache ..."
|
||||||
|
CONFFILE=90_php_livesupport.conf
|
||||||
|
AP_DDIR_FOUND=no
|
||||||
|
for APACHE_DDIR in \
|
||||||
|
/etc/apache/conf.d /etc/apache2/conf/modules.d /etc/httpd/conf.d
|
||||||
|
do
|
||||||
|
echo -n "$APACHE_DDIR "
|
||||||
|
if [ -d $APACHE_DDIR ]; then
|
||||||
|
echo "Y"
|
||||||
|
AP_DDIR_FOUND=yes
|
||||||
|
cp $etcdir/$CONFFILE $APACHE_DDIR
|
||||||
|
else
|
||||||
|
echo "N"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ "$AP_DDIR_FOUND" != "yes" ]; then
|
||||||
|
echo "###############################"
|
||||||
|
echo " Could not configure Apache"
|
||||||
|
echo " include following file into apache config manually:"
|
||||||
|
echo " $etcdir/$CONFFILE"
|
||||||
|
echo "###############################"
|
||||||
|
fi
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
echo "Restarting apache...";
|
||||||
|
AP_SCR_FOUND=no
|
||||||
|
for APACHE_SCRIPT in apache apache2 httpd ; do
|
||||||
|
echo -n "$APACHE_SCRIPT "
|
||||||
|
if [ -x /etc/init.d/$APACHE_SCRIPT ]; then
|
||||||
|
echo "Y"
|
||||||
|
AP_SCR_FOUND=yes
|
||||||
|
/etc/init.d/$APACHE_SCRIPT restart
|
||||||
|
else
|
||||||
|
echo "N"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ "$AP_SCR_FOUND" != "yes" ]; then
|
||||||
|
echo "###############################"
|
||||||
|
echo " Could not reload Apache"
|
||||||
|
echo " please reload apache manually"
|
||||||
|
echo "###############################"
|
||||||
|
fi
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Say goodbye
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Done."
|
||||||
|
|
52
livesupport/modules/htmlUI/configure
vendored
Executable file
52
livesupport/modules/htmlUI/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
2
livesupport/modules/htmlUI/etc/90_php_livesupport.conf
Normal file
2
livesupport/modules/htmlUI/etc/90_php_livesupport.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
php_value upload_max_filesize 32M
|
228
livesupport/modules/htmlUI/etc/Makefile.in
Normal file
228
livesupport/modules/htmlUI/etc/Makefile.in
Normal file
|
@ -0,0 +1,228 @@
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# htmlUI - remote access user interface
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/etc/Makefile.in,v $
|
||||||
|
#
|
||||||
|
# @configure_input@
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# General command definitions
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
MKDIR = mkdir -p
|
||||||
|
RM = rm -f
|
||||||
|
RMDIR = rm -rf
|
||||||
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Misc
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MODULE_NAME = htmlUI
|
||||||
|
TAR_C = tar -cj --exclude CVS --exclude '*~' -C ${BASE_DIR} -f
|
||||||
|
DIST_EXT = .tgz
|
||||||
|
DATE = `date +%y%m%d`
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Basic directory and file definitions
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#BASE_DIR = @builddir@
|
||||||
|
BASE_DIR = .
|
||||||
|
BIN_DIR = ${BASE_DIR}/bin
|
||||||
|
DOC_DIR = ${BASE_DIR}/doc
|
||||||
|
DOXYGEN_DIR = ${DOC_DIR}/doxygen
|
||||||
|
ETC_DIR = ${BASE_DIR}/etc
|
||||||
|
INCLUDE_DIR = ${BASE_DIR}/include
|
||||||
|
LIB_DIR = ${BASE_DIR}/lib
|
||||||
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
|
||||||
|
USR_DIR = @prefix@
|
||||||
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
|
|
||||||
|
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
||||||
|
|
||||||
|
PHP_DIR = ${VAR_DIR}
|
||||||
|
#TEST_RUNNER = ${PHP_DIR}/tests/index.php
|
||||||
|
|
||||||
|
APACHE_GROUP = @APACHE_GROUP@
|
||||||
|
WWW_DOCROOT = @WWW_DOCROOT@
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Configuration parameters
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#CPPFLAGS = @CPPFLAGS@
|
||||||
|
#CXXFLAGS = @CXXFLAGS@ @DEFS@ -I${USR_INCLUDE_DIR} -I${INCLUDE_DIR} -I${TMP_DIR}\
|
||||||
|
# -pedantic -Wall
|
||||||
|
#LDFLAGS = @LDFLAGS@ -L${USR_LIB_DIR} -L${LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Dependencies
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#HELLO_LIB_OBJS = ${TMP_DIR}/Hello.o
|
||||||
|
#TEST_RUNNER_OBJS = ${TMP_DIR}/HelloTest.o ${TMP_DIR}/TestRunner.o
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Targets
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
.PHONY: all dir_setup doc clean docclean depclean distclean dist install
|
||||||
|
|
||||||
|
all: dir_setup
|
||||||
|
|
||||||
|
#dir_setup: ${TMP_DIR} ${DOXYGEN_DIR}
|
||||||
|
dir_setup: ${DOXYGEN_DIR}
|
||||||
|
|
||||||
|
doc:
|
||||||
|
${DOXYGEN} ${DOXYGEN_CONFIG}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
# ${RM} ...
|
||||||
|
|
||||||
|
docclean:
|
||||||
|
${RMDIR} ${DOXYGEN_DIR}/html
|
||||||
|
|
||||||
|
depclean: clean
|
||||||
|
|
||||||
|
dist: all
|
||||||
|
${TAR_C} ${MODULE_NAME}${DATE}${DIST_EXT} *
|
||||||
|
|
||||||
|
distclean: clean docclean
|
||||||
|
# ${RMDIR} ${TMP_DIR}/config* ${TMP_DIR}/autom4te*
|
||||||
|
|
||||||
|
#check: all ${TEST_RUNNER}
|
||||||
|
# ${TEST_RUNNER}
|
||||||
|
check: all
|
||||||
|
|
||||||
|
install: configure_apache
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/html
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/html/img
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/html/css_img
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/Smarty
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/Smarty/libs
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/Smarty/libs/plugins
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/Smarty/libs/internals
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/formmask
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates_c
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/localizer
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/localizer/.icons
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/sub
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/file
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/popup
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/library
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/scheduler
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/scratchpad
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/loader
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/script
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/system
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/playlist
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/subjects
|
||||||
|
|
||||||
|
${CP} ${VAR_DIR}/*.xml ${VAR_DIR}/*.php \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var
|
||||||
|
${CP} ${VAR_DIR}/html/*.php ${VAR_DIR}/html/*.css \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/html
|
||||||
|
${CP} ${VAR_DIR}/html/img/*.png ${VAR_DIR}/html/img/*.gif \
|
||||||
|
${VAR_DIR}/html/img/*.swf ${VAR_DIR}/html/img/*.image \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/html/img
|
||||||
|
${CP} ${VAR_DIR}/html/css_img/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/html/css_img
|
||||||
|
${CP} ${VAR_DIR}/formmask/*.php \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/formmask
|
||||||
|
${CP} ${VAR_DIR}/localizer/*.php ${VAR_DIR}/localizer/*.xml\
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/localizer
|
||||||
|
${CP} ${VAR_DIR}/localizer/.icons/*.jpg ${VAR_DIR}/localizer/.icons/*.gif \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/localizer/.icons
|
||||||
|
${CP} ${VAR_DIR}/Smarty/libs/*.php \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/Smarty/libs/
|
||||||
|
${CP} ${VAR_DIR}/Smarty/libs/internals/*.php \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/Smarty/libs/internals/
|
||||||
|
${CP} ${VAR_DIR}/Smarty/libs/plugins/*.php \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/Smarty/libs/plugins/
|
||||||
|
${CP} ${VAR_DIR}/templates/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates
|
||||||
|
${CP} ${VAR_DIR}/templates/sub/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/sub
|
||||||
|
${CP} ${VAR_DIR}/templates/file/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/file
|
||||||
|
${CP} ${VAR_DIR}/templates/popup/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/popup
|
||||||
|
${CP} ${VAR_DIR}/templates/library/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/library
|
||||||
|
${CP} ${VAR_DIR}/templates/scheduler/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/scheduler
|
||||||
|
${CP} ${VAR_DIR}/templates/scratchpad/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/scratchpad
|
||||||
|
${CP} ${VAR_DIR}/templates/loader/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/loader
|
||||||
|
${CP} ${VAR_DIR}/templates/script/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/script
|
||||||
|
${CP} ${VAR_DIR}/templates/system/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/system
|
||||||
|
${CP} ${VAR_DIR}/templates/playlist/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/playlist
|
||||||
|
${CP} ${VAR_DIR}/templates/subjects/*.tpl \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates/subjects
|
||||||
|
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates_c
|
||||||
|
|
||||||
|
chgrp ${APACHE_GROUP} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates_c
|
||||||
|
chgrp ${APACHE_GROUP} ${USR_VAR_DIR}/LiveSupport/htmlUI/var/html/img
|
||||||
|
|
||||||
|
chmod g+sw ${USR_VAR_DIR}/LiveSupport/htmlUI/var/templates_c
|
||||||
|
chmod g+sw ${USR_VAR_DIR}/LiveSupport/htmlUI/var/html/img
|
||||||
|
|
||||||
|
${RM} ${WWW_DOCROOT}/livesupport
|
||||||
|
ln -sf ${USR_VAR_DIR}/LiveSupport ${WWW_DOCROOT}/livesupport
|
||||||
|
${CP} ${VAR_DIR}/redirect.php ${USR_VAR_DIR}/LiveSupport/index.php
|
||||||
|
|
||||||
|
configure_apache:
|
||||||
|
ifeq (@CONFIGURE_APACHE@,yes)
|
||||||
|
${BIN_DIR}/configureApache.sh
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Specific targets
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
${DOXYGEN_DIR}:
|
||||||
|
${MKDIR} ${DOXYGEN_DIR}
|
||||||
|
|
||||||
|
#${TEST_RUNNER}:
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Pattern rules
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#${TMP_DIR}/%.o : ${SRC_DIR}/%.cxx
|
||||||
|
# ${CXX} ${CPPFLAGS} ${CXXFLAGS} -c -o $@ $<
|
||||||
|
|
96
livesupport/modules/htmlUI/etc/configure.ac
Normal file
96
livesupport/modules/htmlUI/etc/configure.ac
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/etc/configure.ac,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl NOTE: Run all configure related scripts from the tmp directory of the
|
||||||
|
dnl project.
|
||||||
|
dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_INIT(HtmlUI, 1.0, bugs@campware.org)
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(../var/ui_conf.php)
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether apache should be configured through it's conf.d directory
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(CONFIGURE_APACHE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([configure-apache],
|
||||||
|
AC_HELP_STRING([--with-configure-apache],
|
||||||
|
[specify wether apache should be configured for LiveSupport
|
||||||
|
through its conf.d directory (no)]),
|
||||||
|
[CONFIGURE_APACHE=${withval}],
|
||||||
|
[CONFIGURE_APACHE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([configure apache: ${CONFIGURE_APACHE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify group in which apache is running
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(APACHE_GROUP)
|
||||||
|
|
||||||
|
AC_ARG_WITH([apache-group],
|
||||||
|
AC_HELP_STRING([--with-apache-group],
|
||||||
|
[use apache running in the specified group (apache)]),
|
||||||
|
[APACHE_GROUP=${withval}], [APACHE_GROUP=apache])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using apache group: ${APACHE_GROUP}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify web document root
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(WWW_DOCROOT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([www-docroot],
|
||||||
|
AC_HELP_STRING([--with-www-docroot],
|
||||||
|
[deploy LiveSupport under the specified docroot (/var/www)]),
|
||||||
|
[WWW_DOCROOT=${withval}], [WWW_DOCROOT=/var/www])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using www document root: ${WWW_DOCROOT}])
|
||||||
|
|
||||||
|
|
||||||
|
AC_MSG_NOTICE(
|
||||||
|
[using the following configuration settings:
|
||||||
|
|
||||||
|
apache group: ${APACHE_GROUP}
|
||||||
|
www document root: ${WWW_DOCROOT}
|
||||||
|
configuring apache: ${CONFIGURE_APACHE}
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
AC_OUTPUT()
|
||||||
|
|
|
@ -2979,7 +2979,7 @@
|
||||||
|
|
||||||
* libs/Smarty.class.php
|
* libs/Smarty.class.php
|
||||||
libs/Smarty_Compiler.class.php:
|
libs/Smarty_Compiler.class.php:
|
||||||
added CVS $Id: ChangeLog,v 1.5 2005/02/25 16:58:26 sebastian Exp $
|
added CVS $Id: ChangeLog,v 1.6 2005/08/01 19:25:59 maroy Exp $
|
||||||
|
|
||||||
2003-03-31 Messju Mohr <messju@lammfellpuschen.de>
|
2003-03-31 Messju Mohr <messju@lammfellpuschen.de>
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: Config_File.class.php,v 1.5 2005/02/25 16:58:26 sebastian Exp $ */
|
/* $Id: Config_File.class.php,v 1.6 2005/08/01 19:25:59 maroy Exp $ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Config file reading class
|
* Config file reading class
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
* @version 2.6.6
|
* @version 2.6.6
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: Smarty.class.php,v 1.5 2005/02/25 16:58:26 sebastian Exp $ */
|
/* $Id: Smarty.class.php,v 1.6 2005/08/01 19:25:59 maroy Exp $ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DIR_SEP isn't used anymore, but third party apps might
|
* DIR_SEP isn't used anymore, but third party apps might
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: Smarty_Compiler.class.php,v 1.5 2005/02/25 16:58:26 sebastian Exp $ */
|
/* $Id: Smarty_Compiler.class.php,v 1.6 2005/08/01 19:25:59 maroy Exp $ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Template compiling class
|
* Template compiling class
|
||||||
|
|
3
livesupport/modules/htmlUI/var/redirect.php
Normal file
3
livesupport/modules/htmlUI/var/redirect.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
header('LOCATION: htmlUI/var/html/ui_browser.php');
|
||||||
|
?>
|
|
@ -22,8 +22,8 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: sebastian $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.1 $
|
Version : $Revision: 1.2 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/var/ui_schedulerPhpClient.class.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/var/ui_schedulerPhpClient.class.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
|
52
livesupport/modules/playlistExecutor/configure
vendored
Executable file
52
livesupport/modules/playlistExecutor/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.18 $
|
# Version : $Revision: 1.19 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -52,7 +53,7 @@ TMP_DIR = ${BASE_DIR}/tmp
|
||||||
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
||||||
|
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
@ -145,7 +146,7 @@ TWOTEST_RUNNER_OBJS = ${TMP_DIR}/TestRunner.o \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${PLAYLIST_EXECUTOR_LIB_FILE}
|
all: dir_setup ${PLAYLIST_EXECUTOR_LIB_FILE}
|
||||||
|
|
||||||
|
@ -175,6 +176,12 @@ check: all ${TEST_RUNNER}
|
||||||
check_two: all ${TWOTEST_RUNNER}
|
check_two: all ${TWOTEST_RUNNER}
|
||||||
${TWOTEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TWOTEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/PlaylistExecutor
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/PlaylistExecutor/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/PlaylistExecutor
|
||||||
|
${CP} ${PLAYLIST_EXECUTOR_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.9 $
|
dnl Version : $Revision: 1.10 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(PlaylistExecutor, 1.0, bugs@campware.org)
|
AC_INIT(PlaylistExecutor, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.9 $)
|
AC_REVISION($Revision: 1.10 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/AudioPlayerFactory.cxx)
|
AC_CONFIG_SRCDIR(../src/AudioPlayerFactory.cxx)
|
||||||
|
|
||||||
|
@ -44,7 +44,21 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h sys/time.h)
|
AC_CHECK_HEADERS(getopt.h sys/time.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
@ -52,6 +66,7 @@ PKG_CHECK_MODULES(GSTREAMER,[gstreamer-0.8 >= 0.8])
|
||||||
AC_SUBST(GSTREAMER_CFLAGS)
|
AC_SUBST(GSTREAMER_CFLAGS)
|
||||||
AC_SUBST(GSTREAMER_LIBS)
|
AC_SUBST(GSTREAMER_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
52
livesupport/modules/schedulerClient/configure
vendored
Executable file
52
livesupport/modules/schedulerClient/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.8 $
|
# Version : $Revision: 1.9 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -49,7 +50,7 @@ LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
@ -140,7 +141,7 @@ TEST_RUNNER_LIBS = -l${SCHEDULER_CLIENT_LIB} \
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean
|
||||||
.PHONY: install start run_tests stop uninstall
|
.PHONY: check install init start run_tests stop deinit
|
||||||
|
|
||||||
all: dir_setup ${SCHEDULER_CLIENT_LIB_FILE}
|
all: dir_setup ${SCHEDULER_CLIENT_LIB_FILE}
|
||||||
|
|
||||||
|
@ -166,13 +167,13 @@ depclean: clean
|
||||||
distclean: clean docclean
|
distclean: clean docclean
|
||||||
${RMDIR} ${TMP_DIR}/config* ${TMP_DIR}/autom4te* ${TMP_DIR}/ac*.m4
|
${RMDIR} ${TMP_DIR}/config* ${TMP_DIR}/autom4te* ${TMP_DIR}/ac*.m4
|
||||||
|
|
||||||
check: all ${TEST_RUNNER} install start run_tests stop uninstall
|
check: all ${TEST_RUNNER} init start run_tests stop deinit
|
||||||
|
|
||||||
run_tests: ${TEST_RUNNER}
|
run_tests: ${TEST_RUNNER}
|
||||||
-${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
-${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
install: ${SCHEDULER_EXE} storage_server_init
|
init: ${SCHEDULER_EXE} storage_server_init
|
||||||
${MAKE} -C ${SCHEDULER_DIR} install
|
${MAKE} -C ${SCHEDULER_DIR} init
|
||||||
|
|
||||||
start: ${SCHEDULER_EXE}
|
start: ${SCHEDULER_EXE}
|
||||||
${MAKE} -C ${SCHEDULER_DIR} start
|
${MAKE} -C ${SCHEDULER_DIR} start
|
||||||
|
@ -180,8 +181,14 @@ start: ${SCHEDULER_EXE}
|
||||||
stop: ${SCHEDULER_EXE}
|
stop: ${SCHEDULER_EXE}
|
||||||
${MAKE} -C ${SCHEDULER_DIR} stop
|
${MAKE} -C ${SCHEDULER_DIR} stop
|
||||||
|
|
||||||
uninstall: ${SCHEDULER_EXE}
|
deinit: ${SCHEDULER_EXE}
|
||||||
${MAKE} -C ${SCHEDULER_DIR} uninstall
|
${MAKE} -C ${SCHEDULER_DIR} deinit
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/SchedulerClient
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/SchedulerClient/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/SchedulerClient
|
||||||
|
${CP} ${SCHEDULER_CLIENT_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.3 $
|
dnl Version : $Revision: 1.4 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(StorageClient, 1.0, bugs@campware.org)
|
AC_INIT(StorageClient, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.3 $)
|
AC_REVISION($Revision: 1.4 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../include/LiveSupport/SchedulerClient/SchedulerClientFactory.h)
|
AC_CONFIG_SRCDIR(../include/LiveSupport/SchedulerClient/SchedulerClientFactory.h)
|
||||||
|
|
||||||
|
@ -44,10 +44,25 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h sys/time.h)
|
AC_CHECK_HEADERS(getopt.h sys/time.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
52
livesupport/modules/storage/configure
vendored
Executable file
52
livesupport/modules/storage/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.23 $
|
# Version : $Revision: 1.24 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -49,7 +50,7 @@ LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
@ -135,7 +136,7 @@ TEST_RUNNER_LIBS = -l${STORAGE_LIB} -l${CORE_LIB} -l${AUTHENTICATION_LIB} \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean check
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${STORAGE_LIB_FILE}
|
all: dir_setup ${STORAGE_LIB_FILE}
|
||||||
|
|
||||||
|
@ -162,6 +163,12 @@ distclean: clean docclean
|
||||||
check: all ${TEST_RUNNER} storage_server_init
|
check: all ${TEST_RUNNER} storage_server_init
|
||||||
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/Storage
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/Storage/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/Storage
|
||||||
|
${CP} ${STORAGE_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -20,8 +20,8 @@ dnl along with LiveSupport; if not, write to the Free Software
|
||||||
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: fgerlits $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.5 $
|
dnl Version : $Revision: 1.6 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(Storage, 1.0, bugs@campware.org)
|
AC_INIT(Storage, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.5 $)
|
AC_REVISION($Revision: 1.6 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/StorageClientFactory.cxx)
|
AC_CONFIG_SRCDIR(../src/StorageClientFactory.cxx)
|
||||||
|
|
||||||
|
@ -44,10 +44,25 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h sys/time.h time.h)
|
AC_CHECK_HEADERS(getopt.h sys/time.h time.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
101
livesupport/modules/storageAdmin/bin/autogen.sh
Executable file
101
livesupport/modules/storageAdmin/bin/autogen.sh
Executable file
|
@ -0,0 +1,101 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageAdmin/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="StorageAdmin"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
#ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
#echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
#cp -f ${configure_ac} ${tmpdir}
|
||||||
|
#cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
#aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
|
#echo " autoheader ${configure_ac}"
|
||||||
|
#autoheader ${configure_ac}
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
52
livesupport/modules/storageAdmin/configure
vendored
Executable file
52
livesupport/modules/storageAdmin/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageAdmin/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# ArchiveServer - central archive component
|
# getID3 - read and writes tags in media files - see getid3.readme.txt
|
||||||
# Copyright (c) 2004 Media Development Loan Fund
|
# getID3 by James Heinrich <getid3@users.sourceforge.net>
|
||||||
#
|
#
|
||||||
# This file is part of the LiveSupport project.
|
# This file is part of the LiveSupport project.
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
#
|
#
|
||||||
# LiveSupport is free software; you can redistribute it and/or modify
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -19,9 +20,9 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: tomas $
|
# Author : Author$
|
||||||
# Version : $Revision: 1.4 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/Attic/Makefile,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageAdmin/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -33,12 +34,17 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
SED = sed
|
||||||
|
ECHO = echo
|
||||||
|
CAT = cat
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Misc
|
# Misc
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
MODULE_NAME = archiveServer
|
MODULE_NAME = getid3
|
||||||
TAR_C = tar -cj --exclude CVS --exclude '*~' -C ${BASE_DIR} -f
|
TAR_C = tar -cj --exclude CVS --exclude '*~' -C ${BASE_DIR} -f
|
||||||
DIST_EXT = .tgz
|
DIST_EXT = .tgz
|
||||||
DATE = `date +%y%m%d`
|
DATE = `date +%y%m%d`
|
||||||
|
@ -55,20 +61,24 @@ INCLUDE_DIR = ${BASE_DIR}/include
|
||||||
LIB_DIR = ${BASE_DIR}/lib
|
LIB_DIR = ${BASE_DIR}/lib
|
||||||
SRC_DIR = ${BASE_DIR}/src
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
BIN_DIR = ${BASE_DIR}/bin
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
|
|
||||||
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
||||||
|
|
||||||
PHP_DIR = ${BASE_DIR}/var
|
PHP_DIR = ${VAR_DIR}
|
||||||
INSTALL_DIR = ${PHP_DIR}/install
|
#TEST_RUNNER = ${PHP_DIR}/tests/index.php
|
||||||
STOR_DIR = ${PHP_DIR}/stor
|
|
||||||
ACCESS_DIR = ${PHP_DIR}/access
|
DEST_DIR = ${USR_VAR_DIR}/LiveSupport/storageAdmin/var
|
||||||
TRANS_DIR = ${PHP_DIR}/trans
|
|
||||||
BUFF_DIR = ${STOR_DIR}/buffer
|
USR_VAR_DIR_S=$(shell ${ECHO} ${USR_VAR_DIR} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
TEST_RUNNER = ${PHP_DIR}/xmlrpc/testRunner.sh
|
|
||||||
|
REPLACE_SED_STRING="s/ls_var_dir/${USR_VAR_DIR_S}/;"
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Configuration parameters
|
# Configuration parameters
|
||||||
|
@ -89,56 +99,50 @@ TEST_RUNNER = ${PHP_DIR}/xmlrpc/testRunner.sh
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean dist \
|
.PHONY: all dir_setup doc clean docclean depclean distclean dist install
|
||||||
db_init db_clean testonly
|
|
||||||
|
|
||||||
all: dir_setup db_init
|
all: dir_setup
|
||||||
|
|
||||||
|
#dir_setup: ${TMP_DIR} ${DOXYGEN_DIR}
|
||||||
dir_setup: ${DOXYGEN_DIR}
|
dir_setup: ${DOXYGEN_DIR}
|
||||||
bin/setupDirs.sh ${STOR_DIR} ${ACCESS_DIR} ${TRANS_DIR} ${BUFF_DIR}
|
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
${DOXYGEN} ${DOXYGEN_CONFIG}
|
${DOXYGEN} ${DOXYGEN_CONFIG}
|
||||||
|
|
||||||
clean: db_clean
|
clean:
|
||||||
${RMDIR} ${STOR_DIR}
|
# ${RM} ...
|
||||||
${RMDIR} ${ACCESS_DIR}
|
|
||||||
${RMDIR} ${TRANS_DIR}
|
|
||||||
|
|
||||||
docclean:
|
docclean:
|
||||||
${RMDIR} ${DOXYGEN_DIR}/html
|
${RMDIR} ${DOXYGEN_DIR}/html
|
||||||
|
|
||||||
depclean: clean
|
depclean: clean
|
||||||
|
|
||||||
dist:
|
dist: all
|
||||||
${TAR_C} ${MODULE_NAME}${DATE}${DIST_EXT} *
|
${TAR_C} ${MODULE_NAME}${DATE}${DIST_EXT} *
|
||||||
|
|
||||||
distclean: clean docclean
|
distclean: clean docclean
|
||||||
|
# ${RMDIR} ${TMP_DIR}/config* ${TMP_DIR}/autom4te*
|
||||||
|
|
||||||
testonly: ${TEST_RUNNER}
|
#check: all ${TEST_RUNNER}
|
||||||
${TEST_RUNNER}
|
# ${TEST_RUNNER}
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
#testonly
|
|
||||||
|
|
||||||
recheck: clean check
|
install:
|
||||||
|
${CP} ${BIN_DIR}/*.sh ${USR_DIR}/bin
|
||||||
|
${RM} ${USR_DIR}/bin/autogen.sh
|
||||||
|
${MKDIR} ${DEST_DIR}
|
||||||
|
${CP} ${VAR_DIR}/*.php ${DEST_DIR}
|
||||||
|
${CAT} ${VAR_DIR}/conf.php.template | ${SED} -e ${REPLACE_SED_STRING} \
|
||||||
|
> ${DEST_DIR}/conf.php
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
db_init:
|
|
||||||
cd var/install; php -q install.php
|
|
||||||
|
|
||||||
db_clean:
|
|
||||||
cd var/install; php -q uninstall.php
|
|
||||||
|
|
||||||
${TMP_DIR}:
|
|
||||||
${MKDIR} ${TMP_DIR}
|
|
||||||
|
|
||||||
${DOXYGEN_DIR}:
|
${DOXYGEN_DIR}:
|
||||||
${MKDIR} ${DOXYGEN_DIR}
|
${MKDIR} ${DOXYGEN_DIR}
|
||||||
|
|
||||||
${TEST_RUNNER}:
|
#${TEST_RUNNER}:
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Pattern rules
|
# Pattern rules
|
45
livesupport/modules/storageAdmin/etc/configure.ac
Normal file
45
livesupport/modules/storageAdmin/etc/configure.ac
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageAdmin/etc/configure.ac,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl NOTE: Run all configure related scripts from the tmp directory of the
|
||||||
|
dnl project.
|
||||||
|
dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_INIT(StorageAdmin, 1.0, bugs@campware.org)
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(../var/getStorPath.php)
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
AC_OUTPUT()
|
|
@ -22,11 +22,11 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.1 $
|
Version : $Revision: 1.2 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageAdmin/var/conf.php.template,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageAdmin/var/conf.php.template,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
$storageServerPath = 'ls_install_dir/var/storageServer';
|
$storageServerPath = 'ls_var_dir/LiveSupport/storageServer';
|
||||||
?>
|
?>
|
||||||
|
|
101
livesupport/modules/storageServer/bin/autogen.sh
Executable file
101
livesupport/modules/storageServer/bin/autogen.sh
Executable file
|
@ -0,0 +1,101 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="StorageServer"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
#ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
#echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
#cp -f ${configure_ac} ${tmpdir}
|
||||||
|
#cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
#aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
|
#echo " autoheader ${configure_ac}"
|
||||||
|
#autoheader ${configure_ac}
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
216
livesupport/modules/storageServer/bin/createDatabase.sh
Executable file
216
livesupport/modules/storageServer/bin/createDatabase.sh
Executable file
|
@ -0,0 +1,216 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/bin/createDatabase.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# This script reates the database used by LiveSupport
|
||||||
|
#
|
||||||
|
# Invoke as:
|
||||||
|
# ./bin/createDatabase.sh
|
||||||
|
#
|
||||||
|
# To get usage help, try the -h option
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Determine directories, files
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
docdir=$basedir/doc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
usrdir=$basedir/usr
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Print the usage information for this script.
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
printUsage()
|
||||||
|
{
|
||||||
|
echo "LiveSupport scheduler database creation script.";
|
||||||
|
echo "parameters";
|
||||||
|
echo "";
|
||||||
|
echo " -D, --database The name of the LiveSupport database.";
|
||||||
|
echo " [default: LiveSupport]";
|
||||||
|
echo " -s, --dbserver The name of the database server host.";
|
||||||
|
echo " [default: localhost]";
|
||||||
|
echo " -u, --dbuser The name of the database user to access the"
|
||||||
|
echo " database. [default: livesupport]";
|
||||||
|
echo " -w, --dbpassword The database user password.";
|
||||||
|
echo " [default: livesupport]";
|
||||||
|
echo " -h, --help Print this message and exit.";
|
||||||
|
echo "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Process command line parameters
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
CMD=${0##*/}
|
||||||
|
|
||||||
|
opts=$(getopt -o D:hs:u:w: -l database:,dbserver:,dbuser:,dbpassword:,help, -n $CMD -- "$@") || exit 1
|
||||||
|
eval set -- "$opts"
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-D|--database)
|
||||||
|
database=$2;
|
||||||
|
shift; shift;;
|
||||||
|
-h|--help)
|
||||||
|
printUsage;
|
||||||
|
exit 0;;
|
||||||
|
-s|--dbserver)
|
||||||
|
dbserver=$2;
|
||||||
|
shift; shift;;
|
||||||
|
-u|--dbuser)
|
||||||
|
dbuser=$2;
|
||||||
|
shift; shift;;
|
||||||
|
-w|--dbpassword)
|
||||||
|
dbpassword=$2;
|
||||||
|
shift; shift;;
|
||||||
|
--)
|
||||||
|
shift;
|
||||||
|
break;;
|
||||||
|
*)
|
||||||
|
echo "Unrecognized option $1.";
|
||||||
|
printUsage;
|
||||||
|
exit 1;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "x$dbserver" == "x" ]; then
|
||||||
|
dbserver=localhost;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$database" == "x" ]; then
|
||||||
|
database=LiveSupport;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$dbuser" == "x" ]; then
|
||||||
|
dbuser=livesupport;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$dbpassword" == "x" ]; then
|
||||||
|
dbpassword=livesupport;
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Creating database for LiveSupport scheduler.";
|
||||||
|
echo "";
|
||||||
|
echo "Using the following parameters:";
|
||||||
|
echo "";
|
||||||
|
echo " database server: $dbserver";
|
||||||
|
echo " database: $database";
|
||||||
|
echo " database user: $dbuser";
|
||||||
|
echo " database user password: $dbpassword";
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# The details of installation
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
ls_dbserver=$dbserver
|
||||||
|
ls_dbuser=$dbuser
|
||||||
|
ls_dbpassword=$dbpassword
|
||||||
|
ls_database=$database
|
||||||
|
|
||||||
|
|
||||||
|
postgres_user=postgres
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Function to check for the existence of an executable on the PATH
|
||||||
|
#
|
||||||
|
# @param $1 the name of the exectuable
|
||||||
|
# @return 0 if the executable exists on the PATH, non-0 otherwise
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
check_exe() {
|
||||||
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
|
echo "Executable $1 found...";
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
echo "Executable $1 not found...";
|
||||||
|
return 1;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check to see if this script is being run as root
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
if [ `whoami` != "root" ]; then
|
||||||
|
echo "Please run this script as root.";
|
||||||
|
exit ;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check for required tools
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Checking for required tools..."
|
||||||
|
|
||||||
|
check_exe "su" || exit 1;
|
||||||
|
check_exe "psql" || exit 1;
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Create the necessary database user and database itself
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Creating database and database user...";
|
||||||
|
|
||||||
|
# FIXME: the below might not work for remote databases
|
||||||
|
|
||||||
|
if [ "x$ls_dbserver" == "xlocalhost" ]; then
|
||||||
|
su - $postgres_user -c "echo \"CREATE USER $ls_dbuser \
|
||||||
|
ENCRYPTED PASSWORD '$ls_dbpassword' \
|
||||||
|
CREATEDB NOCREATEUSER;\" \
|
||||||
|
| psql template1" \
|
||||||
|
|| echo "Couldn't create database user $ls_dbuser.";
|
||||||
|
|
||||||
|
su - $postgres_user -c "echo \"CREATE DATABASE \\\"$ls_database\\\" \
|
||||||
|
OWNER $ls_dbuser ENCODING 'utf-8';\" \
|
||||||
|
| psql template1" \
|
||||||
|
|| echo "Couldn't create database $ls_database.";
|
||||||
|
else
|
||||||
|
echo "Unable to automatically create database user and table for";
|
||||||
|
echo "remote database $ls_dbserver.";
|
||||||
|
echo "Make sure to create database user $ls_dbuser with password";
|
||||||
|
echo "$ls_dbpassword on database server at $ls_dbserver.";
|
||||||
|
echo "Also create a database called $ld_database, owned by this user.";
|
||||||
|
echo "";
|
||||||
|
echo "The easiest way to achieve this is by issuing the following SQL";
|
||||||
|
echo "commands to PostgreSQL:";
|
||||||
|
echo "CREATE USER $ls_dbuser";
|
||||||
|
echo " ENCRYPTED PASSWORD '$ls_dbpassword'";
|
||||||
|
echo " CREATEDB NOCREATEUSER;";
|
||||||
|
echo "CREATE DATABASE \"$ls_database\"";
|
||||||
|
echo " OWNER $ls_dbuser ENCODING 'utf-8';";
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: check for the success of these operations somehow
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Say goodbye
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Done."
|
||||||
|
|
52
livesupport/modules/storageServer/configure
vendored
Executable file
52
livesupport/modules/storageServer/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
258
livesupport/modules/storageServer/etc/Makefile.in
Normal file
258
livesupport/modules/storageServer/etc/Makefile.in
Normal file
|
@ -0,0 +1,258 @@
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# StorageServer - file storage component
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/etc/Makefile.in,v $
|
||||||
|
#
|
||||||
|
# @configure_input@
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# General command definitions
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
MKDIR = mkdir -p
|
||||||
|
RM = rm -f
|
||||||
|
RMDIR = rm -rf
|
||||||
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -r
|
||||||
|
SED = sed
|
||||||
|
ECHO = echo
|
||||||
|
CAT = cat
|
||||||
|
PHP = php
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Misc
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MODULE_NAME = storageServer
|
||||||
|
TAR_C = tar -cj --exclude CVS --exclude '*~' -C ${BASE_DIR} -f
|
||||||
|
DIST_EXT = .tgz
|
||||||
|
DATE = `date +%y%m%d`
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Basic directory and file definitions
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#BASE_DIR = @builddir@
|
||||||
|
BASE_DIR = .
|
||||||
|
DOC_DIR = ${BASE_DIR}/doc
|
||||||
|
DOXYGEN_DIR = ${DOC_DIR}/doxygen
|
||||||
|
ETC_DIR = ${BASE_DIR}/etc
|
||||||
|
INCLUDE_DIR = ${BASE_DIR}/include
|
||||||
|
LIB_DIR = ${BASE_DIR}/lib
|
||||||
|
SRC_DIR = ${BASE_DIR}/src
|
||||||
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
|
||||||
|
USR_DIR = @prefix@
|
||||||
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
|
|
||||||
|
DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
|
||||||
|
|
||||||
|
PHP_DIR = ${VAR_DIR}
|
||||||
|
INSTALL_DIR = ${PHP_DIR}/install
|
||||||
|
STOR_DIR = ${PHP_DIR}/stor
|
||||||
|
ACCESS_DIR = ${PHP_DIR}/access
|
||||||
|
TRANS_DIR = ${PHP_DIR}/trans
|
||||||
|
BUFF_DIR = ${STOR_DIR}/buffer
|
||||||
|
TEST_RUNNER = ${PHP_DIR}/xmlrpc/testRunner.sh
|
||||||
|
|
||||||
|
PEAR_TOOL_DIR = ${BASE_DIR}/../../tools/pear
|
||||||
|
PEAR_INSTALLER = ${PEAR_TOOL_DIR}/bin/install.sh
|
||||||
|
|
||||||
|
DEST_DIR = ${USR_VAR_DIR}/LiveSupport/storageServer/var
|
||||||
|
|
||||||
|
HOSTNAME = @HOSTNAME@
|
||||||
|
WWW_PORT = @WWW_PORT@
|
||||||
|
DB_SERVER = @DB_SERVER@
|
||||||
|
DATABASE = @DATABASE@
|
||||||
|
DB_USER = @DB_USER@
|
||||||
|
DB_PASSWORD = @DB_PASSWORD@
|
||||||
|
SCHEDULER_PORT = @SCHEDULER_PORT@
|
||||||
|
|
||||||
|
PHP_URL_PREFIX=livesupport
|
||||||
|
SCHEDULER_URL_PREFIX =
|
||||||
|
SCHEDULER_XML_RPC_PREFIX = RC2
|
||||||
|
|
||||||
|
USR_LIB_DIR_S=$(shell ${ECHO} ${USR_LIB_DIR} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
PHP_URL_PREFIX_S=$(shell ${ECHO} ${PHP_URL_PREFIX} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
|
||||||
|
REPLACE_SED_STRING="s/ls_lib_dir/${USR_LIB_DIR_S}/; \
|
||||||
|
s/ls_dbuser/${DB_USER}/; \
|
||||||
|
s/ls_dbpassword/${DB_PASSWORD}/; \
|
||||||
|
s/ls_dbserver/${DB_SERVER}/; \
|
||||||
|
s/ls_database/${DATABASE}/; \
|
||||||
|
s/ls_storageUrlPath/\/${PHP_URL_PREFIX_S}\/storageServer\/var/; \
|
||||||
|
s/ls_php_host/${HOSTNAME}/; \
|
||||||
|
s/ls_php_port/${WWW_PORT}/; \
|
||||||
|
s/ls_archiveUrlPath/\/${PHP_URL_PREFIX_S}\/archiveServer\/var/; \
|
||||||
|
s/ls_scheduler_urlPrefix/${SCHEDULER_URL_PREFIX}/; \
|
||||||
|
s/ls_scheduler_xmlRpcPrefix/${SCHEDULER_XML_RPC_PREFIX}/; \
|
||||||
|
s/ls_scheduler_host/${HOSTNAME}/; \
|
||||||
|
s/ls_scheduler_port/${SCHEDULER_PORT}/;"
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Configuration parameters
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#CPPFLAGS = @CPPFLAGS@
|
||||||
|
#CXXFLAGS = @CXXFLAGS@ @DEFS@ -I${USR_INCLUDE_DIR} -I${INCLUDE_DIR} -I${TMP_DIR}\
|
||||||
|
# -pedantic -Wall
|
||||||
|
#LDFLAGS = @LDFLAGS@ -L${USR_LIB_DIR} -L${LIB_DIR}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Dependencies
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#HELLO_LIB_OBJS = ${TMP_DIR}/Hello.o
|
||||||
|
#TEST_RUNNER_OBJS = ${TMP_DIR}/HelloTest.o ${TMP_DIR}/TestRunner.o
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Targets
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
.PHONY: all dir_setup doc clean docclean depclean distclean dist install
|
||||||
|
.PHONY: db_init db_clean testonly transtest storage reset pear_setup_devel
|
||||||
|
.PHONY: copy_files create_database init_database
|
||||||
|
|
||||||
|
all:
|
||||||
|
|
||||||
|
doc:
|
||||||
|
${DOXYGEN} ${DOXYGEN_CONFIG}
|
||||||
|
|
||||||
|
clean: db_clean
|
||||||
|
${RMDIR} ${STOR_DIR}
|
||||||
|
${RMDIR} ${ACCESS_DIR}
|
||||||
|
${RMDIR} ${TRANS_DIR}
|
||||||
|
|
||||||
|
docclean:
|
||||||
|
${RMDIR} ${DOXYGEN_DIR}/html
|
||||||
|
|
||||||
|
depclean: clean
|
||||||
|
|
||||||
|
dist:
|
||||||
|
${TAR_C} ${MODULE_NAME}${DATE}${DIST_EXT} *
|
||||||
|
|
||||||
|
distclean: clean docclean
|
||||||
|
|
||||||
|
testonly: ${TEST_RUNNER}
|
||||||
|
${TEST_RUNNER}
|
||||||
|
|
||||||
|
check: all testonly
|
||||||
|
|
||||||
|
install: copy_files create_database init_database
|
||||||
|
|
||||||
|
copy_files:
|
||||||
|
${MKDIR} ${DEST_DIR}
|
||||||
|
${MKDIR} ${DEST_DIR}/access
|
||||||
|
${MKDIR} ${DEST_DIR}/cron
|
||||||
|
${MKDIR} ${DEST_DIR}/install
|
||||||
|
${MKDIR} ${DEST_DIR}/stor
|
||||||
|
${MKDIR} ${DEST_DIR}/stor/buffer
|
||||||
|
${MKDIR} ${DEST_DIR}/trans
|
||||||
|
${MKDIR} ${DEST_DIR}/xmlrpc
|
||||||
|
${MKDIR} ${DEST_DIR}/xmlrpc/XML
|
||||||
|
${MKDIR} ${DEST_DIR}/xmlrpc/XML/RPC
|
||||||
|
${CP} ${VAR_DIR}/*.{php,xml} ${DEST_DIR}
|
||||||
|
${CP} ${VAR_DIR}/cron/*.php ${DEST_DIR}/cron
|
||||||
|
${CP} ${VAR_DIR}/install/*.php \
|
||||||
|
${DEST_DIR}/install
|
||||||
|
${CP} ${VAR_DIR}/xmlrpc/*.php \
|
||||||
|
${DEST_DIR}/xmlrpc
|
||||||
|
${CP} ${VAR_DIR}/xmlrpc/XML/*.php \
|
||||||
|
${DEST_DIR}/xmlrpc/XML
|
||||||
|
${CP} ${VAR_DIR}/xmlrpc/XML/RPC/*.php \
|
||||||
|
${DEST_DIR}/xmlrpc/XML/RPC
|
||||||
|
${CAT} ${VAR_DIR}/conf.php.template | ${SED} -e ${REPLACE_SED_STRING} \
|
||||||
|
> ${DEST_DIR}/conf.php
|
||||||
|
|
||||||
|
${RM} ${WWW_DOCROOT}/livesupport
|
||||||
|
ln -sf ${USR_VAR_DIR}/LiveSupport ${WWW_DOCROOT}/livesupport
|
||||||
|
|
||||||
|
create_database:
|
||||||
|
ifeq (@CREATE_LS_DATABASE@,yes)
|
||||||
|
${BIN_DIR}/createDatabase.sh --database=${DATABASE} \
|
||||||
|
--dbserver=${DB_SERVER} \
|
||||||
|
--dbuser=${DB_USER} \
|
||||||
|
--dbpassword=${DB_PASSWORD}
|
||||||
|
endif
|
||||||
|
|
||||||
|
init_database:
|
||||||
|
ifeq (@INIT_LS_DATABASE@,yes)
|
||||||
|
cd ${DEST_DIR}/install && ${PHP} -q install.php
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
recheck: clean check
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Specific targets
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
storage: pear_setup_devel dir_setup db_init
|
||||||
|
|
||||||
|
storagecheck: storage testonly
|
||||||
|
|
||||||
|
pear_setup_devel:
|
||||||
|
${PEAR_INSTALLER} -d ${PEAR_TOOL_DIR}/tmp
|
||||||
|
|
||||||
|
pear_install:
|
||||||
|
${PEAR_INSTALLER} -d ${USR_DIR}
|
||||||
|
|
||||||
|
dir_setup: ${DOXYGEN_DIR}
|
||||||
|
bin/setupDirs.sh ${STOR_DIR} ${ACCESS_DIR} ${TRANS_DIR} ${BUFF_DIR}
|
||||||
|
|
||||||
|
db_init:
|
||||||
|
cd var/install; php -q install.php
|
||||||
|
|
||||||
|
db_clean:
|
||||||
|
cd var/install; php -q uninstall.php
|
||||||
|
|
||||||
|
reset:
|
||||||
|
./bin/resetStorage.sh
|
||||||
|
|
||||||
|
archive:
|
||||||
|
$(MAKE) -C ../archiveServer all
|
||||||
|
|
||||||
|
archiveclean:
|
||||||
|
$(MAKE) -C ../archiveServer clean
|
||||||
|
|
||||||
|
transtest:
|
||||||
|
./var/tests/transTest.sh
|
||||||
|
# cd var/tests; php -q transTest.php
|
||||||
|
|
||||||
|
${TMP_DIR}:
|
||||||
|
${MKDIR} ${TMP_DIR}
|
||||||
|
|
||||||
|
${DOXYGEN_DIR}:
|
||||||
|
${MKDIR} ${DOXYGEN_DIR}
|
||||||
|
|
||||||
|
${TEST_RUNNER}:
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Pattern rules
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#${TMP_DIR}/%.o : ${SRC_DIR}/%.cxx
|
||||||
|
# ${CXX} ${CPPFLAGS} ${CXXFLAGS} -c -o $@ $<
|
||||||
|
|
184
livesupport/modules/storageServer/etc/configure.ac
Normal file
184
livesupport/modules/storageServer/etc/configure.ac
Normal file
|
@ -0,0 +1,184 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/etc/configure.ac,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl NOTE: Run all configure related scripts from the tmp directory of the
|
||||||
|
dnl project.
|
||||||
|
dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_INIT(StorageServer, 1.0, bugs@campware.org)
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(../var/BasicStor.php)
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the LiveSupport database and user should be created
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(CREATE_LS_DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([create-database],
|
||||||
|
AC_HELP_STRING([--with-create-database],
|
||||||
|
[specify wether the LiveSupport database and database user
|
||||||
|
should be created (no)]),
|
||||||
|
[CREATE_LS_DATABASE=${withval}],
|
||||||
|
[CREATE_LS_DATABASE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([creating LiveSupport database: ${CREATE_LS_DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the LiveSupport database tables should be initialized
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(INIT_LS_DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([init-database],
|
||||||
|
AC_HELP_STRING([--with-init-database],
|
||||||
|
[specify wether the LiveSupport database tables should be
|
||||||
|
initialized (no)]),
|
||||||
|
[INIT_LS_DATABASE=${withval}],
|
||||||
|
[INIT_LS_DATABASE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([initializing LiveSupport database: ${INIT_LS_DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the FQDN
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(HOSTNAME)
|
||||||
|
|
||||||
|
AC_ARG_WITH([hostname],
|
||||||
|
AC_HELP_STRING([--with-hostname],
|
||||||
|
[use the specified hostname (guess)]),
|
||||||
|
[HOSTNAME=${withval}], [HOSTNAME=`hostname -f`])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using hostname: ${HOSTNAME}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the web server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(WWW_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([www-port],
|
||||||
|
AC_HELP_STRING([--with-www-port],
|
||||||
|
[use the specified www port (80)]),
|
||||||
|
[WWW_PORT=${withval}], [WWW_PORT=80])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using www port: ${WWW_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the scheduler server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(SCHEDULER_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([scheduler-port],
|
||||||
|
AC_HELP_STRING([--with-scheduler-port],
|
||||||
|
[use the specified scheduler port (3344)]),
|
||||||
|
[SCHEDULER_PORT=${withval}], [SCHEDULER_PORT=3344])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using scheduler port: ${SCHEDULER_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server name
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_SERVER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-server],
|
||||||
|
AC_HELP_STRING([--with-database-server],
|
||||||
|
[use the specified database server (localhost)]),
|
||||||
|
[DB_SERVER=${withval}], [DB_SERVER=localhost])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server: ${DB_SERVER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl get the name of the LiveSupport database
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database],
|
||||||
|
AC_HELP_STRING([--with-database],
|
||||||
|
[the name of the postgresql database to use (LiveSupport)]),
|
||||||
|
[DATABASE=${withval}], [DATABASE=LiveSupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database: ${DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_USER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-user],
|
||||||
|
AC_HELP_STRING([--with-database-user],
|
||||||
|
[use the specified database server user (livesupport)]),
|
||||||
|
[DB_USER=${withval}], [DB_USER=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user: ${DB_USER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user password
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_PASSWORD)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-password],
|
||||||
|
AC_HELP_STRING([--with-database-password],
|
||||||
|
[use the specified database server user password (livesupport)]),
|
||||||
|
[DB_PASSWORD=${withval}], [DB_PASSWORD=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user password: ${DB_PASSWORD}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl display status info on what libraries will get compiled
|
||||||
|
|
||||||
|
AC_MSG_NOTICE(
|
||||||
|
[using the following configuration settings:
|
||||||
|
|
||||||
|
hostname: ${HOSTNAME}
|
||||||
|
www port: ${WWW_PORT}
|
||||||
|
scheduler port: ${SCHEDULER_PORT}
|
||||||
|
database server: ${DB_SERVER}
|
||||||
|
database name: ${DATABASE}
|
||||||
|
database user: ${DB_USER}
|
||||||
|
database user password: ${DB_PASSWORD}
|
||||||
|
creating LiveSupport database: ${CREATE_LS_DATABASE}
|
||||||
|
initialize LiveSupport database: ${INIT_LS_DATABASE}
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
AC_OUTPUT()
|
|
@ -22,8 +22,8 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.22 $
|
Version : $Revision: 1.23 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/conf.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/conf.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -88,7 +88,7 @@ $config = array(
|
||||||
'bufferDir' => dirname(__FILE__).'/../../storageServer/var/stor/buffer',
|
'bufferDir' => dirname(__FILE__).'/../../storageServer/var/stor/buffer',
|
||||||
'transDir' => dirname(__FILE__).'/../../storageServer/var/trans',
|
'transDir' => dirname(__FILE__).'/../../storageServer/var/trans',
|
||||||
'accessDir' => dirname(__FILE__).'/../../storageServer/var/access',
|
'accessDir' => dirname(__FILE__).'/../../storageServer/var/access',
|
||||||
'pearPath' => dirname(__FILE__).'/../../../usr/lib/php/php',
|
'pearPath' => dirname(__FILE__).'/../../../tools/pear/tmp/lib/pear',
|
||||||
'isArchive' => FALSE,
|
'isArchive' => FALSE,
|
||||||
'validate' => TRUE,
|
'validate' => TRUE,
|
||||||
'useTrash' => TRUE,
|
'useTrash' => TRUE,
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.6 $
|
Version : $Revision: 1.7 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/conf.php.template,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/conf.php.template,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -88,7 +88,7 @@ $config = array(
|
||||||
'bufferDir' => dirname(__FILE__).'/../../storageServer/var/stor/buffer',
|
'bufferDir' => dirname(__FILE__).'/../../storageServer/var/stor/buffer',
|
||||||
'transDir' => dirname(__FILE__).'/../../storageServer/var/trans',
|
'transDir' => dirname(__FILE__).'/../../storageServer/var/trans',
|
||||||
'accessDir' => dirname(__FILE__).'/../../storageServer/var/access',
|
'accessDir' => dirname(__FILE__).'/../../storageServer/var/access',
|
||||||
'pearPath' => 'ls_install_dir/usr/lib/php/php',
|
'pearPath' => 'ls_lib_dir/pear',
|
||||||
'isArchive' => FALSE,
|
'isArchive' => FALSE,
|
||||||
'validate' => TRUE,
|
'validate' => TRUE,
|
||||||
'useTrash' => TRUE,
|
'useTrash' => TRUE,
|
||||||
|
|
52
livesupport/modules/widgets/configure
vendored
Executable file
52
livesupport/modules/widgets/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.20 $
|
# Version : $Revision: 1.21 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,7 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -52,10 +53,12 @@ SRC_DIR = ${BASE_DIR}/src
|
||||||
TMP_DIR = ${BASE_DIR}/tmp
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
VAR_DIR = ${BASE_DIR}/var
|
VAR_DIR = ${BASE_DIR}/var
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_BIN_DIR = ${USR_DIR}/bin
|
USR_BIN_DIR = ${USR_DIR}/bin
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
|
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
|
||||||
MODULES_DIR = ${BASE_DIR}/..
|
MODULES_DIR = ${BASE_DIR}/..
|
||||||
|
@ -155,7 +158,7 @@ TEST_EXE_LIBS = -l${WIDGETS_LIB} -l${CORE_LIB} ${ICU_LIBS} \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
|
|
||||||
all: dir_setup ${WIDGETS_LIB_FILE}
|
all: dir_setup ${WIDGETS_LIB_FILE}
|
||||||
|
|
||||||
|
@ -184,6 +187,42 @@ run: all ${TEST_EXE} ${TEST_RUNNER_RES}
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MKDIR} ${USR_INCLUDE_DIR}/LiveSupport/Widgets
|
||||||
|
${CP} ${INCLUDE_DIR}/LiveSupport/Widgets/*.h \
|
||||||
|
${USR_INCLUDE_DIR}/LiveSupport/Widgets
|
||||||
|
${CP} ${WIDGETS_LIB_FILE} ${USR_LIB_DIR}
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport/Widgets/blueBin \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/button \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/combo \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/darkBlueBin \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/entryBin \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/icons \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/imageButton \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/tabButton \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/titleImages \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/whiteWindow
|
||||||
|
${CP} ${VAR_DIR}/blueBin/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/blueBin
|
||||||
|
${CP} ${VAR_DIR}/button/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/button
|
||||||
|
${CP} ${VAR_DIR}/combo/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/combo
|
||||||
|
${CP} ${VAR_DIR}/darkBlueBin/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/darkBlueBin
|
||||||
|
${CP} ${VAR_DIR}/entryBin/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/entryBin
|
||||||
|
${CP} ${VAR_DIR}/icons/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/icons
|
||||||
|
${CP} ${VAR_DIR}/imageButton/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/imageButton
|
||||||
|
${CP} ${VAR_DIR}/tabButton/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/tabButton
|
||||||
|
${CP} ${VAR_DIR}/titleImages/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/titleImages
|
||||||
|
${CP} ${VAR_DIR}/whiteWindow/*.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport/Widgets/whiteWindow
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Specific targets
|
# Specific targets
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.1 $
|
dnl Version : $Revision: 1.2 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(Widgets, 1.0, bugs@campware.org)
|
AC_INIT(Widgets, 1.0, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.1 $)
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../include/LiveSupport/Widgets/ImageButton.h)
|
AC_CONFIG_SRCDIR(../include/LiveSupport/Widgets/ImageButton.h)
|
||||||
|
|
||||||
|
@ -44,14 +44,29 @@ AC_PROG_CXX()
|
||||||
|
|
||||||
AC_CHECK_HEADERS(getopt.h)
|
AC_CHECK_HEADERS(getopt.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GTKMM,[gtkmm-2.4 >= 2.4.0])
|
PKG_CHECK_MODULES(GTKMM,[gtkmm-2.4 >= 2.5.5])
|
||||||
AC_SUBST(GTKMM_CFLAGS)
|
AC_SUBST(GTKMM_CFLAGS)
|
||||||
AC_SUBST(GTKMM_LIBS)
|
AC_SUBST(GTKMM_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
BIN
livesupport/modules/widgets/var/imageButton/masterPause.png
Normal file
BIN
livesupport/modules/widgets/var/imageButton/masterPause.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
livesupport/modules/widgets/var/imageButton/masterPauseRoll.png
Normal file
BIN
livesupport/modules/widgets/var/imageButton/masterPauseRoll.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.3 $
|
# Version : $Revision: 1.4 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/bin/gLiveSupport.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/bin/gLiveSupport.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -49,10 +49,6 @@ tmpdir=$basedir/tmp
|
||||||
gstreamer_dir=`find $libdir -type d -name "gstreamer-*"`
|
gstreamer_dir=`find $libdir -type d -name "gstreamer-*"`
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH
|
||||||
export GDK_PIXBUF_MODULE_FILE=$etcdir/gtk-2.0/gdk-pixbuf.loaders
|
|
||||||
export PANGO_RC_FILE=$etcdir/pango/pango.rc
|
|
||||||
export GST_REGISTRY=$etcdir/gst-registry.xml
|
|
||||||
export GST_PLUGIN_PATH=$gstreamer_dir
|
|
||||||
gLiveSupport_exe=$bindir/gLiveSupport
|
gLiveSupport_exe=$bindir/gLiveSupport
|
||||||
config_file=$etcdir/gLiveSupport.xml
|
config_file=$etcdir/gLiveSupport.xml
|
||||||
|
|
||||||
|
|
52
livesupport/products/gLiveSupport/configure
vendored
Executable file
52
livesupport/products/gLiveSupport/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.47 $
|
# Version : $Revision: 1.48 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -34,6 +34,11 @@ MKDIR = mkdir -p
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
CP = cp -f
|
||||||
|
SED = sed
|
||||||
|
ECHO = echo
|
||||||
|
CAT = cat
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Basic directory and file definitions
|
# Basic directory and file definitions
|
||||||
|
@ -53,12 +58,54 @@ VAR_DIR = ${BASE_DIR}/var
|
||||||
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
||||||
|
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
|
USR_BIN_DIR = ${USR_DIR}/bin
|
||||||
|
USR_ETC_DIR = ${USR_DIR}/etc
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
USR_BIN_DIR = ${USR_DIR}/bin
|
USR_TMP_DIR = ${USR_DIR}/tmp
|
||||||
|
USR_VAR_DIR = ${USR_DIR}/var
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
|
||||||
|
HOSTNAME = @HOSTNAME@
|
||||||
|
WWW_PORT = @WWW_PORT@
|
||||||
|
SCHEDULER_PORT = @SCHEDULER_PORT@
|
||||||
|
DB_SERVER = @DB_SERVER@
|
||||||
|
DATABASE = @DATABASE@
|
||||||
|
DB_USER = @DB_USER@
|
||||||
|
DB_PASSWORD = @DB_PASSWORD@
|
||||||
|
AUDIO_OUT = "@AUDIO_OUT@"
|
||||||
|
AUDIO_CUE = "@AUDIO_CUE@"
|
||||||
|
|
||||||
|
PHP_URL_PREFIX=livesupport
|
||||||
|
ALIB_XML_RPC_PREFIX=xmlrpc/xrLocStor.php
|
||||||
|
SCHEDULER_XML_RPC_PREFIX=RC2
|
||||||
|
|
||||||
|
USR_VAR_DIR_S=$(shell ${ECHO} ${USR_VAR_DIR} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
USR_TMP_DIR_S=$(shell ${ECHO} ${USR_TMP_DIR} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
PHP_URL_PREFIX_S=$(shell ${ECHO} ${PHP_URL_PREFIX} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
ALIB_XML_RPC_PREFIX_S=$(shell ${ECHO} ${ALIB_XML_RPC_PREFIX} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
AUDIO_OUT_S=$(shell ${ECHO} ${AUDIO_OUT} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
AUDIO_CUE_S=$(shell ${ECHO} ${AUDIO_CUE} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
|
||||||
|
|
||||||
|
REPLACE_SED_STRING="s/ls_var_dir/${USR_VAR_DIR_S}/; \
|
||||||
|
s/ls_dbuser/${DB_USER}/; \
|
||||||
|
s/ls_dbpassword/${DB_PASSWORD}/; \
|
||||||
|
s/ls_dbserver/${DB_SERVER}/; \
|
||||||
|
s/ls_database/${DATABASE}/; \
|
||||||
|
s/ls_php_urlPrefix/${PHP_URL_PREFIX_S}/; \
|
||||||
|
s/ls_php_host/${HOSTNAME}/; \
|
||||||
|
s/ls_php_port/${WWW_PORT}/; \
|
||||||
|
s/ls_alib_xmlRpcPrefix/${ALIB_XML_RPC_PREFIX_S}/; \
|
||||||
|
s/ls_tmp_dir/${USR_TMP_DIR_S}/; \
|
||||||
|
s/ls_audio_output_device/${AUDIO_OUT_S}/; \
|
||||||
|
s/ls_audio_cue_device/${AUDIO_CUE_S}/; \
|
||||||
|
s/ls_scheduler_host/${HOSTNAME}/; \
|
||||||
|
s/ls_scheduler_port/${SCHEDULER_PORT}/; \
|
||||||
|
s/ls_scheduler_xmlRpcPrefix/${SCHEDULER_XML_RPC_PREFIX}/;"
|
||||||
|
|
||||||
|
|
||||||
GENRB = ${USR_BIN_DIR}/genrb
|
GENRB = ${USR_BIN_DIR}/genrb
|
||||||
GENRBOPTS = --destdir ${TMP_DIR} \
|
GENRBOPTS = --destdir ${TMP_DIR} \
|
||||||
--encoding utf-8 \
|
--encoding utf-8 \
|
||||||
|
@ -242,8 +289,8 @@ TEST_RUNNER_LIBS = ${G_LIVESUPPORT_EXE_LIBS} -lcppunit -ldl
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
.PHONY: install start run_tests stop uninstall
|
.PHONY: init start run_tests stop deinit
|
||||||
|
|
||||||
all: dir_setup ${G_LIVESUPPORT_EXE} ${G_LIVESUPPORT_RES}
|
all: dir_setup ${G_LIVESUPPORT_EXE} ${G_LIVESUPPORT_RES}
|
||||||
|
|
||||||
|
@ -275,15 +322,35 @@ distclean: clean docclean
|
||||||
|
|
||||||
check: all ${TEST_RUNNER} storage_server_init run_tests
|
check: all ${TEST_RUNNER} storage_server_init run_tests
|
||||||
|
|
||||||
|
install: all
|
||||||
|
${MAKE} -C ${CORE_DIR} install
|
||||||
|
${MAKE} -C ${AUTHENTICATION_DIR} install
|
||||||
|
${MAKE} -C ${STORAGE_DIR} install
|
||||||
|
${MAKE} -C ${WIDGETS_DIR} install
|
||||||
|
${MAKE} -C ${SCHEDULER_CLIENT_DIR} install
|
||||||
|
${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} install
|
||||||
|
${MKDIR} ${USR_BIN_DIR}
|
||||||
|
${MKDIR} ${USR_ETC_DIR}
|
||||||
|
${MKDIR} ${USR_VAR_DIR}/LiveSupport
|
||||||
|
${CP} ${TMP_DIR}/*.res ${USR_VAR_DIR}/LiveSupport
|
||||||
|
${CP} ${VAR_DIR}/livesupport.png ${VAR_DIR}/stationLogo.png \
|
||||||
|
${USR_VAR_DIR}/LiveSupport
|
||||||
|
${CP} ${BIN_DIR}/gLiveSupport.sh ${USR_BIN_DIR}
|
||||||
|
${CP} ${G_LIVESUPPORT_EXE} ${USR_BIN_DIR}
|
||||||
|
${CP} ${ETC_DIR}/gLiveSupport.xml.template ${USR_ETC_DIR}
|
||||||
|
${CAT} ${ETC_DIR}/gLiveSupport.xml.template | \
|
||||||
|
${SED} -e ${REPLACE_SED_STRING} \
|
||||||
|
> ${USR_ETC_DIR}/gLiveSupport.xml
|
||||||
|
|
||||||
run_tests: ${TEST_RUNNER}
|
run_tests: ${TEST_RUNNER}
|
||||||
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
run: all
|
run: all
|
||||||
${G_LIVESUPPORT_SH}
|
${G_LIVESUPPORT_SH}
|
||||||
|
|
||||||
install: ${SCHEDULER_EXE}
|
init: ${SCHEDULER_EXE}
|
||||||
-${MAKE} -C ${STORAGE_SERVER_DIR} db_init
|
-${MAKE} -C ${STORAGE_SERVER_DIR} db_init
|
||||||
-${MAKE} -C ${SCHEDULER_DIR} install
|
-${MAKE} -C ${SCHEDULER_DIR} init
|
||||||
|
|
||||||
start: ${SCHEDULER_EXE}
|
start: ${SCHEDULER_EXE}
|
||||||
${MAKE} -C ${SCHEDULER_DIR} start
|
${MAKE} -C ${SCHEDULER_DIR} start
|
||||||
|
@ -294,8 +361,8 @@ stop: ${SCHEDULER_EXE}
|
||||||
status: ${SCHEDULER_EXE}
|
status: ${SCHEDULER_EXE}
|
||||||
${MAKE} -C ${SCHEDULER_DIR} status
|
${MAKE} -C ${SCHEDULER_DIR} status
|
||||||
|
|
||||||
uninstall: ${SCHEDULER_EXE}
|
deinit: ${SCHEDULER_EXE}
|
||||||
-${MAKE} -C ${SCHEDULER_DIR} uninstall
|
-${MAKE} -C ${SCHEDULER_DIR} deinit
|
||||||
-${MAKE} -C ${STORAGE_SERVER_DIR} db_clean
|
-${MAKE} -C ${STORAGE_SERVER_DIR} db_clean
|
||||||
|
|
||||||
storage_server_init:
|
storage_server_init:
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.8 $
|
dnl Version : $Revision: 1.9 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(gLiveSupport, 0.1, bugs@campware.org)
|
AC_INIT(gLiveSupport, 0.1, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.8 $)
|
AC_REVISION($Revision: 1.9 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/main.cxx)
|
AC_CONFIG_SRCDIR(../src/main.cxx)
|
||||||
|
|
||||||
|
@ -45,11 +45,25 @@ AC_PROG_CXX()
|
||||||
AC_CHECK_HEADERS(sys/types.h unistd.h getopt.h signal.h sys/stat.h time.h)
|
AC_CHECK_HEADERS(sys/types.h unistd.h getopt.h signal.h sys/stat.h time.h)
|
||||||
AC_CHECK_HEADERS(stdio.h fcntl.h sys/time.h)
|
AC_CHECK_HEADERS(stdio.h fcntl.h sys/time.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GTKMM,[gtkmm-2.4 >= 2.4.0])
|
PKG_CHECK_MODULES(GTKMM,[gtkmm-2.4 >= 2.5.5])
|
||||||
AC_SUBST(GTKMM_CFLAGS)
|
AC_SUBST(GTKMM_CFLAGS)
|
||||||
AC_SUBST(GTKMM_LIBS)
|
AC_SUBST(GTKMM_LIBS)
|
||||||
|
|
||||||
|
@ -57,6 +71,7 @@ PKG_CHECK_MODULES(GSTREAMER,[gstreamer-0.8 >= 0.8])
|
||||||
AC_SUBST(GSTREAMER_CFLAGS)
|
AC_SUBST(GSTREAMER_CFLAGS)
|
||||||
AC_SUBST(GSTREAMER_LIBS)
|
AC_SUBST(GSTREAMER_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
dnl enable compilaton for code coverage data
|
dnl enable compilaton for code coverage data
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
@ -74,6 +89,144 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the FQDN
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(HOSTNAME)
|
||||||
|
|
||||||
|
AC_ARG_WITH([hostname],
|
||||||
|
AC_HELP_STRING([--with-hostname],
|
||||||
|
[use the specified hostname (guess)]),
|
||||||
|
[HOSTNAME=${withval}], [HOSTNAME=`hostname -f`])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using hostname: ${HOSTNAME}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the web server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(WWW_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([www-port],
|
||||||
|
AC_HELP_STRING([--with-www-port],
|
||||||
|
[use the specified www port (80)]),
|
||||||
|
[WWW_PORT=${withval}], [WWW_PORT=80])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using www port: ${WWW_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the scheduler server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(SCHEDULER_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([scheduler-port],
|
||||||
|
AC_HELP_STRING([--with-scheduler-port],
|
||||||
|
[use the specified scheduler port (3344)]),
|
||||||
|
[SCHEDULER_PORT=${withval}], [SCHEDULER_PORT=3344])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using scheduler port: ${SCHEDULER_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server name
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_SERVER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-server],
|
||||||
|
AC_HELP_STRING([--with-database-server],
|
||||||
|
[use the specified database server (localhost)]),
|
||||||
|
[DB_SERVER=${withval}], [DB_SERVER=localhost])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server: ${DB_SERVER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl get the name of the LiveSupport database
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database],
|
||||||
|
AC_HELP_STRING([--with-database],
|
||||||
|
[the name of the postgresql database to use (LiveSupport)]),
|
||||||
|
[DATABASE=${withval}], [DATABASE=LiveSupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database: ${DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_USER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-user],
|
||||||
|
AC_HELP_STRING([--with-database-user],
|
||||||
|
[use the specified database server user (livesupport)]),
|
||||||
|
[DB_USER=${withval}], [DB_USER=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user: ${DB_USER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user password
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_PASSWORD)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-password],
|
||||||
|
AC_HELP_STRING([--with-database-password],
|
||||||
|
[use the specified database server user password (livesupport)]),
|
||||||
|
[DB_PASSWORD=${withval}], [DB_PASSWORD=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user password: ${DB_PASSWORD}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the audio output device
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(AUDIO_OUT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([audio-out],
|
||||||
|
AC_HELP_STRING([--with-audio-out],
|
||||||
|
[use the specified audio output device, either ALSA or OSS
|
||||||
|
(plughw:0)]),
|
||||||
|
[AUDIO_OUT=${withval}], [AUDIO_OUT=plughw:0])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using audio output device: ${AUDIO_OUT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the audio cue device
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(AUDIO_CUE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([audio-cue],
|
||||||
|
AC_HELP_STRING([--with-audio-cue],
|
||||||
|
[use the specified audio cue device, either ALSA or OSS
|
||||||
|
(plughw:0)]),
|
||||||
|
[AUDIO_CUE=${withval}], [AUDIO_CUE=plughw:0])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using audio cue device: ${AUDIO_CUE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl display status info on what libraries will get compiled
|
||||||
|
|
||||||
|
AC_MSG_NOTICE(
|
||||||
|
[using the following configuration settings:
|
||||||
|
|
||||||
|
hostname: ${HOSTNAME}
|
||||||
|
www port: ${WWW_PORT}
|
||||||
|
scheduler port: ${SCHEDULER_PORT}
|
||||||
|
database server: ${DB_SERVER}
|
||||||
|
database name: ${DATABASE}
|
||||||
|
database user: ${DB_USER}
|
||||||
|
database user password: ${DB_PASSWORD}
|
||||||
|
audio output device: ${AUDIO_OUT}
|
||||||
|
audio cue device: ${AUDIO_CUE}
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
AC_OUTPUT()
|
AC_OUTPUT()
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<gLiveSupport>
|
<gLiveSupport>
|
||||||
<resourceBundle path = "ls_install_dir/var/gLiveSupport"
|
<resourceBundle path = "ls_var_dir/LiveSupport/gLiveSupport"
|
||||||
locale = "en"
|
locale = "en"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
<language locale="sr_CS_CYRILLIC" name="Српски"/>
|
<language locale="sr_CS_CYRILLIC" name="Српски"/>
|
||||||
</supportedLanguages>
|
</supportedLanguages>
|
||||||
|
|
||||||
<widgetFactory path = "ls_install_dir/var/widgets/" />
|
<widgetFactory path = "ls_var_dir/LiveSupport/Widgets/" />
|
||||||
|
|
||||||
<authenticationClientFactory>
|
<authenticationClientFactory>
|
||||||
<webAuthentication>
|
<webAuthentication>
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
</authenticationClientFactory>
|
</authenticationClientFactory>
|
||||||
|
|
||||||
<storageClientFactory>
|
<storageClientFactory>
|
||||||
<webStorage tempFiles="file://ls_install_dir/tmp/webStorageClient" >
|
<webStorage tempFiles="file://ls_tmp_dir/webStorageClient" >
|
||||||
<location server="ls_php_host" port="ls_php_port"
|
<location server="ls_php_host" port="ls_php_port"
|
||||||
path="/ls_php_urlPrefix/storageServer/var/ls_alib_xmlRpcPrefix"/>
|
path="/ls_php_urlPrefix/storageServer/var/ls_alib_xmlRpcPrefix"/>
|
||||||
</webStorage>
|
</webStorage>
|
||||||
|
@ -133,17 +133,17 @@
|
||||||
|
|
||||||
<outputPlayer>
|
<outputPlayer>
|
||||||
<audioPlayer>
|
<audioPlayer>
|
||||||
<gstreamerPlayer audioDevice = "ls_output_alsa_device" />
|
<gstreamerPlayer audioDevice = "ls_audio_output_device" />
|
||||||
</audioPlayer>
|
</audioPlayer>
|
||||||
</outputPlayer>
|
</outputPlayer>
|
||||||
|
|
||||||
<cuePlayer>
|
<cuePlayer>
|
||||||
<audioPlayer>
|
<audioPlayer>
|
||||||
<gstreamerPlayer audioDevice = "ls_cue_alsa_device" />
|
<gstreamerPlayer audioDevice = "ls_audio_cue_device" />
|
||||||
</audioPlayer>
|
</audioPlayer>
|
||||||
</cuePlayer>
|
</cuePlayer>
|
||||||
|
|
||||||
<stationLogo path="ls_install_dir/var/stationLogo.png" />
|
<stationLogo path="ls_var_dir/LiveSupport/stationLogo.png" />
|
||||||
|
|
||||||
<metadataTypeContainer>
|
<metadataTypeContainer>
|
||||||
<metadataType dcName = "dc:title"
|
<metadataType dcName = "dc:title"
|
||||||
|
|
216
livesupport/products/scheduler/bin/createDatabase.sh
Executable file
216
livesupport/products/scheduler/bin/createDatabase.sh
Executable file
|
@ -0,0 +1,216 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/createDatabase.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# This script reates the database used by LiveSupport
|
||||||
|
#
|
||||||
|
# Invoke as:
|
||||||
|
# ./bin/createDatabase.sh
|
||||||
|
#
|
||||||
|
# To get usage help, try the -h option
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Determine directories, files
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
docdir=$basedir/doc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
usrdir=$basedir/usr
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Print the usage information for this script.
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
printUsage()
|
||||||
|
{
|
||||||
|
echo "LiveSupport scheduler database creation script.";
|
||||||
|
echo "parameters";
|
||||||
|
echo "";
|
||||||
|
echo " -D, --database The name of the LiveSupport database.";
|
||||||
|
echo " [default: LiveSupport]";
|
||||||
|
echo " -s, --dbserver The name of the database server host.";
|
||||||
|
echo " [default: localhost]";
|
||||||
|
echo " -u, --dbuser The name of the database user to access the"
|
||||||
|
echo " database. [default: livesupport]";
|
||||||
|
echo " -w, --dbpassword The database user password.";
|
||||||
|
echo " [default: livesupport]";
|
||||||
|
echo " -h, --help Print this message and exit.";
|
||||||
|
echo "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Process command line parameters
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
CMD=${0##*/}
|
||||||
|
|
||||||
|
opts=$(getopt -o D:hs:u:w: -l database:,dbserver:,dbuser:,dbpassword:,help, -n $CMD -- "$@") || exit 1
|
||||||
|
eval set -- "$opts"
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-D|--database)
|
||||||
|
database=$2;
|
||||||
|
shift; shift;;
|
||||||
|
-h|--help)
|
||||||
|
printUsage;
|
||||||
|
exit 0;;
|
||||||
|
-s|--dbserver)
|
||||||
|
dbserver=$2;
|
||||||
|
shift; shift;;
|
||||||
|
-u|--dbuser)
|
||||||
|
dbuser=$2;
|
||||||
|
shift; shift;;
|
||||||
|
-w|--dbpassword)
|
||||||
|
dbpassword=$2;
|
||||||
|
shift; shift;;
|
||||||
|
--)
|
||||||
|
shift;
|
||||||
|
break;;
|
||||||
|
*)
|
||||||
|
echo "Unrecognized option $1.";
|
||||||
|
printUsage;
|
||||||
|
exit 1;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "x$dbserver" == "x" ]; then
|
||||||
|
dbserver=localhost;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$database" == "x" ]; then
|
||||||
|
database=LiveSupport;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$dbuser" == "x" ]; then
|
||||||
|
dbuser=livesupport;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$dbpassword" == "x" ]; then
|
||||||
|
dbpassword=livesupport;
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Creating database for LiveSupport scheduler.";
|
||||||
|
echo "";
|
||||||
|
echo "Using the following parameters:";
|
||||||
|
echo "";
|
||||||
|
echo " database server: $dbserver";
|
||||||
|
echo " database: $database";
|
||||||
|
echo " database user: $dbuser";
|
||||||
|
echo " database user password: $dbpassword";
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# The details of installation
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
ls_dbserver=$dbserver
|
||||||
|
ls_dbuser=$dbuser
|
||||||
|
ls_dbpassword=$dbpassword
|
||||||
|
ls_database=$database
|
||||||
|
|
||||||
|
|
||||||
|
postgres_user=postgres
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Function to check for the existence of an executable on the PATH
|
||||||
|
#
|
||||||
|
# @param $1 the name of the exectuable
|
||||||
|
# @return 0 if the executable exists on the PATH, non-0 otherwise
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
check_exe() {
|
||||||
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
|
echo "Executable $1 found...";
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
echo "Executable $1 not found...";
|
||||||
|
return 1;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check to see if this script is being run as root
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
if [ `whoami` != "root" ]; then
|
||||||
|
echo "Please run this script as root.";
|
||||||
|
exit ;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check for required tools
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Checking for required tools..."
|
||||||
|
|
||||||
|
check_exe "su" || exit 1;
|
||||||
|
check_exe "psql" || exit 1;
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Create the necessary database user and database itself
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Creating database and database user...";
|
||||||
|
|
||||||
|
# FIXME: the below might not work for remote databases
|
||||||
|
|
||||||
|
if [ "x$ls_dbserver" == "xlocalhost" ]; then
|
||||||
|
su - $postgres_user -c "echo \"CREATE USER $ls_dbuser \
|
||||||
|
ENCRYPTED PASSWORD '$ls_dbpassword' \
|
||||||
|
CREATEDB NOCREATEUSER;\" \
|
||||||
|
| psql template1" \
|
||||||
|
|| echo "Couldn't create database user $ls_dbuser.";
|
||||||
|
|
||||||
|
su - $postgres_user -c "echo \"CREATE DATABASE \\\"$ls_database\\\" \
|
||||||
|
OWNER $ls_dbuser ENCODING 'utf-8';\" \
|
||||||
|
| psql template1" \
|
||||||
|
|| echo "Couldn't create database $ls_database.";
|
||||||
|
else
|
||||||
|
echo "Unable to automatically create database user and table for";
|
||||||
|
echo "remote database $ls_dbserver.";
|
||||||
|
echo "Make sure to create database user $ls_dbuser with password";
|
||||||
|
echo "$ls_dbpassword on database server at $ls_dbserver.";
|
||||||
|
echo "Also create a database called $ld_database, owned by this user.";
|
||||||
|
echo "";
|
||||||
|
echo "The easiest way to achieve this is by issuing the following SQL";
|
||||||
|
echo "commands to PostgreSQL:";
|
||||||
|
echo "CREATE USER $ls_dbuser";
|
||||||
|
echo " ENCRYPTED PASSWORD '$ls_dbpassword'";
|
||||||
|
echo " CREATEDB NOCREATEUSER;";
|
||||||
|
echo "CREATE DATABASE \"$ls_database\"";
|
||||||
|
echo " OWNER $ls_dbuser ENCODING 'utf-8';";
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: check for the success of these operations somehow
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Say goodbye
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Done."
|
||||||
|
|
190
livesupport/products/scheduler/bin/createOdbcDataSource.sh
Executable file
190
livesupport/products/scheduler/bin/createOdbcDataSource.sh
Executable file
|
@ -0,0 +1,190 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/createOdbcDataSource.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# This script creates the ODBC data source needed for LiveSupport scheduler
|
||||||
|
#
|
||||||
|
# Invoke as:
|
||||||
|
# ./bin/createOdbcDataSource.sh
|
||||||
|
#
|
||||||
|
# To get usage help, try the -h option
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Determine directories, files
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
docdir=$basedir/doc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
usrdir=$basedir/usr
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Print the usage information for this script.
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
printUsage()
|
||||||
|
{
|
||||||
|
echo "LiveSupport scheduler ODBC DataSource creating script.";
|
||||||
|
echo "parameters";
|
||||||
|
echo "";
|
||||||
|
echo " -D, --database The name of the LiveSupport database.";
|
||||||
|
echo " [default: LiveSupport]";
|
||||||
|
echo " -s, --dbserver The name of the database server host.";
|
||||||
|
echo " [default: localhost]";
|
||||||
|
echo " -h, --help Print this message and exit.";
|
||||||
|
echo "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Process command line parameters
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
CMD=${0##*/}
|
||||||
|
|
||||||
|
opts=$(getopt -o D:hs: -l database:,dbserver:,help -n $CMD -- "$@") || exit 1
|
||||||
|
eval set -- "$opts"
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-D|--database)
|
||||||
|
database=$2;
|
||||||
|
shift; shift;;
|
||||||
|
-s|--dbserver)
|
||||||
|
dbserver=$2;
|
||||||
|
shift; shift;;
|
||||||
|
--)
|
||||||
|
shift;
|
||||||
|
break;;
|
||||||
|
*)
|
||||||
|
echo "Unrecognized option $1.";
|
||||||
|
printUsage;
|
||||||
|
exit 1;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "x$dbserver" == "x" ]; then
|
||||||
|
dbserver=localhost;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$database" == "x" ]; then
|
||||||
|
database=LiveSupport;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo "Creating ODBC data source for LiveSupport scheduler.";
|
||||||
|
echo "";
|
||||||
|
echo "Using the following installation parameters:";
|
||||||
|
echo "";
|
||||||
|
echo " database server: $dbserver";
|
||||||
|
echo " database: $database";
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# The details of installation
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
ls_dbserver=$dbserver
|
||||||
|
ls_database=$database
|
||||||
|
|
||||||
|
|
||||||
|
replace_sed_string="s/ls_dbserver/$ls_dbserver/; \
|
||||||
|
s/ls_database/$ls_database/;"
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Function to check for the existence of an executable on the PATH
|
||||||
|
#
|
||||||
|
# @param $1 the name of the exectuable
|
||||||
|
# @return 0 if the executable exists on the PATH, non-0 otherwise
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
check_exe() {
|
||||||
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
|
echo "Executable $1 found...";
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
echo "Executable $1 not found...";
|
||||||
|
return 1;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check to see if this script is being run as root
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
if [ `whoami` != "root" ]; then
|
||||||
|
echo "Please run this script as root.";
|
||||||
|
exit ;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Check for required tools
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Checking for required tools..."
|
||||||
|
|
||||||
|
check_exe "sed" || exit 1;
|
||||||
|
check_exe "grep" || exit 1;
|
||||||
|
check_exe "odbcinst" || exit 1;
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Create the ODBC data source and driver
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Creating ODBC data source and driver...";
|
||||||
|
|
||||||
|
# check where the odbc dirvers are for PostgreSQL
|
||||||
|
if [ -f /usr/lib/libodbcpsql.so ]; then
|
||||||
|
odbcinst_template=$etcdir/odbcinst_template
|
||||||
|
elif [ -f /usr/lib/odbc/psqlodbc.so ]; then
|
||||||
|
odbcinst_template=$etcdir/odbcinst_debian_template
|
||||||
|
else
|
||||||
|
echo "can't find ODBC driver for PostgreSQL neither at /usr/lib";
|
||||||
|
echo "nor at /usr/lib/odbc. please install proper ODBC drivers";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
odbc_template=$etcdir/odbc_template
|
||||||
|
odbc_template_tmp=/tmp/odbc_template.$$
|
||||||
|
|
||||||
|
# check for an existing PostgreSQL ODBC driver, and only install if necessary
|
||||||
|
odbcinst_res=`odbcinst -q -d | grep "\[PostgreSQL\]"`
|
||||||
|
if [ "x$odbcinst_res" == "x" ]; then
|
||||||
|
echo "Registering ODBC PostgreSQL driver...";
|
||||||
|
odbcinst -i -d -v -f $odbcinst_template || exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Registering LiveSupport ODBC data source...";
|
||||||
|
cat $odbc_template | sed -e "$replace_sed_string" > $odbc_template_tmp
|
||||||
|
odbcinst -i -s -l -f $odbc_template_tmp || exit 1;
|
||||||
|
rm -f $odbc_template_tmp
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Say goodbye
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
echo "Done."
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: fgerlits $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.3 $
|
# Version : $Revision: 1.4 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -46,8 +46,6 @@ libdir=$basedir/lib
|
||||||
gstreamer_dir=`find $libdir -type d -name "gstreamer-*"`
|
gstreamer_dir=`find $libdir -type d -name "gstreamer-*"`
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH
|
||||||
export GST_REGISTRY=$etcdir/gst-registry.xml
|
|
||||||
export GST_PLUGIN_PATH=$gstreamer_dir
|
|
||||||
scheduler_exe=$bindir/scheduler
|
scheduler_exe=$bindir/scheduler
|
||||||
config_file=$etcdir/scheduler.xml
|
config_file=$etcdir/scheduler.xml
|
||||||
|
|
||||||
|
|
52
livesupport/products/scheduler/configure
vendored
Executable file
52
livesupport/products/scheduler/configure
vendored
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/configure,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this script to configure the environment.
|
||||||
|
#
|
||||||
|
# This script in effect calls the real automake / autoconf configure script
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# assume we're in $basedir
|
||||||
|
reldir=`dirname $0`
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
|
||||||
|
autogen=$bindir/autogen.sh
|
||||||
|
configure=$tmpdir/configure
|
||||||
|
|
||||||
|
if [ -x $configure ]; then
|
||||||
|
(cd $tmpdir && $configure "$@")
|
||||||
|
else
|
||||||
|
(cd $basedir && $autogen "$@")
|
||||||
|
fi
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.63 $
|
# Version : $Revision: 1.64 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/etc/Makefile.in,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/etc/Makefile.in,v $
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
@ -35,6 +35,11 @@ RM = rm -f
|
||||||
RMDIR = rm -rf
|
RMDIR = rm -rf
|
||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
KILLALL = killall
|
KILLALL = killall
|
||||||
|
CP = cp -f
|
||||||
|
SED = sed
|
||||||
|
ECHO = echo
|
||||||
|
CAT = cat
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Basic directory and file definitions
|
# Basic directory and file definitions
|
||||||
|
@ -51,11 +56,47 @@ TMP_DIR = ${BASE_DIR}/tmp
|
||||||
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
|
||||||
|
|
||||||
|
|
||||||
USR_DIR = ${BASE_DIR}/../../usr
|
USR_DIR = @prefix@
|
||||||
|
USR_BIN_DIR = ${USR_DIR}/bin
|
||||||
|
USR_ETC_DIR = ${USR_DIR}/etc
|
||||||
USR_INCLUDE_DIR = ${USR_DIR}/include
|
USR_INCLUDE_DIR = ${USR_DIR}/include
|
||||||
USR_LIB_DIR = ${USR_DIR}/lib
|
USR_LIB_DIR = ${USR_DIR}/lib
|
||||||
|
USR_TMP_DIR = ${USR_DIR}/tmp
|
||||||
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_31
|
||||||
|
|
||||||
|
HOSTNAME = @HOSTNAME@
|
||||||
|
WWW_PORT = @WWW_PORT@
|
||||||
|
SCHEDULER_PORT = @SCHEDULER_PORT@
|
||||||
|
DB_SERVER = @DB_SERVER@
|
||||||
|
DATABASE = @DATABASE@
|
||||||
|
DB_USER = @DB_USER@
|
||||||
|
DB_PASSWORD = @DB_PASSWORD@
|
||||||
|
AUDIO_OUT = "@AUDIO_OUT@"
|
||||||
|
|
||||||
|
PHP_URL_PREFIX=livesupport
|
||||||
|
ALIB_XML_RPC_PREFIX=xmlrpc/xrLocStor.php
|
||||||
|
POSTGRES_USER=postgres
|
||||||
|
|
||||||
|
USR_LIB_DIR_S=$(shell ${ECHO} ${USR_LIB_DIR} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
USR_TMP_DIR_S=$(shell ${ECHO} ${USR_TMP_DIR} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
PHP_URL_PREFIX_S=$(shell ${ECHO} ${PHP_URL_PREFIX} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
ALIB_XML_RPC_PREFIX_S=$(shell ${ECHO} ${ALIB_XML_RPC_PREFIX} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
AUDIO_OUT_S=$(shell ${ECHO} ${AUDIO_OUT} | ${SED} -e "s/\//\\\\\\\\\//g")
|
||||||
|
|
||||||
|
|
||||||
|
REPLACE_SED_STRING="s/ls_lib_dir/${USR_LIB_DIR_S}/; \
|
||||||
|
s/ls_dbuser/${DB_USER}/; \
|
||||||
|
s/ls_dbpassword/${DB_PASSWORD}/; \
|
||||||
|
s/ls_dbserver/${DB_SERVER}/; \
|
||||||
|
s/ls_database/${DATABASE}/; \
|
||||||
|
s/ls_php_urlPrefix/\/${PHP_URL_PREFIX_S}/; \
|
||||||
|
s/ls_php_host/${HOSTNAME}/; \
|
||||||
|
s/ls_php_port/${WWW_PORT}/; \
|
||||||
|
s/ls_alib_xmlRpcPrefix/${ALIB_XML_RPC_PREFIX_S}/; \
|
||||||
|
s/ls_tmp_dir/${USR_TMP_DIR_S}/; \
|
||||||
|
s/ls_audio_output_device/${AUDIO_OUT_S}/; \
|
||||||
|
s/ls_scheduler_host/${HOSTNAME}/; \
|
||||||
|
s/ls_scheduler_port/${SCHEDULER_PORT}/;"
|
||||||
|
|
||||||
VPATH = ${SRC_DIR}
|
VPATH = ${SRC_DIR}
|
||||||
|
|
||||||
|
@ -274,10 +315,11 @@ TEST_RUNNER_LIBS = ${SCHEDULER_EXE_LIBS} -lcppunit -ldl
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
.PHONY: all dir_setup doc clean docclean depclean distclean
|
.PHONY: all dir_setup doc clean docclean depclean distclean check install
|
||||||
.PHONY: install start status run_tests stop uninstall
|
.PHONY: init start status run_tests stop deinit
|
||||||
.PHONY: install_local start_local status_local run_local stop_local
|
.PHONY: init_local start_local status_local run_local stop_local
|
||||||
.PHONY: uninstall_local check check_local
|
.PHONY: deinit_local check check_local
|
||||||
|
.PHONY: copy_files create_database create_odbc_datasource init_database
|
||||||
|
|
||||||
all: dir_setup ${SCHEDULER_EXE}
|
all: dir_setup ${SCHEDULER_EXE}
|
||||||
|
|
||||||
|
@ -309,12 +351,48 @@ distclean: clean docclean
|
||||||
|
|
||||||
check: all ${TEST_RUNNER} storage_server_init start run_tests stop
|
check: all ${TEST_RUNNER} storage_server_init start run_tests stop
|
||||||
|
|
||||||
|
install: all copy_files create_database create_odbc_datasource init_database
|
||||||
|
|
||||||
|
copy_files:
|
||||||
|
${MAKE} -C ${CORE_DIR} install
|
||||||
|
${MAKE} -C ${AUTHENTICATION_DIR} install
|
||||||
|
${MAKE} -C ${DB_DIR} install
|
||||||
|
${MAKE} -C ${STORAGE_DIR} install
|
||||||
|
${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} install
|
||||||
|
${MAKE} -C ${EVENT_SCHEDULER_DIR} install
|
||||||
|
${MKDIR} ${USR_BIN_DIR}
|
||||||
|
${MKDIR} ${USR_ETC_DIR}
|
||||||
|
${CP} ${BIN_DIR}/scheduler.sh ${USR_BIN_DIR}
|
||||||
|
${CP} ${SCHEDULER_EXE} ${USR_BIN_DIR}
|
||||||
|
${CAT} ${ETC_DIR}/scheduler.xml.template | ${SED} -e ${REPLACE_SED_STRING} \
|
||||||
|
> ${USR_ETC_DIR}/scheduler.xml
|
||||||
|
|
||||||
|
create_database:
|
||||||
|
ifeq (@CREATE_LS_DATABASE@,yes)
|
||||||
|
${BIN_DIR}/createDatabase.sh --database=${DATABASE} \
|
||||||
|
--dbserver=${DB_SERVER} \
|
||||||
|
--dbuser=${DB_USER} \
|
||||||
|
--dbpassword=${DB_PASSWORD}
|
||||||
|
endif
|
||||||
|
|
||||||
|
create_odbc_datasource:
|
||||||
|
ifeq (@CREATE_ODBC_DATA_SOURCE@,yes)
|
||||||
|
${BIN_DIR}/createOdbcDataSource.sh --database=${DATABASE} \
|
||||||
|
--dbserver=${DB_SERVER}
|
||||||
|
endif
|
||||||
|
|
||||||
|
init_database:
|
||||||
|
ifeq (@INIT_LS_DATABASE@,yes)
|
||||||
|
${USR_BIN_DIR}/scheduler.sh install
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
check_local: all ${TEST_RUNNER} start_local run_tests stop_local
|
check_local: all ${TEST_RUNNER} start_local run_tests stop_local
|
||||||
|
|
||||||
run_tests: ${TEST_RUNNER}
|
run_tests: ${TEST_RUNNER}
|
||||||
${TEST_RUNNER_SH} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
${TEST_RUNNER_SH} -o ${TEST_RESULTS} -s ${TEST_XSLT}
|
||||||
|
|
||||||
install: ${SCHEDULER_EXE}
|
init: ${SCHEDULER_EXE}
|
||||||
${SCHEDULER_SH} install
|
${SCHEDULER_SH} install
|
||||||
|
|
||||||
start: ${SCHEDULER_EXE}
|
start: ${SCHEDULER_EXE}
|
||||||
|
@ -331,10 +409,10 @@ stop: ${SCHEDULER_EXE}
|
||||||
status: ${SCHEDULER_EXE}
|
status: ${SCHEDULER_EXE}
|
||||||
${SCHEDULER_SH} status
|
${SCHEDULER_SH} status
|
||||||
|
|
||||||
uninstall: ${SCHEDULER_EXE}
|
deinit: ${SCHEDULER_EXE}
|
||||||
${SCHEDULER_SH} uninstall
|
${SCHEDULER_SH} uninstall
|
||||||
|
|
||||||
install_local: ${SCHEDULER_EXE}
|
init_local: ${SCHEDULER_EXE}
|
||||||
${SCHEDULER_EXE} -c ${SCHEDULER_LOCAL_CFG} install
|
${SCHEDULER_EXE} -c ${SCHEDULER_LOCAL_CFG} install
|
||||||
|
|
||||||
start_local: ${SCHEDULER_EXE}
|
start_local: ${SCHEDULER_EXE}
|
||||||
|
@ -352,7 +430,7 @@ run_local: ${SCHEDULER_EXE}
|
||||||
${SCHEDULER_EXE} -c ${SCHEDULER_LOCAL_CFG} --debug start
|
${SCHEDULER_EXE} -c ${SCHEDULER_LOCAL_CFG} --debug start
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
uninstall_local: ${SCHEDULER_EXE}
|
deinit_local: ${SCHEDULER_EXE}
|
||||||
${SCHEDULER_EXE} -c ${SCHEDULER_LOCAL_CFG} uninstall
|
${SCHEDULER_EXE} -c ${SCHEDULER_LOCAL_CFG} uninstall
|
||||||
|
|
||||||
storage_server_init:
|
storage_server_init:
|
||||||
|
|
|
@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl Author : $Author: maroy $
|
dnl Author : $Author: maroy $
|
||||||
dnl Version : $Revision: 1.10 $
|
dnl Version : $Revision: 1.11 $
|
||||||
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/etc/configure.ac,v $
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/etc/configure.ac,v $
|
||||||
dnl-----------------------------------------------------------------------------
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dnl-----------------------------------------------------------------------------
|
||||||
AC_INIT(Scheduler, 0.1, bugs@campware.org)
|
AC_INIT(Scheduler, 0.1, bugs@campware.org)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
AC_REVISION($Revision: 1.10 $)
|
AC_REVISION($Revision: 1.11 $)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(../src/main.cxx)
|
AC_CONFIG_SRCDIR(../src/main.cxx)
|
||||||
|
|
||||||
|
@ -45,11 +45,26 @@ AC_PROG_CXX()
|
||||||
AC_CHECK_HEADERS(sys/types.h unistd.h getopt.h signal.h sys/stat.h time.h)
|
AC_CHECK_HEADERS(sys/types.h unistd.h getopt.h signal.h sys/stat.h time.h)
|
||||||
AC_CHECK_HEADERS(stdio.h fcntl.h sys/time.h)
|
AC_CHECK_HEADERS(stdio.h fcntl.h sys/time.h)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0])
|
dnl-----------------------------------------------------------------------------
|
||||||
PKG_CHECK_MODULES(LIBODBCXX,[libodbc++])
|
dnl specify the pkg-config path
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH([pkg-config-path],
|
||||||
|
AC_HELP_STRING([--with-pkg-config-path],
|
||||||
|
[use the pkg-config path (prefix/lib/pkgconfig)]),
|
||||||
|
[PKG_CONFIG_PATH=${withval}],
|
||||||
|
[PKG_CONFIG_PATH=${prefix}/lib/pkgconfig])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using pkg-config path: ${PKG_CONFIG_PATH}])
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.8.1])
|
||||||
AC_SUBST(LIBXMLPP_CFLAGS)
|
AC_SUBST(LIBXMLPP_CFLAGS)
|
||||||
AC_SUBST(LIBXMLPP_LIBS)
|
AC_SUBST(LIBXMLPP_LIBS)
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBODBCXX,[libodbc++])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GSTREAMER,[gstreamer-0.8 >= 0.8])
|
PKG_CHECK_MODULES(GSTREAMER,[gstreamer-0.8 >= 0.8])
|
||||||
AC_SUBST(GSTREAMER_CFLAGS)
|
AC_SUBST(GSTREAMER_CFLAGS)
|
||||||
AC_SUBST(GSTREAMER_LIBS)
|
AC_SUBST(GSTREAMER_LIBS)
|
||||||
|
@ -71,6 +86,176 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the LiveSupport database and user should be created
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(CREATE_LS_DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([create-database],
|
||||||
|
AC_HELP_STRING([--with-create-database],
|
||||||
|
[specify wether the LiveSupport database and database user
|
||||||
|
should be created (no)]),
|
||||||
|
[CREATE_LS_DATABASE=${withval}],
|
||||||
|
[CREATE_LS_DATABASE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([creating LiveSupport database: ${CREATE_LS_DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the ODBC data source should be created
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(CREATE_ODBC_DATA_SOURCE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([create-odbc-data-source],
|
||||||
|
AC_HELP_STRING([--with-create-odbc-data-source],
|
||||||
|
[specify wether the ODBC data source for LiveSupport should be
|
||||||
|
created (no)]),
|
||||||
|
[CREATE_ODBC_DATA_SOURCE=${withval}],
|
||||||
|
[CREATE_ODBC_DATA_SOURCE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([creating ODBC data source: ${CREATE_ODBC_DATA_SOURCE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify wether the LiveSupport database tables should be initialized
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(INIT_LS_DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([init-database],
|
||||||
|
AC_HELP_STRING([--with-init-database],
|
||||||
|
[specify wether the LiveSupport database tables should be
|
||||||
|
initialized (no)]),
|
||||||
|
[INIT_LS_DATABASE=${withval}],
|
||||||
|
[INIT_LS_DATABASE=no])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([initializing LiveSupport database: ${INIT_LS_DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the FQDN
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(HOSTNAME)
|
||||||
|
|
||||||
|
AC_ARG_WITH([hostname],
|
||||||
|
AC_HELP_STRING([--with-hostname],
|
||||||
|
[use the specified hostname (guess)]),
|
||||||
|
[HOSTNAME=${withval}], [HOSTNAME=`hostname -f`])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using hostname: ${HOSTNAME}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the web server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(WWW_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([www-port],
|
||||||
|
AC_HELP_STRING([--with-www-port],
|
||||||
|
[use the specified www port (80)]),
|
||||||
|
[WWW_PORT=${withval}], [WWW_PORT=80])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using www port: ${WWW_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the scheduler server port
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(SCHEDULER_PORT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([scheduler-port],
|
||||||
|
AC_HELP_STRING([--with-scheduler-port],
|
||||||
|
[use the specified scheduler port (3344)]),
|
||||||
|
[SCHEDULER_PORT=${withval}], [SCHEDULER_PORT=3344])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using scheduler port: ${SCHEDULER_PORT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server name
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_SERVER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-server],
|
||||||
|
AC_HELP_STRING([--with-database-server],
|
||||||
|
[use the specified database server (localhost)]),
|
||||||
|
[DB_SERVER=${withval}], [DB_SERVER=localhost])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server: ${DB_SERVER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl get the name of the LiveSupport database
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DATABASE)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database],
|
||||||
|
AC_HELP_STRING([--with-database],
|
||||||
|
[the name of the postgresql database to use (LiveSupport)]),
|
||||||
|
[DATABASE=${withval}], [DATABASE=LiveSupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database: ${DATABASE}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_USER)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-user],
|
||||||
|
AC_HELP_STRING([--with-database-user],
|
||||||
|
[use the specified database server user (livesupport)]),
|
||||||
|
[DB_USER=${withval}], [DB_USER=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user: ${DB_USER}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the database server user password
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(DB_PASSWORD)
|
||||||
|
|
||||||
|
AC_ARG_WITH([database-password],
|
||||||
|
AC_HELP_STRING([--with-database-password],
|
||||||
|
[use the specified database server user password (livesupport)]),
|
||||||
|
[DB_PASSWORD=${withval}], [DB_PASSWORD=livesupport])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using database server user password: ${DB_PASSWORD}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl specify the audio output device
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_SUBST(AUDIO_OUT)
|
||||||
|
|
||||||
|
AC_ARG_WITH([audio-out],
|
||||||
|
AC_HELP_STRING([--with-audio-out],
|
||||||
|
[use the specified audio output device, either ALSA or OSS
|
||||||
|
(plughw:0)]),
|
||||||
|
[AUDIO_OUT=${withval}], [AUDIO_OUT=plughw:0])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([using audio output device: ${AUDIO_OUT}])
|
||||||
|
|
||||||
|
|
||||||
|
dnl display status info on what libraries will get compiled
|
||||||
|
|
||||||
|
AC_MSG_NOTICE(
|
||||||
|
[using the following configuration settings:
|
||||||
|
|
||||||
|
hostname: ${HOSTNAME}
|
||||||
|
www port: ${WWW_PORT}
|
||||||
|
scheduler port: ${SCHEDULER_PORT}
|
||||||
|
database server: ${DB_SERVER}
|
||||||
|
database name: ${DATABASE}
|
||||||
|
database user: ${DB_USER}
|
||||||
|
database user password: ${DB_PASSWORD}
|
||||||
|
audio output device: ${AUDIO_OUT}
|
||||||
|
creating LiveSupport database: ${CREATE_LS_DATABASE}
|
||||||
|
creating ODBC data source: ${CREATE_ODBC_DATA_SOURCE}
|
||||||
|
initialize LiveSupport database: ${INIT_LS_DATABASE}
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
AC_OUTPUT()
|
AC_OUTPUT()
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
</authenticationClientFactory>
|
</authenticationClientFactory>
|
||||||
|
|
||||||
<storageClientFactory>
|
<storageClientFactory>
|
||||||
<webStorage tempFiles="file://ls_install_dir/tmp/webStorageClient" >
|
<webStorage tempFiles="file://ls_tmp_dir/webStorageClient" >
|
||||||
<location server="ls_php_host" port="ls_php_port"
|
<location server="ls_php_host" port="ls_php_port"
|
||||||
path="/ls_php_urlPrefix/storageServer/var/ls_alib_xmlRpcPrefix"/>
|
path="/ls_php_urlPrefix/storageServer/var/ls_alib_xmlRpcPrefix"/>
|
||||||
</webStorage>
|
</webStorage>
|
||||||
|
@ -111,12 +111,12 @@
|
||||||
</playLogFactory>
|
</playLogFactory>
|
||||||
|
|
||||||
<audioPlayer>
|
<audioPlayer>
|
||||||
<gstreamerPlayer audioDevice = "ls_output_alsa_device" />
|
<gstreamerPlayer audioDevice = "ls_audio_output_device" />
|
||||||
</audioPlayer>
|
</audioPlayer>
|
||||||
|
|
||||||
<xmlRpcDaemon xmlRpcHost = "ls_scheduler_host"
|
<xmlRpcDaemon xmlRpcHost = "ls_scheduler_host"
|
||||||
xmlRpcPort = "ls_scheduler_port"
|
xmlRpcPort = "ls_scheduler_port"
|
||||||
pidFileName = "ls_install_dir/tmp/scheduler.pid"
|
pidFileName = "ls_tmp_dir/scheduler.pid"
|
||||||
/>
|
/>
|
||||||
</scheduler>
|
</scheduler>
|
||||||
|
|
||||||
|
|
87
livesupport/tools/boost/boost-1.31/bin/autogen.sh
Executable file
87
livesupport/tools/boost/boost-1.31/bin/autogen.sh
Executable file
|
@ -0,0 +1,87 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/boost/boost-1.31/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="boost"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
323
livesupport/tools/boost/boost-1.31/bin/install-sh
Executable file
323
livesupport/tools/boost/boost-1.31/bin/install-sh
Executable file
|
@ -0,0 +1,323 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
|
scriptversion=2005-02-02.21
|
||||||
|
|
||||||
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
# following copyright and license.
|
||||||
|
#
|
||||||
|
# Copyright (C) 1994 X Consortium
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to
|
||||||
|
# deal in the Software without restriction, including without limitation the
|
||||||
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
# sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||||
|
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
# Except as contained in this notice, the name of the X Consortium shall not
|
||||||
|
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||||
|
# ings in this Software without prior written authorization from the X Consor-
|
||||||
|
# tium.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# FSF changes to this file are in the public domain.
|
||||||
|
#
|
||||||
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
|
# `make' implicit rules from creating a file called install from it
|
||||||
|
# when there is no Makefile.
|
||||||
|
#
|
||||||
|
# This script is compatible with the BSD install script, but was written
|
||||||
|
# from scratch. It can only install one file at a time, a restriction
|
||||||
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
|
doit="${DOITPROG-}"
|
||||||
|
|
||||||
|
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||||
|
|
||||||
|
mvprog="${MVPROG-mv}"
|
||||||
|
cpprog="${CPPROG-cp}"
|
||||||
|
chmodprog="${CHMODPROG-chmod}"
|
||||||
|
chownprog="${CHOWNPROG-chown}"
|
||||||
|
chgrpprog="${CHGRPPROG-chgrp}"
|
||||||
|
stripprog="${STRIPPROG-strip}"
|
||||||
|
rmprog="${RMPROG-rm}"
|
||||||
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
|
chmodcmd="$chmodprog 0755"
|
||||||
|
chowncmd=
|
||||||
|
chgrpcmd=
|
||||||
|
stripcmd=
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
mvcmd="$mvprog"
|
||||||
|
src=
|
||||||
|
dst=
|
||||||
|
dir_arg=
|
||||||
|
dstarg=
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
|
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
|
||||||
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-c (ignored)
|
||||||
|
-d create directories instead of installing files.
|
||||||
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
|
-m MODE $chmodprog installed files to MODE.
|
||||||
|
-o USER $chownprog installed files to USER.
|
||||||
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
--help display this help and exit.
|
||||||
|
--version display version info and exit.
|
||||||
|
|
||||||
|
Environment variables override the default commands:
|
||||||
|
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||||
|
"
|
||||||
|
|
||||||
|
while test -n "$1"; do
|
||||||
|
case $1 in
|
||||||
|
-c) shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-d) dir_arg=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--help) echo "$usage"; exit $?;;
|
||||||
|
|
||||||
|
-m) chmodcmd="$chmodprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-s) stripcmd=$stripprog
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-t) dstarg=$2
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-T) no_target_directory=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
|
*) # When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
test -n "$dir_arg$dstarg" && break
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dstarg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dstarg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dstarg=$arg
|
||||||
|
done
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$1"; then
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
echo "$0: no input file specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# It's OK to call `install-sh -d' without argument.
|
||||||
|
# This can happen when creating conditional directories.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
for src
|
||||||
|
do
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $src in
|
||||||
|
-*) src=./$src ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
dst=$src
|
||||||
|
src=
|
||||||
|
|
||||||
|
if test -d "$dst"; then
|
||||||
|
mkdircmd=:
|
||||||
|
chmodcmd=
|
||||||
|
else
|
||||||
|
mkdircmd=$mkdirprog
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
|
echo "$0: $src does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$dstarg"; then
|
||||||
|
echo "$0: no destination specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dst=$dstarg
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $dst in
|
||||||
|
-*) dst=./$dst ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; won't work
|
||||||
|
# if double slashes aren't ignored.
|
||||||
|
if test -d "$dst"; then
|
||||||
|
if test -n "$no_target_directory"; then
|
||||||
|
echo "$0: $dstarg: Is a directory" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
dst=$dst/`basename "$src"`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This sed command emulates the dirname command.
|
||||||
|
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||||
|
|
||||||
|
# Make sure that the destination directory exists.
|
||||||
|
|
||||||
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if test ! -d "$dstdir"; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-$defaultIFS}"
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
|
||||||
|
while test $# -ne 0 ; do
|
||||||
|
pathcomp=$pathcomp$1
|
||||||
|
shift
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
$mkdirprog "$pathcomp"
|
||||||
|
# mkdir can fail with a `File exist' error in case several
|
||||||
|
# install-sh are creating the directory concurrently. This
|
||||||
|
# is OK.
|
||||||
|
test -d "$pathcomp" || exit
|
||||||
|
fi
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
$doit $mkdircmd "$dst" \
|
||||||
|
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||||
|
|
||||||
|
else
|
||||||
|
dstfile=`basename "$dst"`
|
||||||
|
|
||||||
|
# Make a couple of temp file names in the proper directory.
|
||||||
|
dsttmp=$dstdir/_inst.$$_
|
||||||
|
rmtmp=$dstdir/_rm.$$_
|
||||||
|
|
||||||
|
# Trap to clean up those temp files at exit.
|
||||||
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
|
trap '(exit $?); exit' 1 2 13 15
|
||||||
|
|
||||||
|
# Copy the file name to the temp name.
|
||||||
|
$doit $cpprog "$src" "$dsttmp" &&
|
||||||
|
|
||||||
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
|
#
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
|
#
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
if test -f "$dstdir/$dstfile"; then
|
||||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fi || { (exit 1); exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
|
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||||
|
{
|
||||||
|
(exit 0); exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
|
@ -22,12 +22,11 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.3 $
|
# Version : $Revision: 1.2 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/boost/boost-1.31/bin/Attic/install.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/boost/boost-1.31/bin/prepare.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Run this script to install C++ Boost into the development system usr
|
# Run this script to prepare C++ Boost to be configured and compiled
|
||||||
# environment.
|
|
||||||
# For more information on Boost, see http://www.boost.org/
|
# For more information on Boost, see http://www.boost.org/
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
product=boost_1_31_0
|
product=boost_1_31_0
|
||||||
|
@ -35,8 +34,9 @@ product=boost_1_31_0
|
||||||
reldir=`dirname $0`/..
|
reldir=`dirname $0`/..
|
||||||
basedir=`cd $reldir; pwd;`
|
basedir=`cd $reldir; pwd;`
|
||||||
installdir=`cd $basedir/../../../usr; pwd;`
|
installdir=`cd $basedir/../../../usr; pwd;`
|
||||||
tmpdir=$basedir/tmp
|
bindir=$basedir/bin
|
||||||
etcdir=$basedir/etc
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
tar=$basedir/src/$product.tar.bz2
|
tar=$basedir/src/$product.tar.bz2
|
||||||
|
|
||||||
echo "installing $product from $basedir to $installdir"
|
echo "installing $product from $basedir to $installdir"
|
||||||
|
@ -45,17 +45,13 @@ echo "installing $product from $basedir to $installdir"
|
||||||
mkdir -p $tmpdir
|
mkdir -p $tmpdir
|
||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
|
|
||||||
tar xfj $tar
|
# copy over install-sh, as AC_CONFIG_SUBDIRS will be looking for it
|
||||||
cd $product
|
cp -r $bindir/install-sh $tmpdir
|
||||||
|
|
||||||
# build BoostJam, their make enviornment
|
# untar and patch the sources
|
||||||
cd tools/build/jam_src/
|
if [ ! -d $product ]; then
|
||||||
sh build.sh gcc
|
tar xfj $tar
|
||||||
cd ../../..
|
cd $product
|
||||||
|
# patch here
|
||||||
# now build and install the who thing
|
fi
|
||||||
./tools/build/jam_src/bin.linuxx86/bjam "-sTOOLS=gcc" --prefix=$installdir install
|
|
||||||
|
|
||||||
cd $basedir
|
|
||||||
rm -rf tmp
|
|
||||||
|
|
85
livesupport/tools/boost/boost-1.31/etc/Makefile.in
Normal file
85
livesupport/tools/boost/boost-1.31/etc/Makefile.in
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/boost/boost-1.31/etc/Makefile.in,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# General command definitions
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
MKDIR = mkdir -p
|
||||||
|
RM = rm -f
|
||||||
|
RMDIR = rm -rf
|
||||||
|
DOXYGEN = doxygen
|
||||||
|
DOXYTAG = doxytag
|
||||||
|
XSLTPROC = xsltproc
|
||||||
|
ECHO = @echo
|
||||||
|
FLAWFINDER = flawfinder
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Basic directory and file definitions
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
BASE_DIR = .
|
||||||
|
BIN_DIR = ${BASE_DIR}/bin
|
||||||
|
DOC_DIR = ${BASE_DIR}/doc
|
||||||
|
DOXYGEN_DIR = ${DOC_DIR}/doxygen
|
||||||
|
COVERAGE_DIR = ${DOC_DIR}/coverage
|
||||||
|
ETC_DIR = ${BASE_DIR}/etc
|
||||||
|
TMP_DIR = ${BASE_DIR}/tmp
|
||||||
|
|
||||||
|
BOOST_VERSION = boost_1_31_0
|
||||||
|
BOOST_DIR = ${TMP_DIR}/${BOOST_VERSION}
|
||||||
|
|
||||||
|
INSTALL_DIR = @prefix@
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Targets
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
all:
|
||||||
|
# build BoostJam, their make enviornment
|
||||||
|
cd ${BOOST_DIR} && \
|
||||||
|
cd tools/build/jam_src/ && \
|
||||||
|
sh build.sh gcc
|
||||||
|
# now build and install the who thing
|
||||||
|
cd ${BOOST_DIR} && \
|
||||||
|
./tools/build/jam_src/bin.linuxx86/bjam "-sTOOLS=gcc" \
|
||||||
|
--prefix=${INSTALL_DIR}
|
||||||
|
|
||||||
|
install: all
|
||||||
|
cd ${BOOST_DIR} && \
|
||||||
|
./tools/build/jam_src/bin.linuxx86/bjam "-sTOOLS=gcc" \
|
||||||
|
--prefix=${INSTALL_DIR} install
|
||||||
|
|
||||||
|
clean:
|
||||||
|
cd ${BOOST_DIR} && \
|
||||||
|
./tools/build/jam_src/bin.linuxx86/bjam "-sTOOLS=gcc" \
|
||||||
|
--prefix=${installdir} clean
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
${RMDIR} ${BOOST_DIR}
|
||||||
|
${RMDIR} ${TMP_DIR}/auto* ${TMP_DIR}/config* ${TMP_DIR}/install-sh
|
||||||
|
|
||||||
|
|
50
livesupport/tools/boost/boost-1.31/etc/configure.ac
Normal file
50
livesupport/tools/boost/boost-1.31/etc/configure.ac
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
dnl
|
||||||
|
dnl This file is part of the LiveSupport project.
|
||||||
|
dnl http://livesupport.campware.org/
|
||||||
|
dnl To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
dnl it under the terms of the GNU General Public License as published by
|
||||||
|
dnl the Free Software Foundation; either version 2 of the License, or
|
||||||
|
dnl (at your option) any later version.
|
||||||
|
dnl
|
||||||
|
dnl LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
dnl GNU General Public License for more details.
|
||||||
|
dnl
|
||||||
|
dnl You should have received a copy of the GNU General Public License
|
||||||
|
dnl along with LiveSupport; if not, write to the Free Software
|
||||||
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Author : $Author: maroy $
|
||||||
|
dnl Version : $Revision: 1.2 $
|
||||||
|
dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/boost/boost-1.31/etc/configure.ac,v $
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
dnl NOTE: Run all configure related scripts from the tmp directory of the
|
||||||
|
dnl project.
|
||||||
|
dnl This is due to the fact that configure spreads a lot of trash around,
|
||||||
|
dnl like atom4te cache directories, config.* files, etc. into the directory
|
||||||
|
dnl it is being run from. We clearly don't want these in our base directory.
|
||||||
|
dnl-----------------------------------------------------------------------------
|
||||||
|
AC_INIT(boost, 1.31, bugs@campware.org)
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL])
|
||||||
|
AC_REVISION($Revision: 1.2 $)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(../src/boost_1_31_0.tar.bz2)
|
||||||
|
|
||||||
|
|
||||||
|
dnl untar the sources before anything happens
|
||||||
|
../bin/prepare.sh
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
|
||||||
|
|
||||||
|
AC_OUTPUT()
|
||||||
|
|
1
livesupport/tools/boost/boost-1.31/tmp/.keepme
Normal file
1
livesupport/tools/boost/boost-1.31/tmp/.keepme
Normal file
|
@ -0,0 +1 @@
|
||||||
|
keep me
|
101
livesupport/tools/cppunit/cppunit-1.10.2/bin/autogen.sh
Executable file
101
livesupport/tools/cppunit/cppunit-1.10.2/bin/autogen.sh
Executable file
|
@ -0,0 +1,101 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
#
|
||||||
|
# This file is part of the LiveSupport project.
|
||||||
|
# http://livesupport.campware.org/
|
||||||
|
# To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
#
|
||||||
|
# LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LiveSupport; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Author : $Author: maroy $
|
||||||
|
# Version : $Revision: 1.2 $
|
||||||
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/cppunit/cppunit-1.10.2/bin/autogen.sh,v $
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Run this to set up the build system: configure, makefiles, etc.
|
||||||
|
# (based on the version in enlightenment's cvs)
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package="cppunit"
|
||||||
|
|
||||||
|
# assume we're in $basedir/bin
|
||||||
|
reldir=`dirname $0`/..
|
||||||
|
basedir=`cd $reldir; pwd;`
|
||||||
|
test -z "$basedir" && basedir=.
|
||||||
|
usrdir=`cd $basedir/../../../usr; pwd;`
|
||||||
|
|
||||||
|
bindir=$basedir/bin
|
||||||
|
etcdir=$basedir/etc
|
||||||
|
tmpdir=$basedir/tmp
|
||||||
|
|
||||||
|
cd "$tmpdir"
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have autoconf installed to compile $package."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Generating configuration files for $package, please wait...."
|
||||||
|
|
||||||
|
configure_ac=${etcdir}/configure.ac
|
||||||
|
configure=${tmpdir}/configure
|
||||||
|
aclocal_m4=${tmpdir}/aclocal.m4
|
||||||
|
|
||||||
|
# copy over configure.ac and acinlclude.m4 from etc to tmp,
|
||||||
|
# as aclocal >= 1.8 is sooo unbelivably stupid that it will simply try to
|
||||||
|
# look for configure.ac in the current directory, and include acinclude.m4
|
||||||
|
# in aclocal.m4 it without a directory path in front
|
||||||
|
#ACLOCAL_FLAGS="-I ${tmpdir} --acdir=${tmpdir} --output=${aclocal_m4}"
|
||||||
|
#echo " aclocal $ACLOCAL_FLAGS"
|
||||||
|
#cp -f ${configure_ac} ${tmpdir}
|
||||||
|
#cp -f ${etcdir}/acinclude.m4 ${tmpdir}
|
||||||
|
#aclocal $ACLOCAL_FLAGS
|
||||||
|
|
||||||
|
#echo " autoheader ${configure_ac}"
|
||||||
|
#autoheader ${configure_ac}
|
||||||
|
|
||||||
|
echo " autoconf -I ${tmpdir} -o ${configure} ${configure_ac}"
|
||||||
|
autoconf -I ${tmpdir} -o ${configure} ${configure_ac}
|
||||||
|
|
||||||
|
export CPPFLAGS="-I$usrdir/include"
|
||||||
|
export LDFLAGS="-L$usrdir/lib"
|
||||||
|
export PKG_CONFIG_PATH="$usrdir/lib/pkgconfig"
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$usrdir/lib"
|
||||||
|
|
||||||
|
${configure} "$@" && echo
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue