summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Brueckner <darks@gentoo.org>2001-09-13 16:57:58 +0000
committerHolger Brueckner <darks@gentoo.org>2001-09-13 16:57:58 +0000
commitd4ffca54ace8ad9066c8ba61674c830898ce78ad (patch)
treeda018e08f3a7f3c85d5fb4f6ca72b6830a9a4fa6 /net-misc/omniORB
parentcleanup fix (diff)
downloadgentoo-2-d4ffca54ace8ad9066c8ba61674c830898ce78ad.tar.gz
gentoo-2-d4ffca54ace8ad9066c8ba61674c830898ce78ad.tar.bz2
gentoo-2-d4ffca54ace8ad9066c8ba61674c830898ce78ad.zip
added rc6 init scripts
Diffstat (limited to 'net-misc/omniORB')
-rw-r--r--[-rwxr-xr-x]net-misc/omniORB/files/omniORB.rc5 (renamed from net-misc/omniORB/files/omniORB)0
-rw-r--r--net-misc/omniORB/files/omniORB.rc638
-rw-r--r--net-misc/omniORB/omniORB-304-r6.ebuild113
-rw-r--r--net-misc/omniORB/omniORB-304.ebuild4
4 files changed, 153 insertions, 2 deletions
diff --git a/net-misc/omniORB/files/omniORB b/net-misc/omniORB/files/omniORB.rc5
index 3d7072ae33e2..3d7072ae33e2 100755..100644
--- a/net-misc/omniORB/files/omniORB
+++ b/net-misc/omniORB/files/omniORB.rc5
diff --git a/net-misc/omniORB/files/omniORB.rc6 b/net-misc/omniORB/files/omniORB.rc6
new file mode 100644
index 000000000000..a5ee5e40d229
--- /dev/null
+++ b/net-misc/omniORB/files/omniORB.rc6
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+#RCUPDATE:3 4:99:This line is required for script management
+
+SERVICE=omniORB
+EXE1="/usr/bin/omniNames"
+EXE2="/usr/bin/notifd"
+
+depend() {
+ need net
+}
+
+start() {
+ if [ ! -d "/var/log/omniORB" ] ; then
+ install -d /var/log/omniORB
+ fi
+ if [ "/var/log/omniORB/omninames*" ] ; then
+ rm -f /var/log/omniORB/omninames*
+ fi
+ ebegin "Starting ${SERVICE}"
+ 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}."
+}
+
+stop() {
+ ebegin "Stopping ${SERVICE}"
+ killall $EXE 1>&2
+ eend $? "Error stopping ${SERVICE}."
+}
+
+restart() {
+ stop
+ start
+}
+
+
+
+
diff --git a/net-misc/omniORB/omniORB-304-r6.ebuild b/net-misc/omniORB/omniORB-304-r6.ebuild
new file mode 100644
index 000000000000..0b5118fc90cd
--- /dev/null
+++ b/net-misc/omniORB/omniORB-304-r6.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Holger Brueckner <darks@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/net-misc/omniORB/omniORB-304-r6.ebuild,v 1.1 2001/09/13 16:57:58 darks Exp $
+
+A="${PN}_${PV}.tar.gz omniORBpy_1_4.tar.gz omniNotify11b1.tar.gz"
+S=${WORKDIR}/omni
+DESCRIPTION="a robust, high-performance CORBA 2 ORB"
+SRC_URI="ftp://ftp.uk.research.att.com/pub/omniORB/omniORB3/${PN}_${PV}.tar.gz
+ ftp://ftp.uk.research.att.com/pub/omniORB/omniORBpy/${PN}py_1_4.tar.gz
+ ftp://ftp.uk.research.att.com/pub/omniNotify/omniNotify1/omniNotify11b1.tar.gz"
+HOMEPAGE="http://www.uk.research.att.com/omniORB/"
+
+DEPEND="virtual/glibc
+ >=dev-lang/python-2.1"
+
+PLT="i586_linux_2.0_glibc2.1"
+
+src_unpack() {
+
+ unpack ${PN}_${PV}.tar.gz
+ cd ${S}/src/lib
+ unpack ${PN}py_1_4.tar.gz
+ cd ${S}/src/services
+ unpack omniNotify11b1.tar.gz
+
+ cd ${S}/config
+ 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
+ sed -e "s:^MKDIRHIER.*:MKDIRHIER = mkdir -p:" unix.mk.orig > unix.mk
+
+ cd platforms
+ cp ${PLT}.mk ${PLT}.orig
+ sed -e "s:#PYTHON = /usr.*:PYTHON=/usr/bin/python:" \
+ ${PLT}.orig > ${PLT}.mk
+
+}
+
+
+src_compile() {
+
+ cd ${S}/src
+ try make export
+ cd ${S}/src/lib/omniORBpy
+ try make export
+ cd ${S}/src/services/omniNotify
+ try make export
+}
+
+src_install () {
+
+ T=/usr
+ into ${T}
+ cd ${S}
+ dodir /usr/share/omniORB/bin/scripts
+ cp -af bin/scripts/* ${D}/usr/share/omniORB/bin/scripts
+ dobin bin/${PLT}/*
+ insinto ${T}/idl
+ doins idl/*.idl
+ insinto ${T}/idl/COS
+ doins idl/COS/*.idl
+ cp -af include ${D}/${T}
+ dodir /usr/lib/python2.1/site-packages
+ cd ${S}
+ cp -af lib/${PLT}/_* ${D}/usr/lib/python2.1/site-packages
+ dolib lib/${PLT}/*.{a,so*}
+ rm ${D}/usr/lib/_*.*
+ exeinto ${T}/lib
+ doexe lib/${PLT}/omnicpp
+ dodir /usr/lib/python2.1
+ cp -af lib/python/* ${D}/usr/lib/python2.1/
+ doman man/man[15]/*.[15]
+
+ exeinto /etc/rc.d/init.d
+ newexe ${FILESDIR}/omniORB.rc6 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
+ docinto print
+ dodoc *.ps
+ dodoc *.tex
+ dodoc *.pdf
+
+ docinto html
+ dodoc *.html
+ docinto html/omniORB
+ dodoc omniORB/*.{gif,html}
+
+ 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/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
+}
diff --git a/net-misc/omniORB/omniORB-304.ebuild b/net-misc/omniORB/omniORB-304.ebuild
index 41968dd1f09c..e12251610f3b 100644
--- a/net-misc/omniORB/omniORB-304.ebuild
+++ b/net-misc/omniORB/omniORB-304.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/omniORB/omniORB-304.ebuild,v 1.7 2001/09/13 16:57:58 darks Exp $
A="${PN}_${PV}.tar.gz omniORBpy_1_4.tar.gz omniNotify11b1.tar.gz"
S=${WORKDIR}/omni
@@ -78,7 +78,7 @@ src_install () {
doman man/man[15]/*.[15]
exeinto /etc/rc.d/init.d
- doexe ${FILESDIR}/omniORB
+ newexe ${FILESDIR}/omniORB.rc5 omniORB
dodir /etc/omniorb
insinto /etc/omniorb