Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/module-init-tools: ChangeLog module-init-tools-3.13.ebuild
Date: Wed, 01 Jun 2011 15:00:41
Message-Id: 20110601150031.A36BA20054@flycatcher.gentoo.org
1 vapier 11/06/01 15:00:31
2
3 Modified: ChangeLog
4 Added: module-init-tools-3.13.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha33/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.169 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.169&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/ChangeLog?rev=1.169&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/ChangeLog?r1=1.168&r2=1.169
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v
20 retrieving revision 1.168
21 retrieving revision 1.169
22 diff -u -r1.168 -r1.169
23 --- ChangeLog 1 Jun 2011 09:39:45 -0000 1.168
24 +++ ChangeLog 1 Jun 2011 15:00:31 -0000 1.169
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-apps/module-init-tools
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.168 2011/06/01 09:39:45 klausman Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.169 2011/06/01 15:00:31 vapier Exp $
30 +
31 +*module-init-tools-3.13 (01 Jun 2011)
32 +
33 + 01 Jun 2011; Mike Frysinger <vapier@g.o>
34 + +module-init-tools-3.13.ebuild:
35 + Version bump.
36
37 01 Jun 2011; Tobias Klausmann <klausman@g.o>
38 module-init-tools-3.12-r1.ebuild:
39
40
41
42 1.1 sys-apps/module-init-tools/module-init-tools-3.13.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.13.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.13.ebuild?rev=1.1&content-type=text/plain
46
47 Index: module-init-tools-3.13.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.13.ebuild,v 1.1 2011/06/01 15:00:31 vapier Exp $
52
53 inherit eutils flag-o-matic
54
55 DESCRIPTION="tools for managing linux kernel modules"
56 HOMEPAGE="http://modules.wiki.kernel.org/"
57 SRC_URI="mirror://kernel/linux/utils/kernel/module-init-tools/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
62 IUSE="static"
63 RESTRICT="test"
64
65 DEPEND="sys-libs/zlib
66 !<sys-apps/baselayout-2.0.1
67 !sys-apps/modutils"
68
69 src_unpack() {
70 unpack ${A}
71 cd "${S}"
72 rm -rf tests/build # punt precompiled objects
73 touch *.5 *.8 # dont regen manpages
74 }
75
76 src_compile() {
77 mkdir build && cd build #290207
78 use static && append-ldflags -static
79 ECONF_SOURCE=.. \
80 econf \
81 --prefix=/ \
82 --enable-zlib \
83 --enable-zlib-dynamic \
84 --disable-static-utils
85 emake || die
86 }
87
88 src_test() {
89 # this manually runs configure and stuff, so ignore it
90 ./tests/runtests -v || 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 }