1 |
commit: 037a379b961fe9f3f95394257f595a4b3cabfecd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 25 21:12:37 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 25 21:12:37 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=037a379b |
7 |
|
8 |
sys-apps/kmod: Introduce kmod, the new kernel module toolset. |
9 |
|
10 |
(Portage version: 2.2.0_alpha83/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
sys-apps/kmod/kmod-9999.ebuild | 64 ++++++++++++++++++++++++++++++++++++++++ |
14 |
sys-apps/kmod/metadata.xml | 14 +++++++++ |
15 |
2 files changed, 78 insertions(+), 0 deletions(-) |
16 |
|
17 |
diff --git a/sys-apps/kmod/kmod-9999.ebuild b/sys-apps/kmod/kmod-9999.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..3c53782 |
20 |
--- /dev/null |
21 |
+++ b/sys-apps/kmod/kmod-9999.ebuild |
22 |
@@ -0,0 +1,64 @@ |
23 |
+# Copyright 1999-2011 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Header: $ |
26 |
+ |
27 |
+EAPI=4 |
28 |
+ |
29 |
+#if LIVE |
30 |
+AUTOTOOLS_AUTORECONF=yes |
31 |
+EGIT_REPO_URI="git://git.profusion.mobi/${PN}.git |
32 |
+ http://git.profusion.mobi/cgit.cgi/${PN}.git" |
33 |
+ |
34 |
+inherit git-2 |
35 |
+#endif |
36 |
+ |
37 |
+inherit autotools-utils multilib toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Library and utilities for kernel module loading" |
40 |
+HOMEPAGE="http://git.profusion.mobi/cgit.cgi/kmod.git/" # XXX |
41 |
+SRC_URI="http://packages.profusion.mobi/kmod/${P}.tar.xz" |
42 |
+ |
43 |
+LICENSE="LGPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="debug lzma static-libs +rootfs-install +tools zlib" |
47 |
+ |
48 |
+RDEPEND="lzma? ( app-arch/xz-utils ) |
49 |
+ zlib? ( sys-libs/zlib )" |
50 |
+DEPEND="${RDEPEND}" |
51 |
+ |
52 |
+REQUIRED_USE="rootfs-install? ( !lzma )" |
53 |
+ |
54 |
+#if LIVE |
55 |
+KEYWORDS= |
56 |
+SRC_URI= |
57 |
+#endif |
58 |
+ |
59 |
+src_configure() { |
60 |
+ myeconfargs=( |
61 |
+ $(use rootfs-install && echo --exec-prefix=/) |
62 |
+ |
63 |
+ $(use_with lzma xz) |
64 |
+ $(use_with zlib) |
65 |
+ $(use_enable debug) |
66 |
+ $(use_enable tools) |
67 |
+ ) |
68 |
+ |
69 |
+ autotools-utils_src_configure |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ autotools-utils_src_install |
74 |
+ |
75 |
+ if use rootfs-install; then |
76 |
+ dodir /usr/$(get_libdir) |
77 |
+ # move pkg-config file and static libs to /usr |
78 |
+ if use static-libs; then |
79 |
+ mv "${D}"/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)/ || die |
80 |
+ gen_usr_ldscript libkmod.so |
81 |
+ sed -i -e 's:/lib:/usr/lib:' \ |
82 |
+ "${D}"/$(get_libdir)/pkgconfig/*.pc || die |
83 |
+ fi |
84 |
+ mv "${D}"/$(get_libdir)/pkgconfig "${D}"/usr/$(get_libdir)/ || die |
85 |
+ fi |
86 |
+} |
87 |
|
88 |
diff --git a/sys-apps/kmod/metadata.xml b/sys-apps/kmod/metadata.xml |
89 |
new file mode 100644 |
90 |
index 0000000..7a9255b |
91 |
--- /dev/null |
92 |
+++ b/sys-apps/kmod/metadata.xml |
93 |
@@ -0,0 +1,14 @@ |
94 |
+<?xml version="1.0" encoding="UTF-8"?> |
95 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
96 |
+<pkgmetadata> |
97 |
+ <maintainer> |
98 |
+ <email>mgorny@g.o</email> |
99 |
+ <name>Michał Górny</name> |
100 |
+ </maintainer> |
101 |
+ |
102 |
+ <use> |
103 |
+ <flag name='rootfs-install'>Install the library into rootfs, |
104 |
+ to satisfy dependencies of udev when using separate /usr.</flag> |
105 |
+ <flag name='tools'>Install module loading/unloading tools.</flag> |
106 |
+ </use> |
107 |
+</pkgmetadata> |