1 |
aidecoe 11/03/01 01:59:53 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: dracut-008.ebuild |
5 |
Log: |
6 |
sys-kernel/dracut: Version bump to 008, resolves bug #353577 |
7 |
|
8 |
(Portage version: 2.1.9.41/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.9 sys-kernel/dracut/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/ChangeLog?rev=1.9&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/ChangeLog?rev=1.9&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/ChangeLog?r1=1.8&r2=1.9 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v |
20 |
retrieving revision 1.8 |
21 |
retrieving revision 1.9 |
22 |
diff -u -r1.8 -r1.9 |
23 |
--- ChangeLog 9 Jan 2011 03:27:27 -0000 1.8 |
24 |
+++ ChangeLog 1 Mar 2011 01:59:53 -0000 1.9 |
25 |
@@ -1,6 +1,31 @@ |
26 |
# ChangeLog for sys-kernel/dracut |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.8 2011/01/09 03:27:27 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.9 2011/03/01 01:59:53 aidecoe Exp $ |
30 |
+ |
31 |
+*dracut-008 (01 Mar 2011) |
32 |
+ |
33 |
+ 01 Mar 2011; Amadeusz Żołnowski <aidecoe@g.o> +dracut-008.ebuild, |
34 |
+ +files/dracut-008-dm-udev-rules.patch, |
35 |
+ +files/dracut-008-i18n-config-file-parsing-in-hostonly.patch, |
36 |
+ +files/dracut-008-multipath-udev-rules.patch: |
37 |
+ Version bump, resolves bug #353577 |
38 |
+ |
39 |
+ Changes: |
40 |
+ - modules controlled by DRACUT_MODULES USE_EXPAND instead of regular IUSE |
41 |
+ (except of 'debug' and 'selinux') |
42 |
+ - removed mount-boot and mkdir of /boot/dracut (user can create it |
43 |
+ him/herself if really needed) |
44 |
+ - added dependency on baselayout-1.12.14-r1 or above |
45 |
+ - few minor fixes in the ebuild like missing 'die' and so |
46 |
+ |
47 |
+ Other notes: |
48 |
+ - removing biosdevname module (there's no package yet) |
49 |
+ - removing broken modules: bootchart and busybox |
50 |
+ |
51 |
+ Thanks to |
52 |
+ Lucian Muresan <lucianm@×××××××××××××××××.net> |
53 |
+ and Xake <xake@×××××××××.net> |
54 |
+ for report and comments. |
55 |
|
56 |
09 Jan 2011; Mike Frysinger <vapier@g.o> dracut-007.ebuild: |
57 |
Use new mount-boot_pkg_postinst helper. |
58 |
|
59 |
|
60 |
|
61 |
1.5 sys-kernel/dracut/metadata.xml |
62 |
|
63 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/metadata.xml?rev=1.5&view=markup |
64 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/metadata.xml?rev=1.5&content-type=text/plain |
65 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/metadata.xml?r1=1.4&r2=1.5 |
66 |
|
67 |
Index: metadata.xml |
68 |
=================================================================== |
69 |
RCS file: /var/cvsroot/gentoo-x86/sys-kernel/dracut/metadata.xml,v |
70 |
retrieving revision 1.4 |
71 |
retrieving revision 1.5 |
72 |
diff -u -r1.4 -r1.5 |
73 |
--- metadata.xml 17 Aug 2010 18:23:40 -0000 1.4 |
74 |
+++ metadata.xml 1 Mar 2011 01:59:53 -0000 1.5 |
75 |
@@ -6,6 +6,10 @@ |
76 |
<email>ramereth@g.o</email> |
77 |
<name>Lance Albertson</name> |
78 |
</maintainer> |
79 |
+ <maintainer> |
80 |
+ <email>aidecoe@g.o</email> |
81 |
+ <name>Amadeusz Żołnowski</name> |
82 |
+ </maintainer> |
83 |
<use> |
84 |
<flag name="bootchart">Add support for bootchart (app-benchmarks/bootchart)</flag> |
85 |
<flag name="btrfs">Add support for root on Btrfs</flag> |
86 |
|
87 |
|
88 |
|
89 |
1.1 sys-kernel/dracut/dracut-008.ebuild |
90 |
|
91 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/dracut-008.ebuild?rev=1.1&view=markup |
92 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/dracut-008.ebuild?rev=1.1&content-type=text/plain |
93 |
|
94 |
Index: dracut-008.ebuild |
95 |
=================================================================== |
96 |
# Copyright 1999-2011 Gentoo Foundation |
97 |
# Distributed under the terms of the GNU General Public License v2 |
98 |
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-008.ebuild,v 1.1 2011/03/01 01:59:53 aidecoe Exp $ |
99 |
|
100 |
EAPI=2 |
101 |
|
102 |
inherit eutils |
103 |
|
104 |
DESCRIPTION="Generic initramfs generation tool" |
105 |
HOMEPAGE="http://sourceforge.net/projects/dracut/" |
106 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
107 |
|
108 |
LICENSE="GPL-2" |
109 |
SLOT="0" |
110 |
KEYWORDS="~x86 ~amd64" |
111 |
|
112 |
COMMON_MODULES=" |
113 |
dracut_modules_btrfs |
114 |
dracut_modules_gensplash |
115 |
dracut_modules_mdraid |
116 |
dracut_modules_multipath |
117 |
dracut_modules_syslog |
118 |
dracut_modules_xen |
119 |
" |
120 |
NETWORK_MODULES=" |
121 |
dracut_modules_iscsi |
122 |
dracut_modules_nbd |
123 |
dracut_modules_nfs |
124 |
" |
125 |
DM_MODULES=" |
126 |
dracut_modules_crypt |
127 |
dracut_modules_dmraid |
128 |
dracut_modules_dmsquash-live |
129 |
dracut_modules_lvm |
130 |
" |
131 |
IUSE_DRACUT_MODULES="${COMMON_MODULES} ${DM_MODULES} ${NETWORK_MODULES}" |
132 |
IUSE="debug selinux ${IUSE_DRACUT_MODULES}" |
133 |
|
134 |
NETWORK_DEPS="net-misc/bridge-utils >=net-misc/dhcp-3.1.2_p1 sys-apps/iproute2" |
135 |
DM_DEPS="|| ( sys-fs/device-mapper >=sys-fs/lvm2-2.02.33 )" |
136 |
|
137 |
RDEPEND=" |
138 |
>=app-shells/bash-4.0 |
139 |
>=app-shells/dash-0.5.4.11 |
140 |
>=sys-apps/baselayout-1.12.14-r1 |
141 |
>=sys-apps/module-init-tools-3.5 |
142 |
>=sys-apps/sysvinit-2.87-r3 |
143 |
>=sys-apps/util-linux-2.16 |
144 |
>=sys-fs/udev-149 |
145 |
|
146 |
debug? ( dev-util/strace ) |
147 |
selinux? ( sys-libs/libselinux sys-libs/libsepol ) |
148 |
dracut_modules_btrfs? ( sys-fs/btrfs-progs ) |
149 |
dracut_modules_crypt? ( sys-fs/cryptsetup ${DM_DEPS} ) |
150 |
dracut_modules_dmraid? ( sys-fs/dmraid sys-fs/multipath-tools ${DM_DEPS} ) |
151 |
dracut_modules_dmsquash-live? ( sys-apps/eject ${DM_DEPS} ) |
152 |
dracut_modules_gensplash? ( media-gfx/splashutils ) |
153 |
dracut_modules_iscsi? ( sys-block/open-iscsi[utils] ${NETWORK_DEPS} ) |
154 |
dracut_modules_lvm? ( >=sys-fs/lvm2-2.02.33 ) |
155 |
dracut_modules_mdraid? ( sys-fs/mdadm ) |
156 |
dracut_modules_multipath? ( sys-fs/multipath-tools ) |
157 |
dracut_modules_nbd? ( sys-block/nbd ${NETWORK_DEPS} ) |
158 |
dracut_modules_nfs? ( net-fs/nfs-utils net-nds/rpcbind ${NETWORK_DEPS} ) |
159 |
dracut_modules_syslog? ( || ( app-admin/syslog-ng app-admin/rsyslog ) ) |
160 |
dracut_modules_xen? ( app-emulation/xen ) |
161 |
" |
162 |
DEPEND=" |
163 |
>=dev-libs/libxslt-1.1.26 |
164 |
app-text/docbook-xml-dtd:4.5 |
165 |
>=app-text/docbook-xsl-stylesheets-1.75.2 |
166 |
" |
167 |
|
168 |
# |
169 |
# Helper functions |
170 |
# |
171 |
|
172 |
# Returns true if any of specified modules is enabled by USE flag and false |
173 |
# otherwise. |
174 |
# $1 = list of modules (which have corresponding USE flags of the same name) |
175 |
any_module() { |
176 |
local m modules=" $@ " |
177 |
|
178 |
for m in ${modules}; do |
179 |
! use $m && modules=${modules/ $m / } |
180 |
done |
181 |
|
182 |
shopt -s extglob |
183 |
modules=${modules%%+( )} |
184 |
shopt -u extglob |
185 |
|
186 |
[[ ${modules} ]] |
187 |
} |
188 |
|
189 |
# Removes module from modules.d. |
190 |
# $1 = module name |
191 |
# Module name can be specified without number prefix. |
192 |
rm_module() { |
193 |
local m |
194 |
|
195 |
for m in $@; do |
196 |
if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then |
197 |
rm -rf "${modules_dir}"/$m |
198 |
else |
199 |
rm -rf "${modules_dir}"/[0-9][0-9]$m |
200 |
fi |
201 |
done |
202 |
} |
203 |
|
204 |
# Displays Gentoo Base System major release number |
205 |
base_sys_maj_ver() { |
206 |
local line |
207 |
|
208 |
read line < /etc/gentoo-release |
209 |
line=${line##* } |
210 |
echo "${line%%.*}" |
211 |
} |
212 |
|
213 |
# |
214 |
# ebuild functions |
215 |
# |
216 |
|
217 |
src_prepare() { |
218 |
epatch "${FILESDIR}/${P}-dm-udev-rules.patch" |
219 |
epatch "${FILESDIR}/${P}-i18n-config-file-parsing-in-hostonly.patch" |
220 |
epatch "${FILESDIR}/${P}-multipath-udev-rules.patch" |
221 |
} |
222 |
|
223 |
src_compile() { |
224 |
emake WITH_SWITCH_ROOT=0 || die "emake failed" |
225 |
} |
226 |
|
227 |
src_install() { |
228 |
emake WITH_SWITCH_ROOT=0 \ |
229 |
prefix=/usr sysconfdir=/etc DESTDIR="${D}" \ |
230 |
install || die "emake install failed" |
231 |
|
232 |
local gen2conf |
233 |
|
234 |
dodir /var/lib/dracut/overlay |
235 |
dodoc HACKING TODO AUTHORS NEWS README* || die 'dodoc failed' |
236 |
|
237 |
case "$(base_sys_maj_ver)" in |
238 |
1) gen2conf=gentoo.conf ;; |
239 |
2) gen2conf=gentoo-openrc.conf ;; |
240 |
*) die "Expected ver. 1 or 2 of Gentoo Base System (/etc/gentoo-release)." |
241 |
esac |
242 |
|
243 |
insinto /etc/dracut.conf.d |
244 |
newins dracut.conf.d/${gen2conf}.example ${gen2conf} \ |
245 |
|| die 'gen2conf ins failed' |
246 |
|
247 |
# |
248 |
# Modules |
249 |
# |
250 |
local module |
251 |
modules_dir="${D}/usr/share/dracut/modules.d" |
252 |
|
253 |
echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version \ |
254 |
|| die 'dracut-version failed' |
255 |
|
256 |
# Remove modules not enabled by USE flags |
257 |
for module in ${IUSE_DRACUT_MODULES} ; do |
258 |
! use ${module} && rm_module ${module#dracut_modules_} |
259 |
done |
260 |
|
261 |
# Those flags are specific, and even are corresponding to modules, they need |
262 |
# to be declared as regular USE flags. |
263 |
use debug || rm_module 95debug |
264 |
use selinux || rm_module 98selinux |
265 |
|
266 |
! any_module ${DM_MODULES} && rm_module 90dm |
267 |
! any_module ${NETWORK_MODULES} && rm_module 45ifcfg 40network |
268 |
|
269 |
# Remove S/390 modules which are not tested at all |
270 |
rm_module 95dasd 95dasd_mod 95zfcp 95znet |
271 |
|
272 |
# Remove modules which won't work for sure |
273 |
rm_module 00bootchart 05busybox # broken |
274 |
rm_module 95fcoe 97biosdevname # no tools |
275 |
|
276 |
# fips module depends on masked app-crypt/hmaccalc |
277 |
rm_module 01fips |
278 |
} |
279 |
|
280 |
pkg_postinst() { |
281 |
elog 'To generate the initramfs:' |
282 |
elog ' # mount /boot (if necessary)' |
283 |
elog ' # dracut "" <kernel-version>' |
284 |
elog '' |
285 |
elog 'For command line documentation see man 7 dracut.kernel.' |
286 |
elog '' |
287 |
elog 'Simple example to select root and resume partition:' |
288 |
elog ' root=/dev/sda1 resume=/dev/sda2' |
289 |
elog '' |
290 |
elog 'The default config (in /etc/dracut.conf) is very minimal and is highly' |
291 |
elog 'recommended you adjust based on your needs. To include only dracut' |
292 |
elog 'modules and kernel drivers for this system, use the "-H" option.' |
293 |
elog 'Some modules need to be explicitly added with "-a" option even if' |
294 |
elog 'required tools are installed.' |
295 |
echo |
296 |
ewarn 'dhcp-3 is known to not work with QEMU. You will need dhcp-4 or' |
297 |
ewarn 'later for it.' |
298 |
} |