Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 410147 | Differences between
and this patch

Collapse All | Expand All

(-)kmod-7.ebuild (-3 / +12 lines)
Lines 20-26 Link Here
20
20
21
LICENSE="LGPL-2"
21
LICENSE="LGPL-2"
22
SLOT="0"
22
SLOT="0"
23
IUSE="debug doc lzma static-libs +tools zlib"
23
IUSE="debug doc lzma static-libs +tools zlib usr"
24
24
25
COMMON_DEPEND="!sys-apps/module-init-tools
25
COMMON_DEPEND="!sys-apps/module-init-tools
26
	!sys-apps/modutils
26
	!sys-apps/modutils
Lines 56-61 Link Here
56
	local myconf
56
	local myconf
57
	[[ ${PV} == 9999 ]] && myconf="$(use_enable doc gtk-doc)"
57
	[[ ${PV} == 9999 ]] && myconf="$(use_enable doc gtk-doc)"
58
58
59
	if use usr ; then
60
			myconf="$myconf --bindir=/bin --libdir=/lib"
61
	fi
62
59
	econf \
63
	econf \
60
		$(use_enable static-libs static) \
64
		$(use_enable static-libs static) \
61
		$(use_enable tools) \
65
		$(use_enable tools) \
Lines 69-83 Link Here
69
{
73
{
70
	default
74
	default
71
75
76
	local mypref
77
	mypref="/usr/bin"
78
	if use usr ; then
79
		mypref="/bin"
80
	fi
72
	find "${D}" -name libkmod.la -exec rm -f {} +
81
	find "${D}" -name libkmod.la -exec rm -f {} +
73
82
74
	if use tools; then
83
	if use tools; then
75
		dodir /bin
84
		dodir /bin
76
		dosym /usr/bin/kmod /bin/lsmod
85
		dosym $mypref/kmod /bin/lsmod
77
		dodir /sbin
86
		dodir /sbin
78
		local cmd
87
		local cmd
79
		for cmd in depmod insmod modinfo modprobe rmmod; do
88
		for cmd in depmod insmod modinfo modprobe rmmod; do
80
			dosym /usr/bin/kmod /sbin/${cmd}
89
			dosym $mypref/kmod /sbin/${cmd}
81
		done
90
		done
82
	fi
91
	fi
83
}
92
}

Return to bug 410147