summaryrefslogtreecommitdiff
path: root/sys-apps/biosdevname/biosdevname-0.7.3-r1.ebuild
blob: 9a09515f1a4f7aada1614c5e7f4c441c10ca1e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools udev

DESCRIPTION="Sets BIOS-given device names instead of kernel eth* names"
HOMEPAGE="
	https://linux.dell.com/biosdevname/
	https://github.com/dell/biosdevname
"
SRC_URI="https://github.com/dell/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	virtual/udev
	sys-apps/pciutils
"
DEPEND="${RDEPEND}"

src_prepare() {
	default

	sed -i -e 's|/sbin/biosdevname|/usr\0|g' biosdevname.rules.in || die
	sed -i -e "/RULEDEST/s:/lib/udev:$(get_udevdir):" configure.ac || die

	eautoreconf
}

pkg_postinst() {
	udev_reload
}

pkg_postrm() {
	udev_reload
}