summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-01-04 23:55:50 +0000
committerWilliam Hubbs <williamh@gentoo.org>2012-01-04 23:55:50 +0000
commit00d55d19c69b7f906e09dfb866504783437b4120 (patch)
treedb9382b447ae3861d6a4655ad684ea6574e2926e /sys-apps
parentppc/ppc64 stable (bug 390969) (diff)
downloadgentoo-2-00d55d19c69b7f906e09dfb866504783437b4120.tar.gz
gentoo-2-00d55d19c69b7f906e09dfb866504783437b4120.tar.bz2
gentoo-2-00d55d19c69b7f906e09dfb866504783437b4120.zip
install everything in /usr/bin per upstreams default settings. Also add module-init-tools compatible symbolic links.
(Portage version: 2.2.0_alpha84/cvs/Linux i686)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/kmod/kmod-9999.ebuild24
1 files changed, 14 insertions, 10 deletions
diff --git a/sys-apps/kmod/kmod-9999.ebuild b/sys-apps/kmod/kmod-9999.ebuild
index 371510aeb76f..9d2b57de908a 100644
--- a/sys-apps/kmod/kmod-9999.ebuild
+++ b/sys-apps/kmod/kmod-9999.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-apps/kmod/kmod-9999.ebuild,v 1.3 2012/01/02 19:59:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild,v 1.4 2012/01/04 23:55:50 williamh Exp $
EAPI=4
@@ -26,7 +26,8 @@ DEPEND="zlib? ( sys-libs/zlib )
lzma? ( app-arch/xz-utils )"
RDEPEND="${DEPEND}"
-src_prepare() {
+src_prepare()
+{
if [ ! -e configure ]; then
eautoreconf
else
@@ -34,10 +35,9 @@ src_prepare() {
fi
}
-src_configure() {
+src_configure()
+{
econf \
- --bindir=/bin \
- --with-rootprefix=/ \
$(use_enable debug) \
$(use_with lzma xz) \
$(use_enable static-libs static) \
@@ -45,13 +45,17 @@ src_configure() {
$(use_with zlib)
}
-src_install() {
+src_install()
+{
default
- dodir /sbin
- mv "${D}"/bin/kmod-{{ins,rm}mod,modprobe} "${D}"/sbin/ || die
-
- gen_usr_ldscript -a kmod
# we have a .pc file for people to use
find "${D}" -name libkmod.la -delete
+
+ # If the tools are installed, add compatibility symbolic links
+ if use tools; then
+ for cmd in depmod insmod lsmod modinfo modprobe rmmod; do
+ dosym kmod /usr/bin/$cmd
+ done
+ fi
}