diff options
author | 2013-12-28 15:52:30 +0000 | |
---|---|---|
committer | 2013-12-28 15:52:30 +0000 | |
commit | 27afa7026fb6e0d5d05c52d4d71b6d2ecfa2ef96 (patch) | |
tree | 5a2fa68259b189441441ef79799529fa1da4307d /sys-kernel | |
parent | Committing on behalf of Alexander Tsoy <alexander@tsoy.me>. (diff) | |
download | historical-27afa7026fb6e0d5d05c52d4d71b6d2ecfa2ef96.tar.gz historical-27afa7026fb6e0d5d05c52d4d71b6d2ecfa2ef96.tar.bz2 historical-27afa7026fb6e0d5d05c52d4d71b6d2ecfa2ef96.zip |
Removed old revisions of version 034.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xF0134531E1DBFAB5
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/dracut/ChangeLog | 6 | ||||
-rw-r--r-- | sys-kernel/dracut/Manifest | 19 | ||||
-rw-r--r-- | sys-kernel/dracut/dracut-034-r1.ebuild | 321 | ||||
-rw-r--r-- | sys-kernel/dracut/dracut-034-r2.ebuild | 325 | ||||
-rw-r--r-- | sys-kernel/dracut/dracut-034.ebuild | 311 |
5 files changed, 13 insertions, 969 deletions
diff --git a/sys-kernel/dracut/ChangeLog b/sys-kernel/dracut/ChangeLog index 2496b9866c6f..1f7616b9f9f6 100644 --- a/sys-kernel/dracut/ChangeLog +++ b/sys-kernel/dracut/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-kernel/dracut # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.144 2013/12/28 15:48:33 aidecoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.145 2013/12/28 15:52:25 aidecoe Exp $ + + 28 Dec 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> -dracut-034.ebuild, + -dracut-034-r1.ebuild, -dracut-034-r2.ebuild: + Removed old revisions of version 034. *dracut-034-r3 (28 Dec 2013) diff --git a/sys-kernel/dracut/Manifest b/sys-kernel/dracut/Manifest index 4dbc4824f889..840a93dc1815 100644 --- a/sys-kernel/dracut/Manifest +++ b/sys-kernel/dracut/Manifest @@ -58,20 +58,17 @@ EBUILD dracut-029.ebuild 8549 SHA256 21a5aaa06c4f8df6ef416788d683e6879aacd89e8d1 EBUILD dracut-030.ebuild 8566 SHA256 b20849f90ba703954dba9c8e42b3759f6f9fc9cc017574d3e80bb8425ed82a26 SHA512 97fae72894956ef26c0733563c87857d62d98d2924b856a4d3c2ed5b02a163b15443eb5d64b1873c0db60bde215153376a30b979fdb123c730cbadb433a20b81 WHIRLPOOL 1bb84aa43af16f3420890059b6aea892b2cc87bf12966115efce67fda3aced602a9d0eb5a507b3215fb98e7c418b54335250ccb7147c66029929be249a62b528 EBUILD dracut-031-r1.ebuild 8569 SHA256 86a76e104015eb0476d9146aaaebe1cc9b6a542fb26b5f562d8346ead81ab9b6 SHA512 0a9fcb3498ac8a171adde3abcf50098cb2aba008951f4d519b0148f1738e3ee54aa296977be45809e58220907ca0d4aed98e95d341e9c2e63d9315fe85465561 WHIRLPOOL 0eb19af60d08aa86caa5a28b1111a7242b2c1890c2941a5a8e74b666067ccc17ada153b5a3716f22a407c354202926c1130f9ce516d986b4ec9a857b03a9dc33 EBUILD dracut-033-r3.ebuild 9258 SHA256 384b2c31bca531dc7a6aa5bc8c430297c1198a8eda531c9ad9c0ce999fe94b9d SHA512 304f468a2c0bc20f0b1305a760750859d5479b6282b6d756311b6f1cdfed8e7aaa08d3f225d8fe4e59785e56a80b819233237615aa92581b4858e89378a6f68b WHIRLPOOL e70ea66e5c349fa4c64cf590316834acb799b0a06dd4a826f064e966e8145447078eb854fcb23a6f070dfb3a6344e83bbe498966ba8fdb5a7a2577d9f9cda15b -EBUILD dracut-034-r1.ebuild 9628 SHA256 7c9678ecacf85a96f4f4ee9923372f42b3ec1d046f8e6f9375f9c7a93d92b5c2 SHA512 2b10e340767c12d75f94619465c241abefca1fb88cf326af3d8e1e1d06ce8f22f9897fda6ebbaf91cb096d29e3e1f20cfda4c2fcbda1bf6fa6053842c800f024 WHIRLPOOL c646c9a5661de77ed801c09e833ce66039bd5df3da81936b267d1958d6d75bc8173ba8cbb9a1a4921d7c0e534dee9cd01c38f5947171955da04ec73d1faf910e -EBUILD dracut-034-r2.ebuild 9771 SHA256 61ef86d791926d2b8c0c62f7cf541e1e7d592f782ed9d03257252eac7f25e554 SHA512 3a6a61849a30daa991e5ff52f76e2afd966da68b59db36462c70368945577bb71ecffc366e4e63dc38253396c6149b68b3f3f9b4fe826b7c7306ce8ee0bc067b WHIRLPOOL e2e4162993886dfb647b3f40e714ec19a09520d5ae95337dc6b93f0aa421a2ae9a668d88c48553d7fa72aaec2d3362398fcd7b2afa91cf78b46b2fd57fa27acb EBUILD dracut-034-r3.ebuild 9771 SHA256 9f95ea9fee425f89d2a3b95ce086eaf2986bffd0b19352070ba86b8df70a0cc6 SHA512 c65daeaa81f0f1ff73064268689efa8f4940ef6b22eb1781539b0936b637ec2ac6133373807d1f16586d2953796981d8bd929e8f9785eb6820e05607129f6e97 WHIRLPOOL 606760f1a1b566dfce5eae9a91b6453258e55410c7f0a6f01571c137651ff5dd41cd4ea35ceccc2233e006bad09b2c31857ff889121668c9eee79f0c00227195 -EBUILD dracut-034.ebuild 8946 SHA256 5d656c8feb9aa69da29062bf9ef0a8364e4e294598ceedcca73be75b00f8f841 SHA512 b0c2948a2a01076923405b60f86aedfb5c1b66b523d2b3032f94797574e970f9883465c3c76692b036017a8e03f238c037757a3528af9bc21feaec744eb27671 WHIRLPOOL 6b83bdf5f5ee7eda2c82e8db8a351330be9f92c8f62bbe4fe5db208261d13b227f00f4b1fa88b005a71c7795f31c82e6b47fec3e9a8cac483ae2c8c3e857b479 -MISC ChangeLog 61790 SHA256 8d5400c6c92a96eca4a2c8468fd28d5fadcff1bdf93a1dced1ec6f0e0e75be77 SHA512 4a9aa3b2c58df2fcfa01cc860473ffadd23ffe44709920c47dbd3ef3e581703c8f79da50bf149c389e46615329d73fdf0a82d4be1660a95dbdcbabeadf065c81 WHIRLPOOL 843789868741163e0ddd092ea0370cb16207fa1765231ecafcee372f8e8ba7a74ca264ab2e53d789cb86cb8321491e4ba72fb1cfd0ff6b35eba1abb18f9bfa06 +MISC ChangeLog 61956 SHA256 cdf1b9626240cace5deb8f2bffa09c055de28282279ce5e603cf69b66b4e79c5 SHA512 ae8bad30709b5a9e87c3c546fed27cfe1cb3dfee54d4f2310bc81aef4c26662425c4722171a33911da0bf78dcd5f1bbec7542d9183be04707baacea0668588ed WHIRLPOOL b7158411b1e37517e9055d1fc6e7d29d5c2d62f19042ffa4f90aa4aa36b2ea5573d5ffd9ba473f79af94861b5d16f3bedf096ec492444ac4ed6494c66a49c1c6 MISC metadata.xml 1052 SHA256 536eed325e0e2fd7f780eb4d5df8e14407cdb4b6afc20b4d8aa4886256a89123 SHA512 ca3e60bc362fe27b3e7c835a146c57ad53820a1f67c403c14cf5d5df688b0dc6f7b22a7d389669be123f3f1904cad3680f6b88a95b80811df305a558d6c88377 WHIRLPOOL 7818f8932aee7ea285620eff17e4d2c1580e7dfb43043f08e1a8ccc714cae494dacecad5124e00f15fa277848e8ff713b30436f612fa7bc1821d4d9d662d97a8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJSvvLSAAoJEPATRTHh2/q14VAH/3v7m9qRxvSSs3s4gxMkFrrn -ywUJDEH6Y0LBc00aF7prve2JedvTjgtRvD6O9J0OxuRQZY3DJIBgiQRTR84D/JrP -4JL5g05JpgWg+LrjzdlXLd8fEteQjO/arUNVP3ErQBc6VwY46/tpzm8ALgbaJJUB -shkcRV341R+pe0FFGa64dbU0PsqFswRj2yzJICjyU3yf+LnreSRy3rBdUivKA55U -AveOjKERpustKORyzNXbI+NMz1isYiCQV+1lqo2Gv10tHvUeC1fU7Lozurp5YoZo -sqljW41q+p3MBB+Jcs3RdLb1BHBxDlFK1wmjqcAOzM35SmeM4uCIAuLtMie07kM= -=RWl0 +iQEcBAEBCAAGBQJSvvO6AAoJEPATRTHh2/q1X8EH/1JeN+kx6tNMx7oVVbhzIeHF +7tQ5dYJjka552RaSBIcuAY+31UKXgx53qo8upVCQj5w5sUFm6+lIKqe8ukdQR1QB +jThsT+8kRIL9otBa9i3R0GnJYI1ieOCYjUb2TqgDtVJw7f7cmiqlhjL3jp8Uq4Ut +s5mj0T8UNDNM/dX6108U4ihhXNlflu6+hMxYO76ypnWhhqv/vs/c1kxhD1xaFvBe +o9lR0zFs3Qb8yP43reLpj4gpUANk6TYIVFUNUUVx/VsoFWDSLd9+XKyQhANtuBSC +QiVNe/y5oLjbTcTFZAsQJGZit/w3zbld5l9if6fOXJmtXrt9y0FxRJ2+EvgDDjs= +=FZC6 -----END PGP SIGNATURE----- diff --git a/sys-kernel/dracut/dracut-034-r1.ebuild b/sys-kernel/dracut/dracut-034-r1.ebuild deleted file mode 100644 index f68f112dfdff..000000000000 --- a/sys-kernel/dracut/dracut-034-r1.ebuild +++ /dev/null @@ -1,321 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-034-r1.ebuild,v 1.4 2013/12/10 19:38:08 aidecoe Exp $ - -EAPI=4 - -inherit bash-completion-r1 eutils linux-info multilib systemd - -add_req_use_for() { - local dep="$1"; shift - local f - - for f in "$@"; do - REQUIRED_USE+="${f}? ( ${dep} ) -" - done -} - -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="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -REQUIRED_USE=" - dracut_modules_bootchart? ( !dracut_modules_systemd ) - dracut_modules_crypt-gpg? ( dracut_modules_crypt ) - dracut_modules_crypt-loop? ( dracut_modules_crypt ) - dracut_modules_livenet? ( dracut_modules_dmsquash-live ) - " -COMMON_MODULES=" - dracut_modules_biosdevname - dracut_modules_bootchart - dracut_modules_btrfs - dracut_modules_caps - dracut_modules_crypt-gpg - dracut_modules_crypt-loop - dracut_modules_dash - dracut_modules_gensplash - dracut_modules_mdraid - dracut_modules_multipath - dracut_modules_plymouth - dracut_modules_syslog - dracut_modules_systemd - " -DM_MODULES=" - dracut_modules_crypt - dracut_modules_dmraid - dracut_modules_dmsquash-live - dracut_modules_livenet - dracut_modules_lvm - " -NETWORK_MODULES=" - dracut_modules_cifs - dracut_modules_iscsi - dracut_modules_livenet - dracut_modules_nbd - dracut_modules_nfs - dracut_modules_ssh-client - " -add_req_use_for device-mapper ${DM_MODULES} -add_req_use_for net ${NETWORK_MODULES} -IUSE_DRACUT_MODULES="${COMMON_MODULES} ${DM_MODULES} ${NETWORK_MODULES}" -IUSE="debug device-mapper net selinux ${IUSE_DRACUT_MODULES}" - -RESTRICT="test" - -CDEPEND="virtual/udev - dracut_modules_systemd? ( >=sys-apps/systemd-199 ) - selinux? ( sec-policy/selinux-dracut ) - " -RDEPEND="${CDEPEND} - app-arch/cpio - >=app-shells/bash-4.0 - >=sys-apps/baselayout-1.12.14-r1 - >sys-apps/kmod-5[tools] - || ( >=sys-apps/sysvinit-2.87-r3 sys-apps/systemd-sysv-utils ) - >=sys-apps/util-linux-2.21 - virtual/pkgconfig - - debug? ( dev-util/strace ) - device-mapper? ( >=sys-fs/lvm2-2.02.33 ) - net? ( net-misc/curl >=net-misc/dhcp-4.2.4_p2-r1[client] sys-apps/iproute2 ) - selinux? ( sys-libs/libselinux sys-libs/libsepol ) - dracut_modules_biosdevname? ( sys-apps/biosdevname ) - dracut_modules_bootchart? ( app-benchmarks/bootchart2 sys-apps/usleep - sys-process/acct ) - dracut_modules_btrfs? ( sys-fs/btrfs-progs ) - dracut_modules_caps? ( sys-libs/libcap ) - dracut_modules_cifs? ( net-fs/cifs-utils ) - dracut_modules_crypt? ( sys-fs/cryptsetup ) - dracut_modules_crypt-gpg? ( app-crypt/gnupg ) - dracut_modules_dash? ( >=app-shells/dash-0.5.4.11 ) - dracut_modules_dmraid? ( sys-fs/dmraid sys-fs/multipath-tools ) - dracut_modules_gensplash? ( media-gfx/splashutils ) - dracut_modules_iscsi? ( >=sys-block/open-iscsi-2.0.871.3 ) - dracut_modules_lvm? ( >=sys-fs/lvm2-2.02.33 ) - dracut_modules_mdraid? ( >=sys-fs/mdadm-3.2.6-r1 ) - dracut_modules_multipath? ( sys-fs/multipath-tools ) - dracut_modules_nbd? ( sys-block/nbd ) - dracut_modules_nfs? ( net-fs/nfs-utils net-nds/rpcbind ) - dracut_modules_plymouth? ( >=sys-boot/plymouth-0.8.3-r1 ) - dracut_modules_ssh-client? ( dev-libs/openssl ) - dracut_modules_syslog? ( || ( app-admin/syslog-ng app-admin/rsyslog ) ) - " -DEPEND="${CDEPEND} - app-text/asciidoc - >=dev-libs/libxslt-1.1.26 - app-text/docbook-xml-dtd:4.5 - >=app-text/docbook-xsl-stylesheets-1.75.2 - " - -DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules - README.testsuite TODO ) -MY_LIBDIR=/usr/lib - -# -# 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 force m - [[ $1 = -f ]] && force=-f - - for m in $@; do - if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then - rm ${force} --interactive=never -r "${modules_dir}"/$m - else - rm ${force} --interactive=never -r "${modules_dir}"/[0-9][0-9]$m - fi - done -} - -# -# ebuild functions -# - -src_prepare() { - epatch "${FILESDIR}/${PV}-0001-dracut.sh-do-not-bail-out-if-kernel-mo.patch" - epatch "${FILESDIR}/${PV}-0002-dracut-functions.sh-support-for-altern.patch" - epatch "${FILESDIR}/${PV}-0003-gentoo.conf-let-udevdir-be-handled-by-.patch" - epatch "${FILESDIR}/${PV}-0004-Use-the-same-paths-in-dracut.sh-as-tho.patch" - epatch "${FILESDIR}/${PV}-0005-Install-dracut-install-into-libexec-di.patch" - epatch "${FILESDIR}/${PV}-0006-resume-fix-swap-detection-in-hostonly.patch" - epatch "${FILESDIR}/${PV}-0007-dracut.sh-also-mkdir-run-lock-which-is.patch" - epatch "${FILESDIR}/${PV}-0008-dracut.sh-no-need-to-make-subdirs-in-r.patch" - epatch "${FILESDIR}/${PV}-0009-lvm-install-thin-utils-for-non-hostonl.patch" - epatch "${FILESDIR}/${PV}-0010-module-setup.sh-add-comments-for-dracu.patch" - epatch "${FILESDIR}/${PV}-0011-lvm-fix-thin-recognition.patch" - epatch "${FILESDIR}/${PV}-0012-lvm-always-install-thin-utils-for-lvm.patch" - - local libdirs - - #local ldir - #for ldir in $(get_all_libdirs); do - # libdirs+=" /$ldir /usr/$ldir" - #done - #libdirs="${libdirs# }" - - libdirs="/$(get_libdir) /usr/$(get_libdir)" - [[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" - einfo "Setting libdirs to \"${libdirs}\" ..." - sed -e "3alibdirs=\"${libdirs}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - - if use dracut_modules_systemd; then - local systemdutildir="$(systemd_get_utildir)" - local systemdsystemunitdir="$(systemd_get_unitdir)" - einfo "Setting systemdutildir to ${systemdutildir} and ..." - sed -e "5asystemdutildir=\"${systemdutildir}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - einfo "Setting systemdsystemunitdir to ${systemdsystemunitdir}..." - sed -e "6asystemdsystemunitdir=\"${systemdsystemunitdir}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - fi -} - -src_configure() { - local myconf="--libdir=${MY_LIBDIR}" - myconf+=" --bashcompletiondir=$(get_bashcompdir)" - - if use dracut_modules_systemd; then - myconf+=" --systemdsystemunitdir='$(systemd_get_unitdir)'" - fi - - econf ${myconf} -} - -src_compile() { - tc-export CC - emake doc install/dracut-install -} - -src_install() { - default - - local my_libdir="${MY_LIBDIR}" - local dracutlibdir="${my_libdir#/}/dracut" - - echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" - - insinto "${dracutlibdir}/dracut.conf.d/" - newins dracut.conf.d/gentoo.conf.example gentoo.conf - - insinto /etc/logrotate.d - newins dracut.logrotate dracut - - dodir /var/lib/dracut/overlay - - dohtml dracut.html - - # - # Modules - # - local module - modules_dir="${D%/}/${dracutlibdir}/modules.d" - - # Remove modules not enabled by USE flags - for module in ${IUSE_DRACUT_MODULES} ; do - ! use ${module} && rm_module -f ${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 - - # Following flags define set of helper modules which are base dependencies - # for others and as so have no practical use, so remove these modules. - use device-mapper || rm_module 90dm - use net || rm_module 40network 45ifcfg 45url-lib - - if use dracut_modules_systemd; then - # With systemd following modules do not make sense - rm_module 96securityfs 98selinux - else - # Without systemd following modules do not make sense - rm_module 00systemd-bootchart - fi - - # Remove S/390 modules which are not tested at all - rm_module 80cms 95dasd 95dasd_mod 95zfcp 95znet - - # Remove modules which won't work for sure - rm_module 95fcoe # no tools - # fips module depends on masked app-crypt/hmaccalc - rm_module 01fips 02fips-aesni - - # Remove extra modules which go to future dracut-extras - rm_module 05busybox 97masterkey 98ecryptfs 98integrity -} - -pkg_postinst() { - if linux-info_get_any_version && linux_config_src_exists; then - ewarn "" - ewarn "If the following test report contains a missing kernel" - ewarn "configuration option, you should reconfigure and rebuild your" - ewarn "kernel before booting image generated with this Dracut version." - ewarn "" - - local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" - - # Kernel configuration options descriptions: - local desc_DEVTMPFS="Maintain a devtmpfs filesystem to mount at /dev" - local desc_BLK_DEV_INITRD="Initial RAM filesystem and RAM disk "\ -"(initramfs/initrd) support" - - local opt desc - - # Generate ERROR_* variables for check_extra_config. - for opt in ${CONFIG_CHECK}; do - opt=${opt#\~} - desc=desc_${opt} - eval "local ERROR_${opt}='CONFIG_${opt}: \"${!desc}\"" \ - "is missing and REQUIRED'" - done - - check_extra_config - echo - else - ewarn "" - ewarn "Your kernel configuration couldn't be checked. Do you have" - ewarn "/usr/src/linux/.config file there? Please check manually if" - ewarn "following options are enabled:" - ewarn "" - ewarn " CONFIG_BLK_DEV_INITRD" - ewarn " CONFIG_DEVTMPFS" - ewarn "" - fi - - if use dracut_modules_crypt || use dracut_modules_dmraid || use \ - dracut_modules_mdraid || use dracut_modules_lvm; then - - if ! [[ $(</proc/cmdline) =~ rd.auto[\ =] ]]; then - ewarn "Autoassembly of special devices like cryptoLUKS, dmraid, " - ewarn "mdraid or lvm is off for default as of >=dracut-024." - ewarn "Use rd.auto option to turn it on." - fi - fi -} diff --git a/sys-kernel/dracut/dracut-034-r2.ebuild b/sys-kernel/dracut/dracut-034-r2.ebuild deleted file mode 100644 index 089d53440030..000000000000 --- a/sys-kernel/dracut/dracut-034-r2.ebuild +++ /dev/null @@ -1,325 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-034-r2.ebuild,v 1.3 2013/12/28 15:48:33 aidecoe Exp $ - -EAPI=4 - -inherit bash-completion-r1 eutils linux-info multilib systemd - -add_req_use_for() { - local dep="$1"; shift - local f - - for f in "$@"; do - REQUIRED_USE+="${f}? ( ${dep} ) -" - done -} - -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="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -REQUIRED_USE=" - dracut_modules_bootchart? ( !dracut_modules_systemd ) - dracut_modules_crypt-gpg? ( dracut_modules_crypt ) - dracut_modules_crypt-loop? ( dracut_modules_crypt ) - dracut_modules_livenet? ( dracut_modules_dmsquash-live ) - " -COMMON_MODULES=" - dracut_modules_biosdevname - dracut_modules_bootchart - dracut_modules_btrfs - dracut_modules_caps - dracut_modules_crypt-gpg - dracut_modules_crypt-loop - dracut_modules_dash - dracut_modules_gensplash - dracut_modules_mdraid - dracut_modules_multipath - dracut_modules_plymouth - dracut_modules_syslog - dracut_modules_systemd - " -DM_MODULES=" - dracut_modules_crypt - dracut_modules_dmraid - dracut_modules_dmsquash-live - dracut_modules_livenet - dracut_modules_lvm - " -NETWORK_MODULES=" - dracut_modules_cifs - dracut_modules_iscsi - dracut_modules_livenet - dracut_modules_nbd - dracut_modules_nfs - dracut_modules_ssh-client - " -add_req_use_for device-mapper ${DM_MODULES} -add_req_use_for net ${NETWORK_MODULES} -IUSE_DRACUT_MODULES="${COMMON_MODULES} ${DM_MODULES} ${NETWORK_MODULES}" -IUSE="debug device-mapper net selinux ${IUSE_DRACUT_MODULES}" - -RESTRICT="test" - -CDEPEND="virtual/udev - dracut_modules_systemd? ( >=sys-apps/systemd-199 ) - selinux? ( sec-policy/selinux-dracut ) - " -RDEPEND="${CDEPEND} - app-arch/cpio - >=app-shells/bash-4.0 - >=sys-apps/baselayout-1.12.14-r1 - >sys-apps/kmod-5[tools] - || ( >=sys-apps/sysvinit-2.87-r3 sys-apps/systemd-sysv-utils ) - >=sys-apps/util-linux-2.21 - virtual/pkgconfig - - debug? ( dev-util/strace ) - device-mapper? ( >=sys-fs/lvm2-2.02.33 ) - net? ( net-misc/curl >=net-misc/dhcp-4.2.4_p2-r1[client] sys-apps/iproute2 ) - selinux? ( sys-libs/libselinux sys-libs/libsepol ) - dracut_modules_biosdevname? ( sys-apps/biosdevname ) - dracut_modules_bootchart? ( app-benchmarks/bootchart2 sys-apps/usleep - sys-process/acct ) - dracut_modules_btrfs? ( sys-fs/btrfs-progs ) - dracut_modules_caps? ( sys-libs/libcap ) - dracut_modules_cifs? ( net-fs/cifs-utils ) - dracut_modules_crypt? ( sys-fs/cryptsetup ) - dracut_modules_crypt-gpg? ( app-crypt/gnupg ) - dracut_modules_dash? ( >=app-shells/dash-0.5.4.11 ) - dracut_modules_dmraid? ( sys-fs/dmraid sys-fs/multipath-tools ) - dracut_modules_gensplash? ( media-gfx/splashutils ) - dracut_modules_iscsi? ( >=sys-block/open-iscsi-2.0.871.3 ) - dracut_modules_lvm? ( >=sys-fs/lvm2-2.02.33 ) - dracut_modules_mdraid? ( >=sys-fs/mdadm-3.2.6-r1 ) - dracut_modules_multipath? ( sys-fs/multipath-tools ) - dracut_modules_nbd? ( sys-block/nbd ) - dracut_modules_nfs? ( net-fs/nfs-utils net-nds/rpcbind ) - dracut_modules_plymouth? ( >=sys-boot/plymouth-0.8.3-r1 ) - dracut_modules_ssh-client? ( dev-libs/openssl ) - dracut_modules_syslog? ( || ( app-admin/syslog-ng app-admin/rsyslog ) ) - " -DEPEND="${CDEPEND} - app-text/asciidoc - >=dev-libs/libxslt-1.1.26 - app-text/docbook-xml-dtd:4.5 - >=app-text/docbook-xsl-stylesheets-1.75.2 - " - -DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules - README.testsuite TODO ) -MY_LIBDIR=/usr/lib - -# -# 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 force m - [[ $1 = -f ]] && force=-f - - for m in $@; do - if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then - rm ${force} --interactive=never -r "${modules_dir}"/$m - else - rm ${force} --interactive=never -r "${modules_dir}"/[0-9][0-9]$m - fi - done -} - -# -# ebuild functions -# - -src_prepare() { - epatch "${FILESDIR}/${PV}-0001-dracut.sh-do-not-bail-out-if-kernel-mo.patch" - epatch "${FILESDIR}/${PV}-0002-dracut-functions.sh-support-for-altern.patch" - epatch "${FILESDIR}/${PV}-0003-gentoo.conf-let-udevdir-be-handled-by-.patch" - epatch "${FILESDIR}/${PV}-0004-Use-the-same-paths-in-dracut.sh-as-tho.patch" - epatch "${FILESDIR}/${PV}-0005-Install-dracut-install-into-libexec-di.patch" - epatch "${FILESDIR}/${PV}-0006-resume-fix-swap-detection-in-hostonly.patch" - epatch "${FILESDIR}/${PV}-0007-dracut.sh-also-mkdir-run-lock-which-is.patch" - epatch "${FILESDIR}/${PV}-0008-dracut.sh-no-need-to-make-subdirs-in-r.patch" - epatch "${FILESDIR}/${PV}-0009-lvm-install-thin-utils-for-non-hostonl.patch" - epatch "${FILESDIR}/${PV}-0010-module-setup.sh-add-comments-for-dracu.patch" - epatch "${FILESDIR}/${PV}-0011-lvm-fix-thin-recognition.patch" - epatch "${FILESDIR}/${PV}-0012-lvm-always-install-thin-utils-for-lvm.patch" - epatch "${FILESDIR}/${PV}-0013-usrmount-always-install.patch" - epatch "${FILESDIR}/${PV}-0014-udev-rules-add-eudev-rules.patch" - - local libdirs - - #local ldir - #for ldir in $(get_all_libdirs); do - # libdirs+=" /$ldir /usr/$ldir" - #done - #libdirs="${libdirs# }" - - libdirs="/$(get_libdir) /usr/$(get_libdir)" - [[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" - einfo "Setting libdirs to \"${libdirs}\" ..." - sed -e "3alibdirs=\"${libdirs}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - - if use dracut_modules_systemd; then - local systemdutildir="$(systemd_get_utildir)" - local systemdsystemunitdir="$(systemd_get_unitdir)" - einfo "Setting systemdutildir to ${systemdutildir} and ..." - sed -e "5asystemdutildir=\"${systemdutildir}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - einfo "Setting systemdsystemunitdir to ${systemdsystemunitdir}..." - sed -e "6asystemdsystemunitdir=\"${systemdsystemunitdir}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - fi - - epatch_user -} - -src_configure() { - local myconf="--libdir=${MY_LIBDIR}" - myconf+=" --bashcompletiondir=$(get_bashcompdir)" - - if use dracut_modules_systemd; then - myconf+=" --systemdsystemunitdir='$(systemd_get_unitdir)'" - fi - - econf ${myconf} -} - -src_compile() { - tc-export CC - emake doc install/dracut-install -} - -src_install() { - default - - local my_libdir="${MY_LIBDIR}" - local dracutlibdir="${my_libdir#/}/dracut" - - echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" - - insinto "${dracutlibdir}/dracut.conf.d/" - newins dracut.conf.d/gentoo.conf.example gentoo.conf - - insinto /etc/logrotate.d - newins dracut.logrotate dracut - - dodir /var/lib/dracut/overlay - - dohtml dracut.html - - # - # Modules - # - local module - modules_dir="${D%/}/${dracutlibdir}/modules.d" - - # Remove modules not enabled by USE flags - for module in ${IUSE_DRACUT_MODULES} ; do - ! use ${module} && rm_module -f ${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 - - # Following flags define set of helper modules which are base dependencies - # for others and as so have no practical use, so remove these modules. - use device-mapper || rm_module 90dm - use net || rm_module 40network 45ifcfg 45url-lib - - if use dracut_modules_systemd; then - # With systemd following modules do not make sense - rm_module 96securityfs 98selinux - else - # Without systemd following modules do not make sense - rm_module 00systemd-bootchart - fi - - # Remove S/390 modules which are not tested at all - rm_module 80cms 95dasd 95dasd_mod 95zfcp 95znet - - # Remove modules which won't work for sure - rm_module 95fcoe # no tools - # fips module depends on masked app-crypt/hmaccalc - rm_module 01fips 02fips-aesni - - # Remove extra modules which go to future dracut-extras - rm_module 05busybox 97masterkey 98ecryptfs 98integrity -} - -pkg_postinst() { - if linux-info_get_any_version && linux_config_src_exists; then - ewarn "" - ewarn "If the following test report contains a missing kernel" - ewarn "configuration option, you should reconfigure and rebuild your" - ewarn "kernel before booting image generated with this Dracut version." - ewarn "" - - local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" - - # Kernel configuration options descriptions: - local desc_DEVTMPFS="Maintain a devtmpfs filesystem to mount at /dev" - local desc_BLK_DEV_INITRD="Initial RAM filesystem and RAM disk "\ -"(initramfs/initrd) support" - - local opt desc - - # Generate ERROR_* variables for check_extra_config. - for opt in ${CONFIG_CHECK}; do - opt=${opt#\~} - desc=desc_${opt} - eval "local ERROR_${opt}='CONFIG_${opt}: \"${!desc}\"" \ - "is missing and REQUIRED'" - done - - check_extra_config - echo - else - ewarn "" - ewarn "Your kernel configuration couldn't be checked. Do you have" - ewarn "/usr/src/linux/.config file there? Please check manually if" - ewarn "following options are enabled:" - ewarn "" - ewarn " CONFIG_BLK_DEV_INITRD" - ewarn " CONFIG_DEVTMPFS" - ewarn "" - fi - - if use dracut_modules_crypt || use dracut_modules_dmraid || use \ - dracut_modules_mdraid || use dracut_modules_lvm; then - - if ! [[ $(</proc/cmdline) =~ rd.auto[\ =] ]]; then - ewarn "Autoassembly of special devices like cryptoLUKS, dmraid, " - ewarn "mdraid or lvm is off for default as of >=dracut-024." - ewarn "Use rd.auto option to turn it on." - fi - fi -} diff --git a/sys-kernel/dracut/dracut-034.ebuild b/sys-kernel/dracut/dracut-034.ebuild deleted file mode 100644 index 480bb848a259..000000000000 --- a/sys-kernel/dracut/dracut-034.ebuild +++ /dev/null @@ -1,311 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-034.ebuild,v 1.2 2013/10/27 17:51:45 swift Exp $ - -EAPI=4 - -inherit bash-completion-r1 eutils linux-info multilib systemd - -add_req_use_for() { - local dep="$1"; shift - local f - - for f in "$@"; do - REQUIRED_USE+="${f}? ( ${dep} ) -" - done -} - -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="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -REQUIRED_USE=" - dracut_modules_bootchart? ( !dracut_modules_systemd ) - dracut_modules_crypt-gpg? ( dracut_modules_crypt ) - dracut_modules_crypt-loop? ( dracut_modules_crypt ) - dracut_modules_livenet? ( dracut_modules_dmsquash-live ) - " -COMMON_MODULES=" - dracut_modules_biosdevname - dracut_modules_bootchart - dracut_modules_btrfs - dracut_modules_caps - dracut_modules_crypt-gpg - dracut_modules_crypt-loop - dracut_modules_dash - dracut_modules_gensplash - dracut_modules_mdraid - dracut_modules_multipath - dracut_modules_plymouth - dracut_modules_syslog - dracut_modules_systemd - " -DM_MODULES=" - dracut_modules_crypt - dracut_modules_dmraid - dracut_modules_dmsquash-live - dracut_modules_livenet - dracut_modules_lvm - " -NETWORK_MODULES=" - dracut_modules_cifs - dracut_modules_iscsi - dracut_modules_livenet - dracut_modules_nbd - dracut_modules_nfs - dracut_modules_ssh-client - " -add_req_use_for device-mapper ${DM_MODULES} -add_req_use_for net ${NETWORK_MODULES} -IUSE_DRACUT_MODULES="${COMMON_MODULES} ${DM_MODULES} ${NETWORK_MODULES}" -IUSE="debug device-mapper net selinux ${IUSE_DRACUT_MODULES}" - -RESTRICT="test" - -CDEPEND="virtual/udev - dracut_modules_systemd? ( >=sys-apps/systemd-199 ) - selinux? ( sec-policy/selinux-dracut ) - " -RDEPEND="${CDEPEND} - app-arch/cpio - >=app-shells/bash-4.0 - >=sys-apps/baselayout-1.12.14-r1 - >sys-apps/kmod-5[tools] - >=sys-apps/sysvinit-2.87-r3 - >=sys-apps/util-linux-2.21 - virtual/pkgconfig - - debug? ( dev-util/strace ) - device-mapper? ( >=sys-fs/lvm2-2.02.33 ) - net? ( net-misc/curl >=net-misc/dhcp-4.2.4_p2-r1[client] sys-apps/iproute2 ) - selinux? ( sys-libs/libselinux sys-libs/libsepol ) - dracut_modules_biosdevname? ( sys-apps/biosdevname ) - dracut_modules_bootchart? ( app-benchmarks/bootchart2 sys-apps/usleep - sys-process/acct ) - dracut_modules_btrfs? ( sys-fs/btrfs-progs ) - dracut_modules_caps? ( sys-libs/libcap ) - dracut_modules_cifs? ( net-fs/cifs-utils ) - dracut_modules_crypt? ( sys-fs/cryptsetup ) - dracut_modules_crypt-gpg? ( app-crypt/gnupg ) - dracut_modules_dash? ( >=app-shells/dash-0.5.4.11 ) - dracut_modules_dmraid? ( sys-fs/dmraid sys-fs/multipath-tools ) - dracut_modules_gensplash? ( media-gfx/splashutils ) - dracut_modules_iscsi? ( >=sys-block/open-iscsi-2.0.871.3 ) - dracut_modules_lvm? ( >=sys-fs/lvm2-2.02.33 ) - dracut_modules_mdraid? ( >=sys-fs/mdadm-3.2.6-r1 ) - dracut_modules_multipath? ( sys-fs/multipath-tools ) - dracut_modules_nbd? ( sys-block/nbd ) - dracut_modules_nfs? ( net-fs/nfs-utils net-nds/rpcbind ) - dracut_modules_plymouth? ( >=sys-boot/plymouth-0.8.3-r1 ) - dracut_modules_ssh-client? ( dev-libs/openssl ) - dracut_modules_syslog? ( || ( app-admin/syslog-ng app-admin/rsyslog ) ) - " -DEPEND="${CDEPEND} - app-text/asciidoc - >=dev-libs/libxslt-1.1.26 - app-text/docbook-xml-dtd:4.5 - >=app-text/docbook-xsl-stylesheets-1.75.2 - " - -DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules - README.testsuite TODO ) -MY_LIBDIR=/usr/lib - -# -# 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 force m - [[ $1 = -f ]] && force=-f - - for m in $@; do - if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then - rm ${force} --interactive=never -r "${modules_dir}"/$m - else - rm ${force} --interactive=never -r "${modules_dir}"/[0-9][0-9]$m - fi - done -} - -# -# ebuild functions -# - -src_prepare() { - epatch "${FILESDIR}/${PV}-0001-dracut.sh-do-not-bail-out-if-kernel-mo.patch" - epatch "${FILESDIR}/${PV}-0002-dracut-functions.sh-support-for-altern.patch" - epatch "${FILESDIR}/${PV}-0003-gentoo.conf-let-udevdir-be-handled-by-.patch" - epatch "${FILESDIR}/${PV}-0004-Use-the-same-paths-in-dracut.sh-as-tho.patch" - epatch "${FILESDIR}/${PV}-0005-Install-dracut-install-into-libexec-di.patch" - - local libdirs ldir - - for ldir in $(get_all_libdirs); do - libdirs+=" /$ldir /usr/$ldir" - done - - libdirs="${libdirs# }" - einfo "Setting libdirs to \"${libdirs}\" ..." - sed -e "3alibdirs=\"${libdirs}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - - if use dracut_modules_systemd; then - local systemdutildir="$(systemd_get_utildir)" - local systemdsystemunitdir="$(systemd_get_unitdir)" - einfo "Setting systemdutildir to ${systemdutildir} and ..." - sed -e "5asystemdutildir=\"${systemdutildir}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - einfo "Setting systemdsystemunitdir to ${systemdsystemunitdir}..." - sed -e "6asystemdsystemunitdir=\"${systemdsystemunitdir}\"" \ - -i "${S}/dracut.conf.d/gentoo.conf.example" || die - fi -} - -src_configure() { - local myconf="--libdir=${MY_LIBDIR}" - myconf+=" --bashcompletiondir=$(get_bashcompdir)" - - if use dracut_modules_systemd; then - myconf+=" --systemdsystemunitdir='$(systemd_get_unitdir)'" - fi - - econf ${myconf} -} - -src_compile() { - tc-export CC - emake doc install/dracut-install -} - -src_install() { - default - - local my_libdir="${MY_LIBDIR}" - local dracutlibdir="${my_libdir#/}/dracut" - - echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" - - insinto "${dracutlibdir}/dracut.conf.d/" - newins dracut.conf.d/gentoo.conf.example gentoo.conf - - insinto /etc/logrotate.d - newins dracut.logrotate dracut - - dodir /var/lib/dracut/overlay - - dohtml dracut.html - - # - # Modules - # - local module - modules_dir="${D%/}/${dracutlibdir}/modules.d" - - # Remove modules not enabled by USE flags - for module in ${IUSE_DRACUT_MODULES} ; do - ! use ${module} && rm_module -f ${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 - - # Following flags define set of helper modules which are base dependencies - # for others and as so have no practical use, so remove these modules. - use device-mapper || rm_module 90dm - use net || rm_module 40network 45ifcfg 45url-lib - - if use dracut_modules_systemd; then - # With systemd following modules do not make sense - rm_module 96securityfs 98selinux - else - # Without systemd following modules do not make sense - rm_module 00systemd-bootchart - fi - - # Remove S/390 modules which are not tested at all - rm_module 80cms 95dasd 95dasd_mod 95zfcp 95znet - - # Remove modules which won't work for sure - rm_module 95fcoe # no tools - # fips module depends on masked app-crypt/hmaccalc - rm_module 01fips 02fips-aesni - - # Remove extra modules which go to future dracut-extras - rm_module 05busybox 97masterkey 98ecryptfs 98integrity -} - -pkg_postinst() { - if linux-info_get_any_version && linux_config_src_exists; then - ewarn "" - ewarn "If the following test report contains a missing kernel" - ewarn "configuration option, you should reconfigure and rebuild your" - ewarn "kernel before booting image generated with this Dracut version." - ewarn "" - - local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" - - # Kernel configuration options descriptions: - local desc_DEVTMPFS="Maintain a devtmpfs filesystem to mount at /dev" - local desc_BLK_DEV_INITRD="Initial RAM filesystem and RAM disk "\ -"(initramfs/initrd) support" - - local opt desc - - # Generate ERROR_* variables for check_extra_config. - for opt in ${CONFIG_CHECK}; do - opt=${opt#\~} - desc=desc_${opt} - eval "local ERROR_${opt}='CONFIG_${opt}: \"${!desc}\"" \ - "is missing and REQUIRED'" - done - - check_extra_config - echo - else - ewarn "" - ewarn "Your kernel configuration couldn't be checked. Do you have" - ewarn "/usr/src/linux/.config file there? Please check manually if" - ewarn "following options are enabled:" - ewarn "" - ewarn " CONFIG_BLK_DEV_INITRD" - ewarn " CONFIG_DEVTMPFS" - ewarn "" - fi - - if use dracut_modules_crypt || use dracut_modules_dmraid || use \ - dracut_modules_mdraid || use dracut_modules_lvm; then - - if ! [[ $(</proc/cmdline) =~ rd.auto[\ =] ]]; then - ewarn "Autoassembly of special devices like cryptoLUKS, dmraid, " - ewarn "mdraid or lvm is off for default as of >=dracut-024." - ewarn "Use rd.auto option to turn it on." - fi - fi -} |