diff options
author | Holger Brueckner <darks@gentoo.org> | 2001-09-06 23:55:13 +0000 |
---|---|---|
committer | Holger Brueckner <darks@gentoo.org> | 2001-09-06 23:55:13 +0000 |
commit | cc66f5ac560445434e093c86446044378f8532ea (patch) | |
tree | 26ec7f21211304c6d0fa23822d9f00684f54b3de /net-misc/omniORB | |
parent | fixed man.conf (diff) | |
download | gentoo-2-cc66f5ac560445434e093c86446044378f8532ea.tar.gz gentoo-2-cc66f5ac560445434e093c86446044378f8532ea.tar.bz2 gentoo-2-cc66f5ac560445434e093c86446044378f8532ea.zip |
fice omniNotify
notifd get's started with onmiNameservice
python stubs will be generated
Diffstat (limited to 'net-misc/omniORB')
-rw-r--r-- | net-misc/omniORB/files/mkomnistubs.py | 24 | ||||
-rwxr-xr-x | net-misc/omniORB/files/omniORB | 6 | ||||
-rw-r--r-- | net-misc/omniORB/omniORB-304.ebuild | 23 |
3 files changed, 44 insertions, 9 deletions
diff --git a/net-misc/omniORB/files/mkomnistubs.py b/net-misc/omniORB/files/mkomnistubs.py new file mode 100644 index 000000000000..47c3e8386486 --- /dev/null +++ b/net-misc/omniORB/files/mkomnistubs.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python + + +import os + + +idlfiles = ["TimeBase", "CosTime", "CosEventComm", "CosEventChannelAdmin", +"CosTypedEventComm", "CosTypedEventChannelAdmin", "CosTimerEvent", +"CosNotification", "CosNotifyComm", "CosNotifyFilter", +"CosNotifyChannelAdmin", "CosTypedNotifyComm", "CosTypedNotifyChannelAdmin", +"AttNotifyChannelAdmin"] + + +# d is the top-level idl directory from an omniORB release +d = "/usr/idl" + + +for x in idlfiles: + y = x + ".idl" + print x + cmd = "omniidl -bpython -C /usr/lib/python2.1/site-packages/ -I%s -I%s/COS -DNOLONGLONG %s/COS/%s" % (d, d, d, y) + print cmd + os.system(cmd) + diff --git a/net-misc/omniORB/files/omniORB b/net-misc/omniORB/files/omniORB index 32b7b17136f3..3d7072ae33e2 100755 --- a/net-misc/omniORB/files/omniORB +++ b/net-misc/omniORB/files/omniORB @@ -4,7 +4,8 @@ . /etc/rc.d/config/functions SERVICE=omniORB -EXE="/usr/bin/omniNames" +EXE1="/usr/bin/omniNames" +EXE2="/usr/bin/notifd" opts="start stop restart" start() { @@ -15,7 +16,8 @@ start() { rm -f /var/log/omniORB/omninames* fi ebegin "Starting ${SERVICE}" - exec $EXE -start 2809 -logdir /var/log/omniORB -errlog /var/log/omniORB/omniORB.errors 1>&2 & + exec $EXE1 -start 2809 -logdir /var/log/omniORB -errlog /var/log/omniORB/omniORB.errors 1>&2 & + exec $EXE2 -c /etc/omniorb/channel.cfg 1>&2 & eend $? "Error starting ${SERVICE}." } diff --git a/net-misc/omniORB/omniORB-304.ebuild b/net-misc/omniORB/omniORB-304.ebuild index 2ec0bb7a2844..41968dd1f09c 100644 --- a/net-misc/omniORB/omniORB-304.ebuild +++ b/net-misc/omniORB/omniORB-304.ebuild @@ -1,9 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# Author Your Name <your email> -# /home/cvsroot/gentoo-x86/berlin-base/omniORB/omniORB-303.ebuild,v 1.7 2001/05/28 05:24:13 achim Exp -# $Header: /var/cvsroot/gentoo-x86/net-misc/omniORB/omniORB-304.ebuild,v 1.5 2001/08/31 03:23:39 pm Exp $ - +# Author Holger Brueckner <darks@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-misc/omniORB/omniORB-304.ebuild,v 1.6 2001/09/06 23:55:13 darks Exp $ A="${PN}_${PV}.tar.gz omniORBpy_1_4.tar.gz omniNotify11b1.tar.gz" S=${WORKDIR}/omni @@ -30,6 +28,8 @@ src_unpack() { cp config.mk config.mk.orig sed -e "s:#platform = ${PLT}:platform = ${PLT}:" \ config.mk.orig > config.mk + + cd ${S}/mk cp unix.mk unix.mk.orig @@ -79,6 +79,12 @@ src_install () { exeinto /etc/rc.d/init.d doexe ${FILESDIR}/omniORB + + dodir /etc/omniorb + insinto /etc/omniorb + cd ${S} + doins src/services/omniNotify/channel.cfg + doins src/services/omniNotify/standard.cfg dodoc CHANGES* COPYING* CREDITS PORTING README* ReleaseNote_omniORB_304 THIS_IS_omniORB_3_0_4 cd doc @@ -94,11 +100,14 @@ src_install () { dodir /etc/env.d/ echo "PATH=/usr/share/omniORB/bin/scripts" > ${D}/etc/env.d/90omniORB + echo "OMNIORB_CONFIG=/etc/omniorb/omniORB.cfg" >> ${D}/etc/env.d/90omniORB # echo "PYTHONPATH=/usr/share/omniORB/python" >> ${D}/etc/env.d/90omniORB } pkg_postinst() { - if [ ! -f "${ROOT}etc/omniORB.cfg" ] ; then - echo "ORBInitialHost `uname -n`" > ${ROOT}etc/omniORB.cfg - echo "ORBInitialPort 2809" >> ${ROOT}etc/omniORB.cfg + if [ ! -f "${ROOT}etc/omniorb/omniORB.cfg" ] ; then + echo "ORBInitialHost `uname -n`" > ${ROOT}etc/omniorb/omniORB.cfg + echo "ORBInitialPort 2809" >> ${ROOT}etc/omniorb/omniORB.cfg +# ln -s ${ROOT}etc/omniorb/omniORB.cfg /etc/omniORB.cfg fi + /usr/bin/python ${FILESDIR}/mkomnistubs.py } |