diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2012-04-18 16:46:43 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2012-04-18 16:46:43 +0000 |
commit | 2eb56d311e29f2f7bf85f67c40612c7dcebabe9e (patch) | |
tree | c312cd28293529f947315210ba22a90e7b940dfe /sys-infiniband | |
parent | [sys-infiniband/rds-tools] Version bump to OFED 1.5.4.1 (diff) | |
download | historical-2eb56d311e29f2f7bf85f67c40612c7dcebabe9e.tar.gz historical-2eb56d311e29f2f7bf85f67c40612c7dcebabe9e.tar.bz2 historical-2eb56d311e29f2f7bf85f67c40612c7dcebabe9e.zip |
[sys-infiniband/srptools] Version bump to OFED 1.5.4.1
Package-Manager: portage-2.2.0_alpha100/cvs/Linux x86_64
Diffstat (limited to 'sys-infiniband')
-rw-r--r-- | sys-infiniband/srptools/ChangeLog | 10 | ||||
-rw-r--r-- | sys-infiniband/srptools/files/srpd.initd | 42 | ||||
-rw-r--r-- | sys-infiniband/srptools/srptools-0.0.4-r1.ebuild (renamed from sys-infiniband/srptools/srptools-0.0.4.ebuild) | 18 |
3 files changed, 62 insertions, 8 deletions
diff --git a/sys-infiniband/srptools/ChangeLog b/sys-infiniband/srptools/ChangeLog index 5a380a851f83..9d59294369cd 100644 --- a/sys-infiniband/srptools/ChangeLog +++ b/sys-infiniband/srptools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-infiniband/srptools -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/srptools/ChangeLog,v 1.2 2011/07/02 20:30:15 alexxy Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/srptools/ChangeLog,v 1.3 2012/04/18 16:46:43 alexxy Exp $ + +*srptools-0.0.4-r1 (18 Apr 2012) + + 18 Apr 2012; Alexey Shvetsov <alexxy@gentoo.org> +files/srpd.initd, + +srptools-0.0.4-r1.ebuild, -srptools-0.0.4.ebuild: + [sys-infiniband/srptools] Version bump to OFED 1.5.4.1 02 Jul 2011; Alexey Shvetsov <alexxy@gentoo.org> srptools-0.0.4.ebuild: Add ~amd64-linux keywrod diff --git a/sys-infiniband/srptools/files/srpd.initd b/sys-infiniband/srptools/files/srpd.initd new file mode 100644 index 000000000000..035844a0ee2b --- /dev/null +++ b/sys-infiniband/srptools/files/srpd.initd @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/srptools/files/srpd.initd,v 1.1 2012/04/18 16:46:42 alexxy Exp $ + +description="SCSI RDMA Protoaemon daemon" + +depend() { + need net +} + +checkconfig() { + if ! modinfo ib_srp > /dev/null 2>&1 ; then + eerror "ib_srp module not found!" + return 1 + fi +} + +start() { + checkconfig + ebegin "Loading ib_srp module" + modprobe ib_srp + eend $? + ebegin "Starting srp_daemon" + start-stop-daemon \ + --start \ + --background \ + --make-pidfile \ + --pidfile ${SRP_DAEMON_PID:-/var/run/srpd.pid} \ + --exec /usr/sbin/srp_daemon -- ${SRP_DAEMON_OPTS:- -e -R 60} + eend $? + +} + +stop() { + ebegin "Stopping srp_daemon" + start-stop-daemon --stop --pidfile ${SRP_DAEMON_PID:-/var/run/srpd.pid} + eend $? + ebegin "Unloading ib_srp module" + rmmod ib_srp + eend $? +} diff --git a/sys-infiniband/srptools/srptools-0.0.4.ebuild b/sys-infiniband/srptools/srptools-0.0.4-r1.ebuild index 0983e2109e7c..37e045c269ff 100644 --- a/sys-infiniband/srptools/srptools-0.0.4.ebuild +++ b/sys-infiniband/srptools/srptools-0.0.4-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/srptools/srptools-0.0.4.ebuild,v 1.2 2011/07/02 20:30:15 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/srptools/srptools-0.0.4-r1.ebuild,v 1.1 2012/04/18 16:46:43 alexxy Exp $ EAPI="4" -OFED_VER="1.5.3.1" +OFED_VER="1.5.4.1" OFED_SUFFIX="0.1.gce1f64c" OFED_SNAPSHOT="1" @@ -16,7 +16,13 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux" IUSE="" DEPEND=" - >=sys-infiniband/libibverbs-1.1.4 - >=sys-infiniband/libibumad-1.3.7 + sys-infiniband/libibverbs:${SLOT} + sys-infiniband/libibumad:${SLOT} " -RDEPEND="${DEPDND}" +RDEPEND="${DEPEND}" +block_other_ofed_versions + +src_install() { + default + newinitd "${FILESDIR}/srpd.inid" srpd +} |