summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2011-03-02 18:36:45 +0000
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2011-03-02 18:36:45 +0000
commitff9fcae3fdeb230011c560f2bf40643601af9cec (patch)
tree1e1408b5b72fa25f0e8c9602f1362f696cfaa85c
parentSecurity bump. (diff)
downloadhistorical-ff9fcae3fdeb230011c560f2bf40643601af9cec.tar.gz
historical-ff9fcae3fdeb230011c560f2bf40643601af9cec.tar.bz2
historical-ff9fcae3fdeb230011c560f2bf40643601af9cec.zip
sys-kernel/dracut-007: Propagated few improvements from 008. Fixes bug #348085.
Package-Manager: portage-2.1.9.41/cvs/Linux x86_64
-rw-r--r--sys-kernel/dracut/ChangeLog9
-rw-r--r--sys-kernel/dracut/Manifest4
-rw-r--r--sys-kernel/dracut/dracut-007.ebuild30
3 files changed, 25 insertions, 18 deletions
diff --git a/sys-kernel/dracut/ChangeLog b/sys-kernel/dracut/ChangeLog
index f22b29fc07b1..0795b55941fa 100644
--- a/sys-kernel/dracut/ChangeLog
+++ b/sys-kernel/dracut/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-kernel/dracut
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.11 2011/03/01 09:55:46 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.12 2011/03/02 18:36:45 aidecoe Exp $
+
+ 02 Mar 2011; Amadeusz Żołnowski <aidecoe@gentoo.org> dracut-007.ebuild:
+ Propagated few improvements from dracut-008.ebuild. Resolves bug #348085.
+
+ Changes include:
+ - removed mount-boot and mkdir of /boot/dracut (user can create it
+ him/herself if really needed)
01 Mar 2011; Amadeusz Żołnowski <aidecoe@gentoo.org> dracut-007.ebuild:
Added dependency on baselayout-1.12.14-r1 or above.
diff --git a/sys-kernel/dracut/Manifest b/sys-kernel/dracut/Manifest
index 2df35e65520e..ea84fd993d30 100644
--- a/sys-kernel/dracut/Manifest
+++ b/sys-kernel/dracut/Manifest
@@ -24,7 +24,7 @@ EBUILD dracut-003.ebuild 2474 RMD160 8f53fe04670209c18ee7e7463b92bcfe911007fd SH
EBUILD dracut-004.ebuild 2474 RMD160 534ac5f5d264da262c8d69c539cdc2845570c986 SHA1 f4d53a1e0d91c343451e2dc813b01dec08910b4a SHA256 1ecdc47c920e83254ef4d03e61963bd55c760907c5bfd024dc8499e66b59a8c1
EBUILD dracut-006-r1.ebuild 4092 RMD160 54f6c688415c52512f493db713786e87d6df9900 SHA1 7bb899ec1f8ad5e7489d06c16d0d47167b3d325d SHA256 2a473bd00e880fd7d6e4f2b61f44ecdcabc33e5a000b48a12088f75a8fb208fb
EBUILD dracut-006.ebuild 2897 RMD160 d0d0d03c45f0fbeef08be6b423b51316f5b444f8 SHA1 0fffd1d71e15a390348244633ef0ee494d8470ff SHA256 3c6e4e0810b169192c8fb247fb5333c11661d6490dcca2103a97bee38dac4592
-EBUILD dracut-007.ebuild 4823 RMD160 c9c882885d93cc076d9a0944c3d355845cd4bc7c SHA1 b811435002bd84cdd25246c7c14ef987ae24b3bd SHA256 9b22f32980f4d332bc257fff71a260fb133110766eed8feb7b13f9afdf6f4c61
+EBUILD dracut-007.ebuild 4810 RMD160 927aacf308172ccb85aed3f7c42b0c080276c2ad SHA1 d8def3d8af61579c5dabcad69adc436b5607a85c SHA256 2d0e17ac8a8a29380599c7354f28cc27f0bbfbf624f2e4c5d7ca8b72e16100b0
EBUILD dracut-008.ebuild 5738 RMD160 e442921070b8e8e5d2bb4bccb1be1c6fb7e854a8 SHA1 cf4ff1792887af2ad4a3dba1c23cc7f555054c28 SHA256 26eb7e5ca68a99687d043c51c2fc2f23f002fe17845155497f7c531d8749176e
-MISC ChangeLog 3844 RMD160 91e1df5a69c50138d1fd8f6915f808530856049f SHA1 5852e6c08b70e57dd40c5fdbe92e14b268a8a25c SHA256 8059b4bcc908020386b9a42e54d4122d588ce3c4fb610e4a8433b1ef581de13d
+MISC ChangeLog 4120 RMD160 58f3f1d17747ff5c081413cfd38fa0f1e501c641 SHA1 e54225bbf06b5d1f28ac9cf096c50176b61ef9ab SHA256 8558608d981883e2538d3522f01cfffd4de1f80990e14fe13272b3ef9ea75600
MISC metadata.xml 1820 RMD160 6e51027b7113eb28371e85618e636bf6ee1a3942 SHA1 63b26083897f28ae527b3d580f30981e60ebbf7d SHA256 cb8e1b5f04b63b4832c38fc1dd9e95501bcffa41f6f79fe6e251bfc7c702e5c3
diff --git a/sys-kernel/dracut/dracut-007.ebuild b/sys-kernel/dracut/dracut-007.ebuild
index 3a5038469248..20cae8a77c23 100644
--- a/sys-kernel/dracut/dracut-007.ebuild
+++ b/sys-kernel/dracut/dracut-007.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-007.ebuild,v 1.4 2011/03/01 09:55:46 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-007.ebuild,v 1.5 2011/03/02 18:36:45 aidecoe Exp $
EAPI=2
-inherit eutils mount-boot
+inherit eutils
DESCRIPTION="Generic initramfs generation tool"
HOMEPAGE="http://sourceforge.net/projects/dracut/"
@@ -111,18 +111,18 @@ src_prepare() {
}
src_compile() {
- emake WITH_SWITCH_ROOT=0 prefix=/usr sysconfdir=/etc || die "emake failed"
+ emake WITH_SWITCH_ROOT=0 || die "emake failed"
}
src_install() {
emake WITH_SWITCH_ROOT=0 \
- prefix=/usr sysconfdir=/etc \
- DESTDIR="${D}" install || die "emake install failed"
+ prefix=/usr sysconfdir=/etc DESTDIR="${D}" \
+ install || die "emake install failed"
local gen2conf
- dodir /boot/dracut /var/lib/dracut/overlay /etc/dracut.conf.d
- dodoc HACKING TODO AUTHORS NEWS README*
+ dodir /var/lib/dracut/overlay
+ dodoc HACKING TODO AUTHORS NEWS README* || die 'dodoc failed'
case "$(base_sys_maj_ver)" in
1) gen2conf=gentoo.conf ;;
@@ -131,7 +131,8 @@ src_install() {
esac
insinto /etc/dracut.conf.d
- newins dracut.conf.d/${gen2conf}.example ${gen2conf}
+ newins dracut.conf.d/${gen2conf}.example ${gen2conf} \
+ || die 'gen2conf ins failed'
#
# Modules
@@ -139,9 +140,10 @@ src_install() {
local module
modules_dir="${D}/usr/share/dracut/modules.d"
- echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version
+ echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version \
+ || die 'dracut-version failed'
- # Disable modules not enabled by USE flags
+ # Remove modules not enabled by USE flags
for module in ${IUSE} ; do
! use ${module} && rm_module ${module}
done
@@ -149,10 +151,10 @@ src_install() {
! any_module ${DM_IUSE} && rm_module 90dm
! any_module ${NETWORK_IUSE} && rm_module 45ifcfg 40network
- # Disable S/390 modules which are not tested at all
+ # Remove S/390 modules which are not tested at all
rm_module 95dasd 95dasd_mod 95zfcp 95znet
- # Disable modules which won't work for sure
+ # Remove modules which won't work for sure
rm_module 95fcoe # no tools
# fips module depends on masked app-crypt/hmaccalc
@@ -160,13 +162,11 @@ src_install() {
}
pkg_postinst() {
- mount-boot_pkg_postinst
-
elog 'To generate the initramfs:'
elog ' # mount /boot (if necessary)'
elog ' # dracut "" <kernel-version>'
elog ''
- elog 'For command line documentation see man 7 dracut.kernel.'
+ elog 'For command line documentation see dracut.kernel(7).'
elog ''
elog 'Simple example to select root and resume partition:'
elog ' root=/dev/sda1 resume=/dev/sda2'