/[gentoo-x86]/sys-apps/biosdevname/biosdevname-0.4.1.ebuild
Gentoo

Contents of /sys-apps/biosdevname/biosdevname-0.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 20 14:04:59 2012 UTC (2 years, 2 months ago) by johu
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #433349

(Portage version: 2.2.0_alpha129/cvs/Linux x86_64)

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.1.ebuild,v 1.2 2012/09/08 13:07:52 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 }

  ViewVC Help
Powered by ViewVC 1.1.20