Imported sources from subversion.

This commit is contained in:
Ricardo Martins
2013-07-13 17:19:22 +01:00
commit 12d63d1569
455 changed files with 69857 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
version=\
(
'2_6_2'
)
requires=\
(
'ncurses'
'zlib'
'bzip2'
'readline'
'python/default'
'omniorb/default'
)
url=\
(
"http://freefr.dl.sourceforge.net/project/omnievents/omniEvents%20-%20stable/omniEvents%202.6.2/omniEvents-${version}-src.tar.gz"
)
md5=\
(
"2087d0f6b7e89da22697c8854a9c8ad0"
)
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir"/patches-${version}/*.patch)
if [ -n "$patches" ]; then
# echo " cat $patches | patch -p1 "
cat $patches | patch -p1
fi
}
configure()
{
./configure \
CC="$cmd_target_cc" \
CXX="$cmd_target_cxx" \
--includedir="${cfg_dir_toolchain_sysroot}/usr/include" \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--build="${cfg_host_canonical}" \
--host="${cfg_target_canonical}"
}
build()
{
# It does not support multi jobs because some task are ling to IDL generated files.
$cmd_make_single
}
host_install()
{
$cmd_make_single install
}
target_install()
{
# Log:
$cmd_mkdir "${cfg_dir_rootfs}/var/lib/omniEvents/"
$cmd_cp "${cfg_package_spec_dir}/fs/etc/rc.d/omniEvents" "$cfg_dir_rootfs/etc/rc.d/omniEvents"
$cmd_cp "${cfg_package_spec_dir}/fs/etc/omniorb-eventservice" "${cfg_dir_rootfs}/etc/"
# Binaries:
$cmd_cp "${cfg_dir_toolchain_sysroot}/usr/lib/lib"*"omniEvents"* "${cfg_dir_rootfs}/usr/lib"
$cmd_cp "${cfg_dir_toolchain_sysroot}/usr/bin/eventc" "${cfg_dir_rootfs}/usr/bin"
$cmd_cp "${cfg_dir_toolchain_sysroot}/usr/bin/eventf" "${cfg_dir_rootfs}/usr/bin"
$cmd_cp "${cfg_dir_toolchain_sysroot}/usr/bin/events" "${cfg_dir_rootfs}/usr/bin"
$cmd_cp "${cfg_dir_toolchain_sysroot}/usr/bin/rmeventc" "${cfg_dir_rootfs}/usr/bin"
$cmd_cp "src/omniEvents" "${cfg_dir_rootfs}/usr/bin"
}

View File

@@ -0,0 +1,45 @@
## /etc/default/omniorb-eventservice
##
## Configuration file for omniEvents.
##
## This is a shell file, sourced from the SYS-V init script.
## All of the options are commented out by default.
##
##
## Set this option to change the directory in which omniEvents keeps its
## persistency files. The `export' is important!
#OMNIEVENTS_LOGDIR=/var/lib/omniEvents
#export OMNIEVENTS_LOGDIR
##
## Determines the port on which omniEvents will listen.
#OMNIEVENTS_PORT=11169
##
## The name of omniEvents' EventChannelFactory in the naming service.
## Examples: TopLevelName Context/SubContext/Id.Kind
#OMNIEVENTS_NS_NAME=EventChannelFactory
##
## Set alternate endPoint for failover. The address should point to the
## alternate omniEvents daemon, usually on another machine.
#OMNIEVENTS_ALTERNATE=giop:tcp:<alternate_host>:11169
##
## On machines with multiple network adapters, omniORB servers sometimes bind
## to the wrong IP address. Set this variable to force omniORB to bind to a
## particular hostname. The `export' is important!
OMNIORB_USEHOSTNAME=localhost
export OMNIORB_USEHOSTNAME
##
## Any other options.
## For debugging, you might set it to: -ORBtraceLevel 10 -t/var/log/omniEvents.log
#OMNIEVENTS_OPTIONS=

View File

@@ -0,0 +1,57 @@
# Program options
CONFIGFILE=/etc/default/omniorb-eventservice
NAME=omniEvents
DAEMON=/usr/bin/omniEvents
OMNIEVENTS_DIR=/var/OMNIEVENTS
test -z "$OMNIEVENTS_PORT" && OMNIEVENTS_PORT=11169
OMNIEVENTS_PIDFILE=/var/run/$NAME.pid
test -f $DAEMON || exit 5
# Load default preferences
test -f $CONFIGFILE && . $CONFIGFILE
start()
{
# Make sure directories exist (NEED AN RW FS!)
if [ ! -d $OMNIEVENTS_DIR ]; then
mkdir -p $OMNIEVENTS_DIR
fi
pid=$(pidof ${NAME})
if [ ! -z "${pid}" ]; then
echo " Impossible: ${NAME} already running (pid $(pidof ${NAME}))"
else
OMNIEVENTS_OPTIONS="-P $OMNIEVENTS_PIDFILE -l $OMNIEVENTS_DIR -p $OMNIEVENTS_PORT $OPT_ALTERNATE $OPT_NS_NAME"
# Run it
$DAEMON $OMNIEVENTS_OPTIONS &> /dev/null &
# Sleep a while, and then check if OMNIEVENTS is still running
sleep 2
if [ ! -z "`pidof ${NAME}`" ]; then
echo " Starting ${NAME} (PID=$(pidof ${NAME})) [OK]"
else
echo " Starting ${NAME} [KO]"
fi
fi
}
stop()
{
pid=$(pidof ${NAME})
if [ -z "${pid}" ]; then
echo " Impossible: process ${NAME} is not running..."
else
echo -n " Stopping ${NAME} ... "
kill ${pid}
while [ -n "`pidof ${NAME}`" ]; do
sleep 1
done
echo " Done! "
fi
}

