Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/module-init-tools: module-init-tools-3.12-r1.ebuild ChangeLog
Date: Sat, 04 Sep 2010 10:43:07
Message-Id: 20100904104302.C9D7B20051@flycatcher.gentoo.org
1 ssuominen 10/09/04 10:43:02
2
3 Modified: ChangeLog
4 Added: module-init-tools-3.12-r1.ebuild
5 Log:
6 Install /etc/modprobe.d/usb-load-ehci-first.conf that will ensure ehci is loaded before uhci or ohci wrt #260139. Thanks to Szymon Zygmunt, Martin Mokrejš, Pacho Ramos and Mike Frysinger.
7
8 (Portage version: 2.2_rc69/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.160 sys-apps/module-init-tools/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/ChangeLog?rev=1.160&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/ChangeLog?rev=1.160&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/ChangeLog?r1=1.159&r2=1.160
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v
20 retrieving revision 1.159
21 retrieving revision 1.160
22 diff -u -r1.159 -r1.160
23 --- ChangeLog 6 Aug 2010 05:56:00 -0000 1.159
24 +++ ChangeLog 4 Sep 2010 10:43:02 -0000 1.160
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sys-apps/module-init-tools
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.159 2010/08/06 05:56:00 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.160 2010/09/04 10:43:02 ssuominen Exp $
30 +
31 +*module-init-tools-3.12-r1 (04 Sep 2010)
32 +
33 + 04 Sep 2010; Samuli Suominen <ssuominen@g.o>
34 + +module-init-tools-3.12-r1.ebuild:
35 + Install /etc/modprobe.d/usb-load-ehci-first.conf that will ensure ehci is
36 + loaded before uhci or ohci wrt #260139. Thanks to Szymon Zygmunt, Martin
37 + Mokrejš, Pacho Ramos and Mike Frysinger.
38
39 06 Aug 2010; Mike Frysinger <vapier@g.o> module-init-tools-3.5.ebuild,
40 module-init-tools-3.6-r1.ebuild, module-init-tools-3.8.ebuild,
41
42
43
44 1.1 sys-apps/module-init-tools/module-init-tools-3.12-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.12-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.12-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: module-init-tools-3.12-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.12-r1.ebuild,v 1.1 2010/09/04 10:43:02 ssuominen Exp $
54
55 inherit eutils flag-o-matic
56
57 DESCRIPTION="tools for managing linux kernel modules"
58 HOMEPAGE="http://modules.wiki.kernel.org/"
59 SRC_URI="mirror://kernel/linux/utils/kernel/module-init-tools/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
64 IUSE="static"
65
66 DEPEND="sys-libs/zlib
67 >=sys-apps/baselayout-2.0.1
68 !virtual/modutils"
69 PROVIDE="virtual/modutils"
70
71 src_unpack() {
72 unpack ${A}
73 cd "${S}"
74 touch *.5 *.8 # dont regen manpages
75 }
76
77 src_compile() {
78 mkdir build && cd build #290207
79 use static && append-ldflags -static
80 ECONF_SOURCE=.. \
81 econf \
82 --prefix=/ \
83 --enable-zlib \
84 --enable-zlib-dynamic \
85 --disable-static-utils
86 emake || die
87 }
88
89 src_test() {
90 ./tests/runtests || die
91 }
92
93 src_install() {
94 emake -C build install DESTDIR="${D}" || die
95 dodoc AUTHORS ChangeLog NEWS README TODO
96
97 into /
98 newsbin "${FILESDIR}"/update-modules-3.5.sh update-modules || die
99 doman "${FILESDIR}"/update-modules.8 || die
100
101 cat <<-EOF > "${T}"/usb-load-ehci-first.conf
102 install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install ohci_hcd \$CMDLINE_OPTS
103 install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install uhci_hcd \$CMDLINE_OPTS
104 EOF
105
106 insinto /etc/modprobe.d
107 doins "${T}"/usb-load-ehci-first.conf || die #260139
108 }
109
110 pkg_postinst() {
111 # cheat to keep users happy
112 if grep -qs modules-update "${ROOT}"/etc/init.d/modules ; then
113 sed -i 's:modules-update:update-modules:' "${ROOT}"/etc/init.d/modules
114 fi
115
116 # For files that were upgraded but not renamed via their ebuild to
117 # have a proper .conf extension, rename them so etc-update tools can
118 # take care of things. #274942
119 local i f cfg
120 eshopts_push -s nullglob
121 for f in "${ROOT}"etc/modprobe.d/* ; do
122 # The .conf files need no upgrading unless a non-.conf exists,
123 # so skip this until later ...
124 [[ ${f} == *.conf ]] && continue
125 # If a .conf doesn't exist, then a package needs updating, or
126 # the user created it, or it's orphaned. Either way, we don't
127 # really know, so leave it alone.
128 [[ ! -f ${f}.conf ]] && continue
129
130 i=0
131 while :; do
132 cfg=$(printf "%s/._cfg%04d_%s.conf" "${f%/*}" ${i} "${f##*/}")
133 [[ ! -e ${cfg} ]] && break
134 ((i++))
135 done
136 elog "Updating ${f}; please run 'etc-update'"
137 mv "${f}.conf" "${cfg}"
138 mv "${f}" "${f}.conf"
139 done
140 # Whine about any non-.conf files that are left
141 for f in "${ROOT}"etc/modprobe.d/* ; do
142 [[ ${f} == *.conf ]] && continue
143 ewarn "The '${f}' file needs to be upgraded to end with a '.conf'."
144 ewarn "Either upgrade the package that owns it, or manually rename it."
145 done
146 eshopts_pop
147 }