Gentoo Archives: gentoo-commits

From: "Lance Albertson (ramereth)" <ramereth@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-kernel/dracut: ChangeLog dracut-004.ebuild dracut-002.ebuild
Date: Tue, 02 Feb 2010 16:32:40
Message-Id: E1NcLg1-0004Vl-8Q@stork.gentoo.org
1 ramereth 10/02/02 16:32:33
2
3 Modified: ChangeLog
4 Added: dracut-004.ebuild
5 Removed: dracut-002.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.1.7.16/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 sys-kernel/dracut/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/dracut/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/dracut/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/dracut/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 9 Dec 2009 08:24:27 -0000 1.2
24 +++ ChangeLog 2 Feb 2010 16:32:32 -0000 1.3
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-kernel/dracut
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.2 2009/12/09 08:24:27 ramereth Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.3 2010/02/02 16:32:32 ramereth Exp $
31 +
32 +*dracut-004 (02 Feb 2010)
33 +
34 + 02 Feb 2010; Lance Albertson <ramereth@g.o> -dracut-002.ebuild,
35 + +dracut-004.ebuild:
36 + Version bump
37
38 *dracut-003 (09 Dec 2009)
39 *dracut-002-r1 (09 Dec 2009)
40
41
42
43 1.1 sys-kernel/dracut/dracut-004.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/dracut/dracut-004.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/dracut/dracut-004.ebuild?rev=1.1&content-type=text/plain
47
48 Index: dracut-004.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-004.ebuild,v 1.1 2010/02/02 16:32:32 ramereth Exp $
53
54 EAPI=2
55
56 inherit mount-boot
57
58 DESCRIPTION="Generic initramfs generation tool"
59 HOMEPAGE="http://sourceforge.net/projects/dracut/"
60 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="crypt dmraid iscsi lvm nbd nfs md selinux"
66
67 # common networking deps
68 NETWORK_DEPS="sys-apps/iproute2 net-misc/dhcp net-misc/bridge-utils"
69
70 RDEPEND="app-shells/dash
71 >=sys-apps/module-init-tools-3.6
72 >=sys-apps/util-linux-2.16
73 crypt? ( sys-fs/cryptsetup )
74 dmraid? ( sys-fs/dmraid )
75 lvm? ( >=sys-fs/lvm2-2.02.33 )
76 md? ( sys-fs/mdadm )
77 nfs? ( net-fs/nfs-utils net-nds/rpcbind ${NETWORK_DEPS} )
78 iscsi? ( sys-block/open-iscsi[utils] ${NETWORK_DEPS} )
79 nbd? ( sys-block/nbd ${NETWORK_DEPS} )
80 selinux? ( sys-libs/libselinux sys-libs/libsepol )"
81 DEPEND="${RDEPEND}"
82
83 src_compile() {
84 emake WITH_SWITCH_ROOT=0 prefix=/usr sysconfdir=/etc || die "emake failed"
85 }
86
87 src_install() {
88 local modules_dir="${D}/usr/share/dracut/modules.d"
89
90 emake WITH_SWITCH_ROOT=0 \
91 prefix=/usr sysconfdir=/etc \
92 DESTDIR="${D}" install || die "emake install failed"
93 echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version
94 dodir /boot/dracut /var/lib/dracut/overlay
95 dodoc HACKING TODO AUTHORS NEWS README*
96 # disable modules not enabled by use flags
97 for module in crypt dmraid lvm md ; do
98 ! use ${module} && rm -rf ${modules_dir}/90${module}
99 done
100 # disable all network modules
101 for module in iscsi nbd nfs ; do
102 ! use ${module} && rm -rf ${modules_dir}/95${module}
103 done
104 # if no networking at all, disable the rest
105 if ! use iscsi && ! use nbd && ! use nfs ; then
106 rm -rf ${modules_dir}/40network
107 rm -rf ${modules_dir}/95fcoe
108 fi
109 }
110
111 pkg_postinst() {
112 elog 'To generate the initramfs:'
113 elog ' # mount /boot (if necessary)'
114 elog ' # dracut "" <kernel-version>'
115 elog ''
116 elog 'For command line documentation, see:'
117 elog 'http://sourceforge.net/apps/trac/dracut/wiki/commandline'
118 elog ''
119 elog 'Simple example to select root and resume partition:'
120 elog ' root=/dev/???? resume=/dev/????'
121 elog ''
122 elog 'Configuration is in /etc/dracut.conf.'
123 elog 'The default config is very minimal and is highly recommended you'
124 elog 'adjust based on your needs. To include only drivers for this system,'
125 elog 'use the "-H" option.'
126 }