summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-12-25 21:21:40 +0000
committerMichał Górny <mgorny@gentoo.org>2011-12-25 21:21:40 +0000
commit45995a86f11eb5bc4fd4b66f3fcfe67b264c7e78 (patch)
treebda89957df7966d52b4723b5f7af8a9013458857 /sys-apps
parentdev-java/jgrapht: version bump (diff)
downloadgentoo-2-45995a86f11eb5bc4fd4b66f3fcfe67b264c7e78.tar.gz
gentoo-2-45995a86f11eb5bc4fd4b66f3fcfe67b264c7e78.tar.bz2
gentoo-2-45995a86f11eb5bc4fd4b66f3fcfe67b264c7e78.zip
Introduce kmod module tools wrt bug #395863 and as a dep of udev.
(Portage version: 2.2.0_alpha83/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/kmod/ChangeLog10
-rw-r--r--sys-apps/kmod/kmod-2.ebuild47
-rw-r--r--sys-apps/kmod/metadata.xml14
3 files changed, 71 insertions, 0 deletions
diff --git a/sys-apps/kmod/ChangeLog b/sys-apps/kmod/ChangeLog
new file mode 100644
index 000000000000..5aafb5b4278e
--- /dev/null
+++ b/sys-apps/kmod/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-apps/kmod
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.1 2011/12/25 21:21:40 mgorny Exp $
+
+*kmod-2 (25 Dec 2011)
+
+ 25 Dec 2011; Michał Górny <mgorny@gentoo.org> +kmod-2.ebuild,
+ +metadata.xml:
+ Introduce kmod module tools wrt bug #395863 and as a dep of udev.
+
diff --git a/sys-apps/kmod/kmod-2.ebuild b/sys-apps/kmod/kmod-2.ebuild
new file mode 100644
index 000000000000..d9441cbee888
--- /dev/null
+++ b/sys-apps/kmod/kmod-2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-2.ebuild,v 1.1 2011/12/25 21:21:40 mgorny Exp $
+
+EAPI=4
+
+inherit autotools-utils multilib toolchain-funcs
+
+DESCRIPTION="Library and utilities for kernel module loading"
+HOMEPAGE="http://git.profusion.mobi/cgit.cgi/kmod.git/" # XXX
+SRC_URI="http://packages.profusion.mobi/kmod/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug static-libs +rootfs-install +tools zlib"
+
+RDEPEND="zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ myeconfargs=(
+ $(use rootfs-install && echo --exec-prefix=/)
+
+ $(use_enable zlib)
+ $(use_enable debug)
+ $(use_enable tools)
+ )
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use rootfs-install; then
+ dodir /usr/$(get_libdir)
+ # move pkg-config file and static libs to /usr
+ if use static-libs; then
+ mv "${D}"/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)/ || die
+ gen_usr_ldscript libkmod.so
+ sed -i -e 's:/lib:/usr/lib:' \
+ "${D}"/$(get_libdir)/pkgconfig/*.pc || die
+ fi
+ mv "${D}"/$(get_libdir)/pkgconfig "${D}"/usr/$(get_libdir)/ || die
+ fi
+}
diff --git a/sys-apps/kmod/metadata.xml b/sys-apps/kmod/metadata.xml
new file mode 100644
index 000000000000..7a9255bae7eb
--- /dev/null
+++ b/sys-apps/kmod/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+
+ <use>
+ <flag name='rootfs-install'>Install the library into rootfs,
+ to satisfy dependencies of udev when using separate /usr.</flag>
+ <flag name='tools'>Install module loading/unloading tools.</flag>
+ </use>
+</pkgmetadata>