| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/biosdevname/biosdevname-0.4.0.ebuild,v 1.2 2012/06/20 14:42:08 ago Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
DESCRIPTION="Sets BIOS-given device names instead of kernel eth* names"
|
| 8 |
HOMEPAGE="http://linux.dell.com/biosdevname/"
|
| 9 |
SRC_URI="http://linux.dell.com/biosdevname/${P}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="amd64 x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
CDEPEND="sys-fs/udev"
|
| 17 |
DEPEND="${CDEPEND}
|
| 18 |
sys-apps/pciutils"
|
| 19 |
RDEPEND="${CDEPEND}"
|
| 20 |
|
| 21 |
src_prepare() {
|
| 22 |
default
|
| 23 |
sed -e 's|/sbin/biosdevname|/usr\0|g' -i "${S}"/biosdevname.rules.in
|
| 24 |
}
|
| 25 |
|
| 26 |
pkg_postinst() {
|
| 27 |
elog "To make it working you need to remove"
|
| 28 |
elog ""
|
| 29 |
elog " /etc/udev/rules.d/70-persistent-net.rules"
|
| 30 |
elog ""
|
| 31 |
elog "and then reboot the machine. After reboot ethernet devices names will"
|
| 32 |
elog "change to the ones reported by BIOS. For more information you might"
|
| 33 |
elog "want to read following document:"
|
| 34 |
elog ""
|
| 35 |
elog " http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming"
|
| 36 |
elog ""
|
| 37 |
elog "To disable this feature, pass biosdevname=0 to kernel command line."
|
| 38 |
elog ""
|
| 39 |
elog "If you use Dracut, you might want to enable 'biosdevname' module"
|
| 40 |
elog "(in DRACUT_MODULES variable)."
|
| 41 |
}
|