summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2012-12-11 19:19:50 +0000
committerIan Stakenvicius <axs@gentoo.org>2012-12-11 19:19:50 +0000
commit198baaaeeaf0ee82c6a978f2261652399351fb52 (patch)
tree8f099ec76e5da92d58ce2eaf53969aab4657d358 /sys-infiniband/ofed/ofed-3.5.ebuild
parentadjusted the dep for virtual/udev (diff)
downloadhistorical-198baaaeeaf0ee82c6a978f2261652399351fb52.tar.gz
historical-198baaaeeaf0ee82c6a978f2261652399351fb52.tar.bz2
historical-198baaaeeaf0ee82c6a978f2261652399351fb52.zip
install udev rules using udev.eclass to support virtual/udev
Package-Manager: portage-2.1.11.33/cvs/Linux x86_64 Manifest-Sign-Key: 0x2B6559ED
Diffstat (limited to 'sys-infiniband/ofed/ofed-3.5.ebuild')
-rw-r--r--sys-infiniband/ofed/ofed-3.5.ebuild9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys-infiniband/ofed/ofed-3.5.ebuild b/sys-infiniband/ofed/ofed-3.5.ebuild
index 7335e88ecfac..eb4d22372962 100644
--- a/sys-infiniband/ofed/ofed-3.5.ebuild
+++ b/sys-infiniband/ofed/ofed-3.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/ofed/ofed-3.5.ebuild,v 1.2 2012/10/13 06:48:21 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/ofed/ofed-3.5.ebuild,v 1.3 2012/12/11 19:19:44 axs Exp $
EAPI="4"
@@ -19,7 +19,7 @@ IUSE_OFED_DRIVERS="
ofed_drivers_nes
ofed_drivers_psm"
-inherit openib toolchain-funcs
+inherit openib udev toolchain-funcs
DESCRIPTION="OpenIB system files"
SCRIPTDIR="${S}/ofed_scripts"
@@ -57,10 +57,7 @@ src_configure() { :; }
src_compile() { :; }
src_install() {
- local udevdir=/lib/udev
- has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
- insinto "${udevdir}"/rules.d
- newins "${SCRIPTDIR}/90-ib.rules" 40-ib.rules
+ udev_newrules "${SCRIPTDIR}/90-ib.rules" 40-ib.rules
insinto /etc/modprobe.d
newins "${FILESDIR}/openib.modprobe" openib.conf
newenvd "${FILESDIR}/openib.env" 02openib