fix for proper gstreamer registry creation on installation and in the
debian package
This commit is contained in:
parent
eea04b3886
commit
53893a3e50
11 changed files with 61 additions and 33 deletions
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.12 $
|
# Version : $Revision: 1.13 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/copyInstall.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/copyInstall.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -167,13 +167,9 @@ cp -pPR $usrdir/etc/* $install_etc
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
gstreamer_dir=`find $install_lib -type d -name "gstreamer-*"`
|
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
|
cp -pPR $modules_dir/gstreamerElements/lib/lib*.so $gstreamer_dir
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$install_lib
|
|
||||||
export GST_REGISTRY=$install_etc/gst-registry.xml
|
|
||||||
export GST_PLUGIN_PATH=$gstreamer_dir
|
|
||||||
$usrdir/bin/gst-register > /dev/null 2>&1
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Copy scheduler related files
|
# Copy scheduler related files
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.4 $
|
# Version : $Revision: 1.5 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/createDebianPackages.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/createDebianPackages.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -147,10 +147,10 @@ echo ""
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.6 $
|
# Version : $Revision: 1.7 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/postInstallGLiveSupport.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/postInstallGLiveSupport.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -211,10 +211,10 @@ replace_sed_string="s/ls_install_dir/$installdir_s/; \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -256,6 +256,18 @@ cat $install_etc/gLiveSupport.xml.template \
|
||||||
> $install_etc/gLiveSupport.xml
|
> $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
|
# Say goodbye
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
|
@ -21,8 +21,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.7 $
|
# Version : $Revision: 1.8 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/postInstallScheduler.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/postInstallScheduler.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -271,10 +271,10 @@ replace_sed_string="s/ls_install_dir/$installdir_s/; \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -523,6 +523,18 @@ $bindir/scheduler.sh install || exit 1;
|
||||||
cd -
|
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
|
# Say goodbye
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
|
@ -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/postUninstall.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/postUninstall.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -163,10 +163,10 @@ install_var=$installdir/var
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -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/bin/preInstall.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/preInstall.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -126,10 +126,10 @@ rm -f $group_tmp_file;
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -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/setup_test_db.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/setup_test_db.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -67,10 +67,10 @@ postgres_user=postgres
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,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.7 $
|
# Version : $Revision: 1.8 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/user_setup.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/user_setup.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -211,10 +211,10 @@ replace_sed_string="s/ls_install_dir/$installdir_s/; \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: maroy $
|
||||||
# Version : $Revision: 1.2 $
|
# Version : $Revision: 1.3 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/user_setup_db.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/user_setup_db.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -163,10 +163,10 @@ replace_sed_string="s/ls_dbuser/$ls_dbuser/; \
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
check_exe() {
|
check_exe() {
|
||||||
if [ -x "`which $1 2> /dev/null`" ]; then
|
if [ -x "`which $1 2> /dev/null`" ]; then
|
||||||
echo "Exectuable $1 found...";
|
echo "Executable $1 found...";
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
echo "Exectuable $1 not found...";
|
echo "Executable $1 not found...";
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,12 @@ LIVESUPPORT_DIR=/opt/livesupport
|
||||||
LIVESUPPORT_BIN=$LIVESUPPORT_DIR/bin
|
LIVESUPPORT_BIN=$LIVESUPPORT_DIR/bin
|
||||||
LIVESUPPORT_ETC=$LIVESUPPORT_DIR/etc
|
LIVESUPPORT_ETC=$LIVESUPPORT_DIR/etc
|
||||||
LIVESUPPORT_LIB=$LIVESUPPORT_DIR/lib
|
LIVESUPPORT_LIB=$LIVESUPPORT_DIR/lib
|
||||||
|
GSTREAMER_DIR=`find $LIVESUPPORT_LIB -type d -name "gstreamer-*"`
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin:$LIVESUPPORT_BIN
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:$LIVESUPPORT_BIN
|
||||||
LD_LIBRARY_PATH=$LIVESUPPORT_LIB:$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=$LIVESUPPORT_LIB:$LD_LIBRARY_PATH
|
||||||
|
GST_REGISTRY=$LIVESUPPORT_ETC/gst-registry.xml
|
||||||
|
GST_PLUGIN_PATH=$GSTREAMER_DIR
|
||||||
DAEMON=$LIVESUPPORT_BIN/scheduler
|
DAEMON=$LIVESUPPORT_BIN/scheduler
|
||||||
NAME=livesupport-scheduler
|
NAME=livesupport-scheduler
|
||||||
DESC="livesupport scheduler"
|
DESC="livesupport scheduler"
|
||||||
|
@ -17,6 +20,8 @@ test -x $DAEMON || exit 0
|
||||||
|
|
||||||
export PATH
|
export PATH
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
|
export GST_REGISTRY
|
||||||
|
export GST_PLUGIN_PATH
|
||||||
|
|
||||||
DAEMON_OPTS="-c $LIVESUPPORT_ETC/scheduler.xml"
|
DAEMON_OPTS="-c $LIVESUPPORT_ETC/scheduler.xml"
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,12 @@ install-arch:
|
||||||
# now separate the libraries into debian/livesupport-libs
|
# now separate the libraries into debian/livesupport-libs
|
||||||
mkdir -p $(CURDIR)/debian/livesupport-libs
|
mkdir -p $(CURDIR)/debian/livesupport-libs
|
||||||
mkdir -p $(CURDIR)/debian/livesupport-libs/opt/livesupport
|
mkdir -p $(CURDIR)/debian/livesupport-libs/opt/livesupport
|
||||||
|
mkdir -p $(CURDIR)/debian/livesupport-libs/opt/livesupport/bin
|
||||||
mkdir -p $(CURDIR)/debian/livesupport-libs/opt/livesupport/tmp
|
mkdir -p $(CURDIR)/debian/livesupport-libs/opt/livesupport/tmp
|
||||||
mv -f $(CURDIR)/debian/livesupport/opt/livesupport/lib \
|
mv -f $(CURDIR)/debian/livesupport/opt/livesupport/lib \
|
||||||
$(CURDIR)/debian/livesupport-libs/opt/livesupport
|
$(CURDIR)/debian/livesupport-libs/opt/livesupport
|
||||||
|
cp -f $(CURDIR)/debian/livesupport/opt/livesupport/bin/gst-* \
|
||||||
|
$(CURDIR)/debian/livesupport-libs/opt/livesupport/bin
|
||||||
|
|
||||||
# now separate the station (server) files into debian/livesupport-station
|
# now separate the station (server) files into debian/livesupport-station
|
||||||
mkdir -p $(CURDIR)/debian/livesupport-station
|
mkdir -p $(CURDIR)/debian/livesupport-station
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue