summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2011-06-30 21:39:37 +0000
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2011-06-30 21:39:37 +0000
commit6cdd57e16963c43d864f2709d705c43631c5054c (patch)
tree00d247ae7dcb4d0656c5da66e95afbe403e77058 /sys-kernel
parent[sys-infiniband/libipathverbs] Initial import to tree (diff)
downloadhistorical-6cdd57e16963c43d864f2709d705c43631c5054c.tar.gz
historical-6cdd57e16963c43d864f2709d705c43631c5054c.tar.bz2
historical-6cdd57e16963c43d864f2709d705c43631c5054c.zip
sys-kernel/dracut-010: Removed old revisions.
Package-Manager: portage-2.1.10.3/cvs/Linux x86_64
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/cluster-sources/Manifest27
-rw-r--r--sys-kernel/dracut/ChangeLog6
-rw-r--r--sys-kernel/dracut/Manifest19
-rw-r--r--sys-kernel/dracut/dracut-010-r1.ebuild213
-rw-r--r--sys-kernel/dracut/dracut-010-r2.ebuild214
-rw-r--r--sys-kernel/dracut/dracut-010.ebuild212
6 files changed, 40 insertions, 651 deletions
diff --git a/sys-kernel/cluster-sources/Manifest b/sys-kernel/cluster-sources/Manifest
new file mode 100644
index 000000000000..cc9cdb3ca637
--- /dev/null
+++ b/sys-kernel/cluster-sources/Manifest
@@ -0,0 +1,27 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST clusterpathches-2.6.39-2.tar.bz2 23913 RMD160 72073d57382a7dac648be3ab73487e4812476293 SHA1 343de96de7405129e2c5c868cd0d043eb021d994 SHA256 92fa832384c988c075128a1f30c1befd698fec9859c1926720c7ae23c6b777a3
+DIST genpatches-2.6.39-2.base.tar.bz2 57467 RMD160 c20f1d07ea619bbd1d9edab6418507127f8ae4c5 SHA1 d32a62dc405c0fbc002b7d1946959a036c5a2217 SHA256 0cc7c4b536be7eaba3a3f1875132570d5ccc0ea1317ff9891544c492330350e6
+DIST genpatches-2.6.39-2.extras.tar.bz2 15672 RMD160 e94ef6536034ccb5e8cf7d5b0282c2274f33cc0d SHA1 68edf710278d5c0454f361b140663d9eb4ea6998 SHA256 8cd7268fc0329278e0fd00fdde9e928c353e591c5147fb4eed50a80fefbf87fa
+DIST linux-2.6.39.tar.bz2 76096559 RMD160 feddc516bc15e78f12f611ff184d38baa4eac4ee SHA1 68518112821e55f4ac1df64f2e0e809cedfcc5ef SHA256 584d17f2a3ee18a9501d7ff36907639e538cfdba4529978b8550c461d45c61f6
+EBUILD cluster-sources-2.6.39.ebuild 1009 RMD160 d2e1dba9404f4038d3c59e30375aeeb2494a93ff SHA1 06abc623410298b516f5bd95280f3690b6b7f973 SHA256 db450d036c43314dcd6436c6e3e5271918740f2032a136ccedd965261d60f588
+MISC ChangeLog 487 RMD160 ba37c59b1ee8de211b69ca0b4d836bb22e44a3bc SHA1 9f4f65a6ebdbd98897f192865ede1fc4a961a682 SHA256 84fcfd66533c9cfc315371992d3d6f84aa68a3667565347daf0c3865c71d33e2
+MISC metadata.xml 263 RMD160 e82d25514ec790cf4184509b1be7ee226dcc20ab SHA1 1aa6ac017f9d83f5e58ef71827371b28b0e1b93f SHA256 c823c9de88cec66a61b8a6111630efe0435fa05142df06a24fe243d6570f0ac3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQIcBAEBCAAGBQJODO1oAAoJEOf+E+/4L5Lm2IkP/R/SuyPlLvdDDD3Fjn4l/wkl
+3un3BypQQ8vRB+6EOdHVYoAWHxMDylJQ0/qLwYeJOs9eholiZQSqMHUmVqpQzP2K
+xgcZP5BUtMRgEa0GKebfutcGNKKdGTv2q9dJohjI0PF4905Ndo4f4JLAyfPqHi4x
+VtG7p9VXeNkkYpeuD4Dvpu3ZvD9ebrDHPKTzDsSH/xji2YBHmOf2OSZJlxXMa6zD
++Vr6Db0+x3WqgAqDNx94zhVKXgid5vnjjHtnWKrNx1YPSZzpetOe5PF84lunU+eD
+QfhpzYdBEXvXWjqZEl9eWSWsqgw8f/kV6XwGLA+4f0jKeDaLqYe+chvRk9pQ4XGW
+IJwy5hNKi1UBFGKem/lhxMRsG94KRygWazUJmQLKBYEDlkqSaIZ0+P4wvrHbeIC6
+R+AuShlVMSu1/9Zr2HQTrMkxrxUgrL9EhgQb8T7iObhZTAttviQi/eZk1mS7VXiy
+Fue5bkpVZ+oWs9pZiB5azml36/aq6M7Ij5CX97P7coaZMjyQjGfEJPIhuUsEzCBM
+o+JlUN3Id9FFAe/KyNhJuiCU/W3IoRTnNv7c0MBiYkBfcHOVg8gDjEmk/dADnYlJ
+KL3HGg0wxaxzVPuvPwj4B4C2KKFgsXTTw1IvDQB/Y3JRabfxPNvtuZwglMalrBAy
+/8fFxug2+r/Gn+/qv4jk
+=59I2
+-----END PGP SIGNATURE-----
diff --git a/sys-kernel/dracut/ChangeLog b/sys-kernel/dracut/ChangeLog
index b579c73b2366..95f745f564be 100644
--- a/sys-kernel/dracut/ChangeLog
+++ b/sys-kernel/dracut/ChangeLog
@@ -1,6 +1,10 @@
# 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.25 2011/06/30 21:23:39 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.26 2011/06/30 21:39:37 aidecoe Exp $
+
+ 30 Jun 2011; Amadeusz Żołnowski <aidecoe@gentoo.org> -dracut-010.ebuild,
+ -dracut-010-r1.ebuild, -dracut-010-r2.ebuild:
+ Removed old revisions of version 010.
*dracut-010-r3 (30 Jun 2011)
diff --git a/sys-kernel/dracut/Manifest b/sys-kernel/dracut/Manifest
index ae2cd80f3128..c9f0cfff3426 100644
--- a/sys-kernel/dracut/Manifest
+++ b/sys-kernel/dracut/Manifest
@@ -20,20 +20,17 @@ EBUILD dracut-007.ebuild 4817 RMD160 b9d983b8cdabc60e0cadf90f1405c76e88731cf8 SH
EBUILD dracut-008-r1.ebuild 5832 RMD160 5a5f978f28be2cdef5f6df5782d623b25a417123 SHA1 6ec710509d56427941e00cf0bff6edf16d892f2a SHA256 95c03df493e91c716de5573a9a33134dd6a660a31ddbf8f9dbd7317b1d979ddc
EBUILD dracut-008.ebuild 5745 RMD160 194d7b14c84d8411d49235a4359d6d2c6193cce6 SHA1 5346f7e5be40e78d57ec0dc2e0dcb326172a11ab SHA256 bd308a8caddf8737455439383931dd7275384e8814599a63c9eb76a0a165aa5f
EBUILD dracut-009-r1.ebuild 5926 RMD160 1ea8662b9ba97fff4cd7213edff46dd686f9c0cb SHA1 addddc776d153fbf5df75cd5297bb3543ee2c4f3 SHA256 cbc4e30d8b9836d15c3ebc7e5614122734770ef1fa370c2b90c807ae4a8b930d
-EBUILD dracut-010-r1.ebuild 5911 RMD160 37ade9087b979e2d4c96be82932cec0415125493 SHA1 827764e319155d64254fd698d63e690112c83940 SHA256 7ea5498176d284fed093d77ce93f27008fdcaa7bf2434302e7fbb234e6de14e9
-EBUILD dracut-010-r2.ebuild 5931 RMD160 9c06252c79d55c098308d541bc95c94a6890791f SHA1 9ad9906eda5850ff8b164e01c3b08ffccadffefd SHA256 cd9a1da1ced041f6ef5d560490085641f8b5daa1c6b5e4ef62ec48e4a8969871
EBUILD dracut-010-r3.ebuild 6050 RMD160 d6bf1562f9956eee52d7d54ac6824a56401b80d5 SHA1 704d2e9f53e82e06f1b904d542b926abb565f6b1 SHA256 377c77f8795b0641c1fc076d50af21544d799f56fa65e64a5aaf4a99754213d9
-EBUILD dracut-010.ebuild 5852 RMD160 ed4739eec15783900fd9f08c93d7b68de6389040 SHA1 abe57e06520bd17595056ad810f2c5cec23a88b5 SHA256 a39d4e29a7d03fe241de6d4806535c3e5d2b6324c7de5169a93b7fd60251ed67
-MISC ChangeLog 7591 RMD160 3a74431f2bacdbde59b024ac227d2588db513906 SHA1 341b52ec4eab1ec848d2d326ab4f460d7c142056 SHA256 efcadb262382963dacbb955cb661c75ab77082838a13f611e1dfb6cbfba63d01
+MISC ChangeLog 7757 RMD160 4a484f14104cf7cc2c5a115eb070a2b8587612dc SHA1 d064d61c3162d9c7ce33c9cc35b079ca3eb7014c SHA256 5e64c1c0df3065bdead720d751ad2183b37250fbe9d59f5c859a4cf753b7de8e
MISC metadata.xml 1725 RMD160 b297eb03e09381e2b03d98b37755c56f5ebe546d SHA1 145aef995db3cc66ead45189d722c7939c6d0ed7 SHA256 4a4acf6ddbe7fe41200c9bab075f677d46848b09f680a2eab05921a29455316f
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iQEcBAEBAgAGBQJODOlhAAoJEPATRTHh2/q1egcIAJ/kD7YVh86RIFVTG37Wv7U/
-DO9emHxVbYk0g+qzlTV6WENIhc7QfyjH/9cRUfnTLayCoWmUfOf+f9ZXOOPqck7R
-VjmqUgyFLsOv9YpU1LvSqVCY7QCKDtiWwuyJG8w7mrt7LBZ8eWTd7GSIBSELx5Zm
-N6G4+qVYmOdz8GwUY3Eqo4nAcdEutVR/nYpN7tuQZnk4I6bHu5I1ezxiJ0Wuj0v/
-1dGRn1sEKAVnYUZMbZFtBrXd5DlluAhGxyV7vivHbUJfy00N6BZE93rsAt2Ktu9i
-9pvFp5BLND2a9xEU/4KUbDNxiEfeTQxyg/o0uMjYOOPIwHR0DPTIbOkgtr620Ls=
-=J0OQ
+iQEcBAEBAgAGBQJODO0gAAoJEPATRTHh2/q1iI8IAIQEQFx/1NsJhcC+iFOO8eP2
+rAEd8lkk0IwSLsa6Xk+NFcPUrBQitZunA0nx9nvqcVV5vtNdRE5zsHYMD1x5Of90
+99WuJAhy76dNhXvgz5lfqQOAyghoLAWxKVe89cEOmTIFNAJIwQV+aZ3NV836ey9D
+gvNwRXnP4289rgEnkKACXrPVJ15ontp1GZ6JZk4PLA+ANZExPaiNoK+QaFBZo/6r
+LEudOAEjwl6CFZP9co3YKWMZXRP9JzQTGIVnP91BtuCv6/bhe1RH/JJb1LNhEbH7
+pALYeemLH9SvF31bJsqpZ911rg8tROau/VFVPVYKo0/NSIZAupvG3LbggqaaMVY=
+=zHkr
-----END PGP SIGNATURE-----
diff --git a/sys-kernel/dracut/dracut-010-r1.ebuild b/sys-kernel/dracut/dracut-010-r1.ebuild
deleted file mode 100644
index 42e8d42ffe1d..000000000000
--- a/sys-kernel/dracut/dracut-010-r1.ebuild
+++ /dev/null
@@ -1,213 +0,0 @@
-# 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-010-r1.ebuild,v 1.3 2011/06/23 10:38:17 aidecoe Exp $
-
-EAPI=2
-
-inherit eutils
-
-DESCRIPTION="Generic initramfs generation tool"
-HOMEPAGE="http://dracut.wiki.kernel.org"
-SRC_URI="mirror://kernel/linux/utils/boot/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-
-COMMON_MODULES="
- dracut_modules_biosdevname
- dracut_modules_btrfs
- dracut_modules_caps
- dracut_modules_gensplash
- dracut_modules_mdraid
- dracut_modules_multipath
- dracut_modules_plymouth
- dracut_modules_syslog
- dracut_modules_xen
- "
-NETWORK_MODULES="
- dracut_modules_iscsi
- dracut_modules_nbd
- dracut_modules_nfs
- "
-DM_MODULES="
- dracut_modules_crypt
- dracut_modules_dmraid
- dracut_modules_dmsquash-live
- dracut_modules_lvm
- "
-IUSE_DRACUT_MODULES="${COMMON_MODULES} ${DM_MODULES} ${NETWORK_MODULES}"
-IUSE="debug selinux ${IUSE_DRACUT_MODULES}"
-RESTRICT="test"
-
-NETWORK_DEPS="net-misc/bridge-utils >=net-misc/dhcp-4.2.1-r1 sys-apps/iproute2"
-DM_DEPS="|| ( sys-fs/device-mapper >=sys-fs/lvm2-2.02.33 )"
-
-RDEPEND="
- >=app-shells/bash-4.0
- >=app-shells/dash-0.5.4.11
- >=sys-apps/baselayout-1.12.14-r1
- >=sys-apps/module-init-tools-3.5
- >=sys-apps/sysvinit-2.87-r3
- >=sys-apps/util-linux-2.16
- >=sys-fs/udev-149
-
- debug? ( dev-util/strace )
- selinux? ( sys-libs/libselinux sys-libs/libsepol )
- dracut_modules_biosdevname? ( sys-apps/biosdevname )
- dracut_modules_btrfs? ( sys-fs/btrfs-progs )
- dracut_modules_caps? ( sys-libs/libcap )
- dracut_modules_crypt? ( sys-fs/cryptsetup ${DM_DEPS} )
- dracut_modules_dmraid? ( sys-fs/dmraid sys-fs/multipath-tools ${DM_DEPS} )
- dracut_modules_dmsquash-live? ( virtual/eject ${DM_DEPS} )
- dracut_modules_gensplash? ( media-gfx/splashutils )
- dracut_modules_iscsi? ( >=sys-block/open-iscsi-2.0.871.3 ${NETWORK_DEPS} )
- dracut_modules_lvm? ( >=sys-fs/lvm2-2.02.33 )
- dracut_modules_mdraid? ( sys-fs/mdadm )
- dracut_modules_multipath? ( sys-fs/multipath-tools )
- dracut_modules_nbd? ( sys-block/nbd ${NETWORK_DEPS} )
- dracut_modules_nfs? ( net-fs/nfs-utils net-nds/rpcbind ${NETWORK_DEPS} )
- dracut_modules_plymouth? ( >=sys-boot/plymouth-0.8.3-r1 )
- dracut_modules_syslog? ( || ( app-admin/syslog-ng app-admin/rsyslog ) )
- dracut_modules_xen? ( app-emulation/xen )
- "
-DEPEND="
- >=dev-libs/libxslt-1.1.26
- app-text/docbook-xml-dtd:4.5
- >=app-text/docbook-xsl-stylesheets-1.75.2
- "
-
-#
-# Helper functions
-#
-
-# Returns true if any of specified modules is enabled by USE flag and false
-# otherwise.
-# $1 = list of modules (which have corresponding USE flags of the same name)
-any_module() {
- local m modules=" $@ "
-
- for m in ${modules}; do
- ! use $m && modules=${modules/ $m / }
- done
-
- shopt -s extglob
- modules=${modules%%+( )}
- shopt -u extglob
-
- [[ ${modules} ]]
-}
-
-# Removes module from modules.d.
-# $1 = module name
-# Module name can be specified without number prefix.
-rm_module() {
- local m
-
- for m in $@; do
- if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then
- rm -rf "${modules_dir}"/$m
- else
- rm -rf "${modules_dir}"/[0-9][0-9]$m
- fi
- done
-}
-
-# Displays Gentoo Base System major release number
-base_sys_maj_ver() {
- local line
-
- read line < /etc/gentoo-release
- line=${line##* }
- echo "${line%%.*}"
-}
-
-#
-# ebuild functions
-#
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-multipath-udev-rules.patch"
- epatch "${FILESDIR}/${P}-empty-etc-ld.so.conf.d.patch"
-}
-
-src_compile() {
- 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"
-
- local gen2conf
-
- dodir /var/lib/dracut/overlay
- dodoc HACKING TODO AUTHORS NEWS README* || die 'dodoc failed'
-
- case "$(base_sys_maj_ver)" in
- 1) gen2conf=gentoo.conf ;;
- 2) gen2conf=gentoo-openrc.conf ;;
- *) die "Expected ver. 1 or 2 of Gentoo Base System (/etc/gentoo-release)."
- esac
-
- insinto /etc/dracut.conf.d
- newins dracut.conf.d/${gen2conf}.example ${gen2conf} \
- || die 'gen2conf ins failed'
-
- insinto /etc/logrotate.d
- newins dracut.logrotate dracut || die 'dracut.logrotate ins failed'
-
- #
- # Modules
- #
- local module
- modules_dir="${D}/usr/share/dracut/modules.d"
-
- echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version \
- || die 'dracut-version failed'
-
- # Remove modules not enabled by USE flags
- for module in ${IUSE_DRACUT_MODULES} ; do
- ! use ${module} && rm_module ${module#dracut_modules_}
- done
-
- # Those flags are specific, and even are corresponding to modules, they need
- # to be declared as regular USE flags.
- use debug || rm_module 95debug
- use selinux || rm_module 98selinux
-
- ! any_module ${DM_MODULES} && rm_module 90dm
- ! any_module ${NETWORK_MODULES} && rm_module 45ifcfg 40network
-
- # Remove S/390 modules which are not tested at all
- rm_module 95dasd 95dasd_mod 95zfcp 95znet
-
- # Remove modules which won't work for sure
- rm_module 00bootchart 05busybox # broken
- rm_module 95fcoe # no tools
-
- # fips module depends on masked app-crypt/hmaccalc
- rm_module 01fips
-}
-
-pkg_postinst() {
- elog 'To generate the initramfs:'
- elog ' # mount /boot (if necessary)'
- elog ' # dracut "" <kernel-version>'
- elog ''
- 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'
- elog ''
- elog 'The default config (in /etc/dracut.conf) is very minimal and is highly'
- elog 'recommended you adjust based on your needs. To include only dracut'
- elog 'modules and kernel drivers for this system, use the "-H" option.'
- elog 'Some modules need to be explicitly added with "-a" option even if'
- elog 'required tools are installed.'
- echo
- elog 'Options (documented in dracut.kernel(7)) have new format since'
- elog 'version 008. Old format is preserved, but will be removed in future.'
- elog 'Please migrate to the new one.'
-}
diff --git a/sys-kernel/dracut/dracut-010-r2.ebuild b/sys-kernel/dracut/dracut-010-r2.ebuild
deleted file mode 100644
index e574e8d82e96..000000000000
--- a/sys-kernel/dracut/dracut-010-r2.ebuild
+++ /dev/null
@@ -1,214 +0,0 @@
-# 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-010-r2.ebuild,v 1.2 2011/06/23 10:38:17 aidecoe Exp $
-
-EAPI=2
-
-inherit eutils
-
-DESCRIPTION="Generic initramfs generation tool"
-HOMEPAGE="http://dracut.wiki.kernel.org"
-SRC_URI="mirror://kernel/linux/utils/boot/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-
-COMMON_MODULES="
- dracut_modules_biosdevname
- dracut_modules_btrfs
- dracut_modules_caps
- dracut_modules_gensplash
- dracut_modules_mdraid
- dracut_modules_multipath
- dracut_modules_plymouth
- dracut_modules_syslog
- dracut_modules_xen
- "
-NETWORK_MODULES="
- dracut_modules_iscsi
- dracut_modules_nbd
- dracut_modules_nfs
- "
-DM_MODULES="
- dracut_modules_crypt
- dracut_modules_dmraid
- dracut_modules_dmsquash-live
- dracut_modules_lvm
- "
-IUSE_DRACUT_MODULES="${COMMON_MODULES} ${DM_MODULES} ${NETWORK_MODULES}"
-IUSE="debug selinux ${IUSE_DRACUT_MODULES}"
-RESTRICT="test"
-
-NETWORK_DEPS="net-misc/bridge-utils >=net-misc/dhcp-4.2.1-r1 sys-apps/iproute2
- net-misc/ifenslave"
-DM_DEPS="|| ( sys-fs/device-mapper >=sys-fs/lvm2-2.02.33 )"
-
-RDEPEND="
- >=app-shells/bash-4.0
- >=app-shells/dash-0.5.4.11
- >=sys-apps/baselayout-1.12.14-r1
- >=sys-apps/module-init-tools-3.5
- >=sys-apps/sysvinit-2.87-r3
- >=sys-apps/util-linux-2.16
- >=sys-fs/udev-149
-
- debug? ( dev-util/strace )
- selinux? ( sys-libs/libselinux sys-libs/libsepol )
- dracut_modules_biosdevname? ( sys-apps/biosdevname )
- dracut_modules_btrfs? ( sys-fs/btrfs-progs )
- dracut_modules_caps? ( sys-libs/libcap )
- dracut_modules_crypt? ( sys-fs/cryptsetup ${DM_DEPS} )
- dracut_modules_dmraid? ( sys-fs/dmraid sys-fs/multipath-tools ${DM_DEPS} )
- dracut_modules_dmsquash-live? ( virtual/eject ${DM_DEPS} )
- dracut_modules_gensplash? ( media-gfx/splashutils )
- dracut_modules_iscsi? ( >=sys-block/open-iscsi-2.0.871.3 ${NETWORK_DEPS} )
- dracut_modules_lvm? ( >=sys-fs/lvm2-2.02.33 )
- dracut_modules_mdraid? ( sys-fs/mdadm )
- dracut_modules_multipath? ( sys-fs/multipath-tools )
- dracut_modules_nbd? ( sys-block/nbd ${NETWORK_DEPS} )
- dracut_modules_nfs? ( net-fs/nfs-utils net-nds/rpcbind ${NETWORK_DEPS} )
- dracut_modules_plymouth? ( >=sys-boot/plymouth-0.8.3-r1 )
- dracut_modules_syslog? ( || ( app-admin/syslog-ng app-admin/rsyslog ) )
- dracut_modules_xen? ( app-emulation/xen )
- "
-DEPEND="
- >=dev-libs/libxslt-1.1.26
- app-text/docbook-xml-dtd:4.5
- >=app-text/docbook-xsl-stylesheets-1.75.2
- "
-
-#
-# Helper functions
-#
-
-# Returns true if any of specified modules is enabled by USE flag and false
-# otherwise.
-# $1 = list of modules (which have corresponding USE flags of the same name)
-any_module() {
- local m modules=" $@ "
-
- for m in ${modules}; do
- ! use $m && modules=${modules/ $m / }
- done
-
- shopt -s extglob
- modules=${modules%%+( )}
- shopt -u extglob
-
- [[ ${modules} ]]
-}
-
-# Removes module from modules.d.
-# $1 = module name
-# Module name can be specified without number prefix.
-rm_module() {
- local m
-
- for m in $@; do
- if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then
- rm -rf "${modules_dir}"/$m
- else
- rm -rf "${modules_dir}"/[0-9][0-9]$m
- fi
- done
-}
-
-# Displays Gentoo Base System major release number
-base_sys_maj_ver() {
- local line
-
- read line < /etc/gentoo-release
- line=${line##* }
- echo "${line%%.*}"
-}
-
-#
-# ebuild functions
-#
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-multipath-udev-rules.patch"
- epatch "${FILESDIR}/${P}-empty-etc-ld.so.conf.d.patch"
-}
-
-src_compile() {
- 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"
-
- local gen2conf
-
- dodir /var/lib/dracut/overlay
- dodoc HACKING TODO AUTHORS NEWS README* || die 'dodoc failed'
-
- case "$(base_sys_maj_ver)" in
- 1) gen2conf=gentoo.conf ;;
- 2) gen2conf=gentoo-openrc.conf ;;
- *) die "Expected ver. 1 or 2 of Gentoo Base System (/etc/gentoo-release)."
- esac
-
- insinto /etc/dracut.conf.d
- newins dracut.conf.d/${gen2conf}.example ${gen2conf} \
- || die 'gen2conf ins failed'
-
- insinto /etc/logrotate.d
- newins dracut.logrotate dracut || die 'dracut.logrotate ins failed'
-
- #
- # Modules
- #
- local module
- modules_dir="${D}/usr/share/dracut/modules.d"
-
- echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version \
- || die 'dracut-version failed'
-
- # Remove modules not enabled by USE flags
- for module in ${IUSE_DRACUT_MODULES} ; do
- ! use ${module} && rm_module ${module#dracut_modules_}
- done
-
- # Those flags are specific, and even are corresponding to modules, they need
- # to be declared as regular USE flags.
- use debug || rm_module 95debug
- use selinux || rm_module 98selinux
-
- ! any_module ${DM_MODULES} && rm_module 90dm
- ! any_module ${NETWORK_MODULES} && rm_module 45ifcfg 40network
-
- # Remove S/390 modules which are not tested at all
- rm_module 95dasd 95dasd_mod 95zfcp 95znet
-
- # Remove modules which won't work for sure
- rm_module 00bootchart 05busybox # broken
- rm_module 95fcoe # no tools
-
- # fips module depends on masked app-crypt/hmaccalc
- rm_module 01fips
-}
-
-pkg_postinst() {
- elog 'To generate the initramfs:'
- elog ' # mount /boot (if necessary)'
- elog ' # dracut "" <kernel-version>'
- elog ''
- 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'
- elog ''
- elog 'The default config (in /etc/dracut.conf) is very minimal and is highly'
- elog 'recommended you adjust based on your needs. To include only dracut'
- elog 'modules and kernel drivers for this system, use the "-H" option.'
- elog 'Some modules need to be explicitly added with "-a" option even if'
- elog 'required tools are installed.'
- echo
- elog 'Options (documented in dracut.kernel(7)) have new format since'
- elog 'version 008. Old format is preserved, but will be removed in future.'
- elog 'Please migrate to the new one.'
-}
diff --git a/sys-kernel/dracut/dracut-010.ebuild b/sys-kernel/dracut/dracut-010.ebuild
deleted file mode 100644
index f3dbd133b0b2..000000000000
--- a/sys-kernel/dracut/dracut-010.ebuild
+++ /dev/null
@@ -1,212 +0,0 @@
-# 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-010.ebuild,v 1.3 2011/06/23 10:38:17 aidecoe Exp $
-
-EAPI=2
-
-inherit eutils
-
-DESCRIPTION="Generic initramfs generation tool"
-HOMEPAGE="http://dracut.wiki.kernel.org"
-SRC_URI="mirror://kernel/linux/utils/boot/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-
-COMMON_MODULES="
- dracut_modules_biosdevname
- dracut_modules_btrfs
- dracut_modules_caps
- dracut_modules_gensplash
- dracut_modules_mdraid
- dracut_modules_multipath
- dracut_modules_plymouth
- dracut_modules_syslog
- dracut_modules_xen
- "
-NETWORK_MODULES="
- dracut_modules_iscsi
- dracut_modules_nbd
- dracut_modules_nfs
- "
-DM_MODULES="
- dracut_modules_crypt
- dracut_modules_dmraid
- dracut_modules_dmsquash-live
- dracut_modules_lvm
- "
-IUSE_DRACUT_MODULES="${COMMON_MODULES} ${DM_MODULES} ${NETWORK_MODULES}"
-IUSE="debug selinux ${IUSE_DRACUT_MODULES}"
-RESTRICT="test"
-
-NETWORK_DEPS="net-misc/bridge-utils >=net-misc/dhcp-4.2.1-r1 sys-apps/iproute2"
-DM_DEPS="|| ( sys-fs/device-mapper >=sys-fs/lvm2-2.02.33 )"
-
-RDEPEND="
- >=app-shells/bash-4.0
- >=app-shells/dash-0.5.4.11
- >=sys-apps/baselayout-1.12.14-r1
- >=sys-apps/module-init-tools-3.5
- >=sys-apps/sysvinit-2.87-r3
- >=sys-apps/util-linux-2.16
- >=sys-fs/udev-149
-
- debug? ( dev-util/strace )
- selinux? ( sys-libs/libselinux sys-libs/libsepol )
- dracut_modules_biosdevname? ( sys-apps/biosdevname )
- dracut_modules_btrfs? ( sys-fs/btrfs-progs )
- dracut_modules_caps? ( sys-libs/libcap )
- dracut_modules_crypt? ( sys-fs/cryptsetup ${DM_DEPS} )
- dracut_modules_dmraid? ( sys-fs/dmraid sys-fs/multipath-tools ${DM_DEPS} )
- dracut_modules_dmsquash-live? ( virtual/eject ${DM_DEPS} )
- dracut_modules_gensplash? ( media-gfx/splashutils )
- dracut_modules_iscsi? ( >=sys-block/open-iscsi-2.0.871.3 ${NETWORK_DEPS} )
- dracut_modules_lvm? ( >=sys-fs/lvm2-2.02.33 )
- dracut_modules_mdraid? ( sys-fs/mdadm )
- dracut_modules_multipath? ( sys-fs/multipath-tools )
- dracut_modules_nbd? ( sys-block/nbd ${NETWORK_DEPS} )
- dracut_modules_nfs? ( net-fs/nfs-utils net-nds/rpcbind ${NETWORK_DEPS} )
- dracut_modules_plymouth? ( >=sys-boot/plymouth-0.8.3-r1 )
- dracut_modules_syslog? ( || ( app-admin/syslog-ng app-admin/rsyslog ) )
- dracut_modules_xen? ( app-emulation/xen )
- "
-DEPEND="
- >=dev-libs/libxslt-1.1.26
- app-text/docbook-xml-dtd:4.5
- >=app-text/docbook-xsl-stylesheets-1.75.2
- "
-
-#
-# Helper functions
-#
-
-# Returns true if any of specified modules is enabled by USE flag and false
-# otherwise.
-# $1 = list of modules (which have corresponding USE flags of the same name)
-any_module() {
- local m modules=" $@ "
-
- for m in ${modules}; do
- ! use $m && modules=${modules/ $m / }
- done
-
- shopt -s extglob
- modules=${modules%%+( )}
- shopt -u extglob
-
- [[ ${modules} ]]
-}
-
-# Removes module from modules.d.
-# $1 = module name
-# Module name can be specified without number prefix.
-rm_module() {
- local m
-
- for m in $@; do
- if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then
- rm -rf "${modules_dir}"/$m
- else
- rm -rf "${modules_dir}"/[0-9][0-9]$m
- fi
- done
-}
-
-# Displays Gentoo Base System major release number
-base_sys_maj_ver() {
- local line
-
- read line < /etc/gentoo-release
- line=${line##* }
- echo "${line%%.*}"
-}
-
-#
-# ebuild functions
-#
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-multipath-udev-rules.patch"
-}
-
-src_compile() {
- 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"
-
- local gen2conf
-
- dodir /var/lib/dracut/overlay
- dodoc HACKING TODO AUTHORS NEWS README* || die 'dodoc failed'
-
- case "$(base_sys_maj_ver)" in
- 1) gen2conf=gentoo.conf ;;
- 2) gen2conf=gentoo-openrc.conf ;;
- *) die "Expected ver. 1 or 2 of Gentoo Base System (/etc/gentoo-release)."
- esac
-
- insinto /etc/dracut.conf.d
- newins dracut.conf.d/${gen2conf}.example ${gen2conf} \
- || die 'gen2conf ins failed'
-
- insinto /etc/logrotate.d
- newins dracut.logrotate dracut || die 'dracut.logrotate ins failed'
-
- #
- # Modules
- #
- local module
- modules_dir="${D}/usr/share/dracut/modules.d"
-
- echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version \
- || die 'dracut-version failed'
-
- # Remove modules not enabled by USE flags
- for module in ${IUSE_DRACUT_MODULES} ; do
- ! use ${module} && rm_module ${module#dracut_modules_}
- done
-
- # Those flags are specific, and even are corresponding to modules, they need
- # to be declared as regular USE flags.
- use debug || rm_module 95debug
- use selinux || rm_module 98selinux
-
- ! any_module ${DM_MODULES} && rm_module 90dm
- ! any_module ${NETWORK_MODULES} && rm_module 45ifcfg 40network
-
- # Remove S/390 modules which are not tested at all
- rm_module 95dasd 95dasd_mod 95zfcp 95znet
-
- # Remove modules which won't work for sure
- rm_module 00bootchart 05busybox # broken
- rm_module 95fcoe # no tools
-
- # fips module depends on masked app-crypt/hmaccalc
- rm_module 01fips
-}
-
-pkg_postinst() {
- elog 'To generate the initramfs:'
- elog ' # mount /boot (if necessary)'
- elog ' # dracut "" <kernel-version>'
- elog ''
- 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'
- elog ''
- elog 'The default config (in /etc/dracut.conf) is very minimal and is highly'
- elog 'recommended you adjust based on your needs. To include only dracut'
- elog 'modules and kernel drivers for this system, use the "-H" option.'
- elog 'Some modules need to be explicitly added with "-a" option even if'
- elog 'required tools are installed.'
- echo
- elog 'Options (documented in dracut.kernel(7)) have new format since'
- elog 'version 008. Old format is preserved, but will be removed in future.'
- elog 'Please migrate to the new one.'
-}