Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/open-mx/files: open-mx-1.4.0-driver.patch omxoed.initd
Date: Wed, 31 Aug 2011 18:34:25
Message-Id: 20110831183414.872F22004C@flycatcher.gentoo.org
1 alexxy 11/08/31 18:34:14
2
3 Added: open-mx-1.4.0-driver.patch omxoed.initd
4 Log:
5 [sys-cluster/open-mx] Initial import
6
7 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch?rev=1.1&content-type=text/plain
14
15 Index: open-mx-1.4.0-driver.patch
16 ===================================================================
17 --- Makefile.am 2011-07-15 02:42:53.000000000 +0400
18 +++ Makefile.am 2011-07-15 02:43:02.000000000 +0400
19 @@ -20,11 +20,6 @@
20
21 SUBDIRS =
22
23 -# Driver
24 -if OMX_BUILD_DRIVER
25 - SUBDIRS += driver/linux
26 -endif
27 -
28 # Library
29 if OMX_BUILD_LIBRARY
30 SUBDIRS += libopen-mx tools tests tests/mx
31
32
33
34 1.1 sys-cluster/open-mx/files/omxoed.initd
35
36 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/files/omxoed.initd?rev=1.1&view=markup
37 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/files/omxoed.initd?rev=1.1&content-type=text/plain
38
39 Index: omxoed.initd
40 ===================================================================
41 #!/sbin/runscript
42 # Copyright 1999-2011 Gentoo Foundation
43 # Distributed under the terms of the GNU General Public License v2
44 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/files/omxoed.initd,v 1.1 2011/08/31 18:34:14 alexxy Exp $
45
46 depend() {
47 need net
48 }
49
50 checksystem() {
51 if [ -c /dev/open-mx ]; then
52 einfo "Open-MX module already loaded"
53 return 0
54 else
55 einfo "Checking if Open-MX module present"
56 if [ "x$(modprobe -l open-mx | grep open-mx)" == "x" ]; then
57 eerror "open-mx not found!"
58 return 1
59 fi
60 fi
61 }
62
63 start() {
64 ebegin "Starting ${SVCNAME}"
65 checksystem || return 1
66 if [ ! -c /dev/open-mx ]; then
67 ebegin "Loading open-mx module"
68 modprobe -q open-mx
69 fi
70 start-stop-daemon --start --exec /usr/bin/omxoed \
71 --background --make-pidfile \
72 --pidfile /var/run/omeoed.pid
73 eend $?
74 }
75
76 stop() {
77 ebegin "Stopping ${SVCNAME}"
78 start-stop-daemon --stop --exec /usr/bin/omxoed \
79 --pidfile /var/run/omeoed.pid
80 eend $?
81 }
82
83 status() {
84 ebegin "Showing current active Open-MX peers"
85 omx_info -q
86 }