View File

@@ -0,0 +1,138 @@
diff -urN omniEvents-ko//examples/pullcons.cc omniEvents-2_6_2/examples/pullcons.cc
--- omniEvents-ko//examples/pullcons.cc 2005-04-13 17:37:08.000000000 +0200
+++ omniEvents-2_6_2/examples/pullcons.cc 2012-12-10 16:04:12.238870921 +0100
@@ -118,6 +118,8 @@
*/
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff -urN omniEvents-ko//examples/pullsupp.cc omniEvents-2_6_2/examples/pullsupp.cc
--- omniEvents-ko//examples/pullsupp.cc 2005-04-13 17:37:08.000000000 +0200
+++ omniEvents-2_6_2/examples/pullsupp.cc 2012-12-10 16:04:12.258120514 +0100
@@ -114,6 +114,8 @@
*/
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff -urN omniEvents-ko//examples/pushcons.cc omniEvents-2_6_2/examples/pushcons.cc
--- omniEvents-ko//examples/pushcons.cc 2005-06-28 20:52:37.000000000 +0200
+++ omniEvents-2_6_2/examples/pushcons.cc 2012-12-10 16:04:12.258120514 +0100
@@ -129,6 +129,8 @@
*/
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff -urN omniEvents-ko//examples/pushsupp.cc omniEvents-2_6_2/examples/pushsupp.cc
--- omniEvents-ko//examples/pushsupp.cc 2005-04-13 17:37:08.000000000 +0200
+++ omniEvents-2_6_2/examples/pushsupp.cc 2012-12-10 16:04:12.258120514 +0100
@@ -122,6 +122,8 @@
*/
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff -urN omniEvents-ko//src/main.cc omniEvents-2_6_2/src/main.cc
--- omniEvents-ko//src/main.cc 2005-05-11 23:56:09.000000000 +0200
+++ omniEvents-2_6_2/src/main.cc 2012-12-10 16:55:42.526121844 +0100
@@ -39,6 +39,11 @@
# include "getopt.h"
#endif
+#include <stdlib.h>
+namespace std {
+ using ::malloc;
+}
+
#include "main.h"
#include "omniEvents.h"
#include "naming.h"
diff -urN omniEvents-ko//src/PersistNode.cc omniEvents-2_6_2/src/PersistNode.cc
--- omniEvents-ko//src/PersistNode.cc 2005-04-13 17:37:09.000000000 +0200
+++ omniEvents-2_6_2/src/PersistNode.cc 2012-12-10 16:03:19.926692657 +0100
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <climits>
namespace OmniEvents {
diff -urN omniEvents-ko//src/Servant.cc omniEvents-2_6_2/src/Servant.cc
--- omniEvents-ko//src/Servant.cc 2005-05-17 23:58:57.000000000 +0200
+++ omniEvents-2_6_2/src/Servant.cc 2012-12-10 16:55:18.914120137 +0100
@@ -35,6 +35,12 @@
#endif
#include <stdio.h> // sprintf
+
+#include <stdlib.h>
+namespace std {
+ using ::malloc;
+}
+
#include <assert.h>
#ifdef HAVE_IOSTREAM
diff -urN omniEvents-ko//tools/eventc.cc omniEvents-2_6_2/tools/eventc.cc
--- omniEvents-ko//tools/eventc.cc 2005-05-11 20:44:31.000000000 +0200
+++ omniEvents-2_6_2/tools/eventc.cc 2012-12-10 16:03:33.742616350 +0100
@@ -154,6 +154,8 @@
//
//
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff -urN omniEvents-ko//tools/eventf.cc omniEvents-2_6_2/tools/eventf.cc
--- omniEvents-ko//tools/eventf.cc 2005-05-11 20:44:31.000000000 +0200
+++ omniEvents-2_6_2/tools/eventf.cc 2012-12-10 16:03:33.750370462 +0100
@@ -24,6 +24,8 @@
// Destroys the named EventChannel.
//
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff -urN omniEvents-ko//tools/events.cc omniEvents-2_6_2/tools/events.cc
--- omniEvents-ko//tools/events.cc 2005-04-13 17:37:10.000000000 +0200
+++ omniEvents-2_6_2/tools/events.cc 2012-12-10 16:03:33.750370462 +0100
@@ -25,6 +25,8 @@
// Push Model streamer.
//
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff -urN omniEvents-ko//tools/rmeventc.cc omniEvents-2_6_2/tools/rmeventc.cc
--- omniEvents-ko//tools/rmeventc.cc 2005-05-11 20:44:31.000000000 +0200
+++ omniEvents-2_6_2/tools/rmeventc.cc 2012-12-10 16:03:33.750370462 +0100
@@ -24,6 +24,8 @@
// Destroys the named EventChannel.
//
+#include <stdio.h>
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif