diff options
author | Amadeusz Żołnowski <aidecoe@gentoo.org> | 2012-08-04 11:13:35 +0000 |
---|---|---|
committer | Amadeusz Żołnowski <aidecoe@gentoo.org> | 2012-08-04 11:13:35 +0000 |
commit | ea489a49445e269207ded19b9f67734aa6468bb6 (patch) | |
tree | cc74bcabdbe4491f59f75cf3c9181b6e7a5d8993 /sys-kernel | |
parent | Unmask net-misc/curl USE=metalink again (bug #429334). (diff) | |
download | historical-ea489a49445e269207ded19b9f67734aa6468bb6.tar.gz historical-ea489a49445e269207ded19b9f67734aa6468bb6.tar.bz2 historical-ea489a49445e269207ded19b9f67734aa6468bb6.zip |
Remove old revisions of 019 and 022.
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/dracut/ChangeLog | 6 | ||||
-rw-r--r-- | sys-kernel/dracut/Manifest | 18 | ||||
-rw-r--r-- | sys-kernel/dracut/dracut-019-r4.ebuild | 253 | ||||
-rw-r--r-- | sys-kernel/dracut/dracut-022-r3.ebuild | 268 |
4 files changed, 13 insertions, 532 deletions
diff --git a/sys-kernel/dracut/ChangeLog b/sys-kernel/dracut/ChangeLog index 3db087d069bd..a722ccc289ff 100644 --- a/sys-kernel/dracut/ChangeLog +++ b/sys-kernel/dracut/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-kernel/dracut # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.79 2012/08/04 10:43:05 aidecoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.80 2012/08/04 11:13:35 aidecoe Exp $ + + 04 Aug 2012; Amadeusz Żołnowski <aidecoe@gentoo.org> -dracut-019-r4.ebuild, + -dracut-022-r3.ebuild: + Remove old revisions of 019 and 022. *dracut-022-r4 (04 Aug 2012) *dracut-019-r5 (04 Aug 2012) diff --git a/sys-kernel/dracut/Manifest b/sys-kernel/dracut/Manifest index 8b12e2fe7ada..1c217406932d 100644 --- a/sys-kernel/dracut/Manifest +++ b/sys-kernel/dracut/Manifest @@ -35,20 +35,18 @@ DIST dracut-019.tar.bz2 199187 SHA256 a68f00f896aef1cdebc8479f522d6a10b9d20b7dfc DIST dracut-022.tar.bz2 243314 SHA256 32f574efb0a48a2ee6e1967f8b410b241f93bc9eea9bd0b90437be5e9aa028e5 SHA512 43906e147270a548ef6c98539fd36ac7e89a0ca88de600dbffe02d7b03a2acf6347ae4951557b3af0101594fab100a112cb57b7d6a1490dbaa6ddc9156c0a88a WHIRLPOOL 17d0d4dafb6c399b61845655e7b25b513f636b1ee152fe4373036dfa34c46f8d4f5016d5f74350112483b81911dfca751a15eb15a963ad2f4066840a8c9b80d2 EBUILD dracut-014-r3.ebuild 5247 SHA256 6f0100ac193ca49ca403776da058903eeb5811cb105e795d479cc21be408ac18 SHA512 38bdb8ffe87b50d54a0c84c1db28975f3c937828ab3256d5f44fa70715683a8b64a835405d54c0d97690881ec6b69666419e57feca1a2359cfd7233a2031804b WHIRLPOOL 4c2b33ea173a1e7743deb988a1c61a03e668246ddd12b7fee4c45d1521107ed714e824341f2f1759ea8420f22205737a80210366a7722f830935e5565f430080 EBUILD dracut-018-r2.ebuild 6851 SHA256 1f1fe6a9fe66240e081d1f558d0ef98da015b2fc2f229d2d9512377913bea026 SHA512 2377da0b73817b33725bbd43315ebd093fc8737a0c1630b04c60bf32a07f63f66d9eda9033b60cfff4d6b9a4596126639feaf419378b5100e1f937869e8adfda WHIRLPOOL 71da99677c621d57a082de24e3ec2027d32a6f9af609a3f3d7e9a17bcfc765b42e1432b98cce11bd008c3b6c1d7b6d91071c7d2b1a85e0babfa37d7197eb9dbb -EBUILD dracut-019-r4.ebuild 7021 SHA256 587b6717f520ba216f5439399d68f892d917fc357c67f087a4ea8d970a26870e SHA512 258d6548e3a821c049b567033f1448116b353ef65aff9020257b88febbf3a9deab2768cb3f6686948c17261c47b2d43a958d9fa1e034f3a52cefd9f5e6babbdd WHIRLPOOL 6d00ad9a19e4b3eecc0736a2bd5dd1f1aa7e8acc8efcc06a5af96bf2d57c1c41994020d9cc94df8668c6cd5527b227b2542d6b7b355eb933e6d0ea3f4bc94cc0 EBUILD dracut-019-r5.ebuild 7041 SHA256 44940268c7e779b5dfc751992444aa35e26268339a809e91c9fd4134090e0967 SHA512 5457c9e77a96950cd991bffcd7d702d9a8f6152fe9d744fa6ed3c84c9b49e79177d15c111da24660b079cdc359eb5bbb5174c9f7423c5416e1426c8a468d3f3e WHIRLPOOL 043b104e3b7dd7ffaabf0ad00aa5226e1ca2b06b8a2408d52db7b30c389cd41fb337247405486b5ad89fb76f5a9b5b73195cc679756cc6e0af0ba0618d6433dd -EBUILD dracut-022-r3.ebuild 8247 SHA256 7e144686919212a64201d786a98aa5bf85b82d1658e5658dbffa867d4cbd7317 SHA512 2b073838c2f4b6e67ddad84dd4203dbefea93f005c7e178b86da6c3c2a15c4ee71b822590d0135657c05d7b628e03916c7137c1ba21a51e72b9165ce60e3c842 WHIRLPOOL faad5f996f615468067b4385c00c3a311ce2bf64a1dcdce765f20f478bb7322b7b8f9039cfd68fbc3aa94ee009e7f691d8b33ee76417644d645e45ee7774501a EBUILD dracut-022-r4.ebuild 8267 SHA256 d416b1b0fb0c9e3a6fe51e50c0e876bd389d3c74e6e4520a6d65dc2ffde6945b SHA512 3f3148dc64473f6fe352c777512a80c95f4deb2de8e0fdba3ab65d0ea2fced7f27dd6de551e17198bafb578abcf4fea22413d16aae27de8a3f7fffee3d17506f WHIRLPOOL 492014deff59d5de2593f86d06ca77428f908113090c16ed333991262a6e65ced82e1a93308a4dea956de1e1248853a40488cf6646f17789e449e2940ec85765 -MISC ChangeLog 30366 SHA256 8ce5e874927a39a898326ef9271a9f837f6736f4284220f69ac906837525fad2 SHA512 092bf5887fd7078768aae57a441b5675754a602b947dcf37e49a1e54070f3b0c0041efa874fa417d9e1ee48f11775dc984b737ee18dd9570ebad06ecb238978a WHIRLPOOL 71b5840c3b6a261641281cd7df493df60eb4e90dbcbcadb734d01c9efd3c4c133f5b4ed653b429507dc60b84bf8b31d576db7c47e89b3ac51ca550aea0af0f0a +MISC ChangeLog 30511 SHA256 1691a8163d42c94fa6e8c7b8687b38eace2ded5f224c675814df2357dfe5c8e2 SHA512 d1131b4b0ca35b41da9beb8be8e6bd70776f49f8b341a8538ce9667ffe795c39b57ae185e11e3de3deade8b1184f2cd4530bb4ebe1550ffca73615355dbb46a5 WHIRLPOOL 1aee7b39a3743a03acc67dbdd7f917ec280819fe1c7e21601944e2401b349a928a1866426366087481580ec1d8b78b4c3061c8bdb77ab5f30c1881bad9c60394 MISC metadata.xml 926 SHA256 b895115d72a686208816e1042bd295abb183ea832cdda73859deb690c11b932c SHA512 e6695bc301c6b3621e1730bc8e6ecc6c317705037a3004aab36bfea0b7f6a8b235a6d61ec4e4b9bb234ea53971d6c18dfbd0d09b3f30080a07eeb9e57da98c96 WHIRLPOOL d844828523e7bb0805b4b3d64d72163702adb6d4bedf7929494208e50696e43ddddc1e4a262c663ec98e05b65037868454135c0a46f82fb6b455e692826b48dc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQEcBAEBCAAGBQJQHPy/AAoJEPATRTHh2/q1VH0H+gMhDLyfd/L6TyltnvgS8swR -Em6vtWVbSHLMDAhWKkCf9EzraUI8c0r/6GpQwQMnzWz4LQJJknb/SEVLbk3xxt6w -5YJiWx6Ym/EbdFOJxSKJyZVyRgirIq0ONGTJ788cynAb4pV34kgrbPTwmkPDSJSB -odNSzG2eemLuR8bTTLuHbb+uMLq0QOp90qqYEvDPy98BCP0cN1E2ynWjRJHZhpBz -U05IT0biAfH2jr/uGIYPqMi5NSCRP14UKYsdzJfjv2rehK1ahHfaAoNr3Fcfx7Jd -WcyuQpHXChs4H+yW9cbmid1zzkKlLOtwvm0cDjiNXovAW8CZmygY9Bf3w6mmgig= -=boKJ +iQEcBAEBCAAGBQJQHQPkAAoJEPATRTHh2/q1LboH/AzxGHzXFmoe7hKOXZrwTvmp +6icV/UcseiRc5F2Etmq1fUh471oE0QkJcLom+8P9TBLjU2UcaA7rrN6gblL9YgsG +5DUwMVDOilJ/Snz/nbhctLUdc+7WLbQcuxhmPZFlf2ezsOtLTt0t8foofdR1KSqe +PRQO9lzFkt9F+6EfTiVxjqM8kvgkE4tbG35etqrRcMk3BheHiBDpZzyANCSVSMHT +JxbkgVmm6/GL3nnQfuxNlAx9QbLvMXFG+7zP+fHvL0u3Rt72OLIEPxvuAzmdeZHi +orUfIZtKzDWy2TVquCssKWI3/RozYCqu6npY4zFxnqvAErmQxdyVynpmWLYSSCk= +=IYFW -----END PGP SIGNATURE----- diff --git a/sys-kernel/dracut/dracut-019-r4.ebuild b/sys-kernel/dracut/dracut-019-r4.ebuild deleted file mode 100644 index d92c21995df1..000000000000 --- a/sys-kernel/dracut/dracut-019-r4.ebuild +++ /dev/null @@ -1,253 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-019-r4.ebuild,v 1.1 2012/07/31 16:52:23 aidecoe Exp $ - -EAPI=4 - -inherit eutils linux-info - -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="~amd64 ~x86" - -REQUIRED_USE="dracut_modules_crypt-gpg? ( 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_gensplash - dracut_modules_mdraid - dracut_modules_multipath - dracut_modules_plymouth - dracut_modules_syslog - " -DM_MODULES=" - dracut_modules_crypt - dracut_modules_dmraid - dracut_modules_dmsquash-live - dracut_modules_livenet - dracut_modules_lvm - " -NETWORK_MODULES=" - 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" - -RDEPEND=" - app-arch/cpio - >=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.8 >sys-apps/kmod-5[tools] ) - >=sys-apps/sysvinit-2.87-r3 - >=sys-apps/util-linux-2.20 - >=sys-fs/udev-166 - - debug? ( dev-util/strace ) - device-mapper? ( || ( sys-fs/device-mapper >=sys-fs/lvm2-2.02.33 ) ) - net? ( net-misc/curl >=net-misc/dhcp-4.2.1-r1 sys-apps/iproute2 ) - selinux? ( sys-libs/libselinux sys-libs/libsepol ) - dracut_modules_biosdevname? ( sys-apps/biosdevname ) - dracut_modules_bootchart? ( app-benchmarks/bootchart2 ) - dracut_modules_btrfs? ( sys-fs/btrfs-progs ) - dracut_modules_caps? ( sys-libs/libcap ) - dracut_modules_crypt? ( sys-fs/cryptsetup ) - dracut_modules_crypt-gpg? ( app-crypt/gnupg ) - 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 ) - 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="" - -# -# 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 -} - -# 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}/${PV}-0001-90multipath-added-kpartx.rules-multipa.patch" - epatch "${FILESDIR}/${PV}-0002-Avoid-annonying-warnings-when-pkg-conf.patch" - epatch "${FILESDIR}/${PV}-0003-99shutdown-remove-no-wall-argument-for.patch" - epatch "${FILESDIR}/${PV}-0004-dracut.sh-do-not-copy-var-run-and-var-.patch" - epatch "${FILESDIR}/${PV}-0005-dracut.sh-create-relative-symlinks-for.patch" -} - -src_compile() { - return -} - -src_install() { - emake prefix=/usr libdir="/usr/$(get_libdir)" sysconfdir=/etc \ - DESTDIR="${D}" install - - local gen2conf - - dodir /var/lib/dracut/overlay - dodoc HACKING TODO AUTHORS NEWS README* - - 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} - - insinto /etc/logrotate.d - newins dracut.logrotate dracut - - dohtml dracut.html - - # - # Modules - # - local module - modules_dir="${D}/usr/$(get_libdir)/dracut/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 - - # 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 98systemd -} - -pkg_postinst() { - if linux-info_get_any_version && linux_config_src_exists; then - echo - 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." - echo - - local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES" - - # 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 desc_MODULES="Enable loadable module 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 - echo - 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 " CONFIG_MODULES" - echo - fi -} diff --git a/sys-kernel/dracut/dracut-022-r3.ebuild b/sys-kernel/dracut/dracut-022-r3.ebuild deleted file mode 100644 index 969282941574..000000000000 --- a/sys-kernel/dracut/dracut-022-r3.ebuild +++ /dev/null @@ -1,268 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-022-r3.ebuild,v 1.1 2012/07/31 16:52:23 aidecoe Exp $ - -EAPI=4 - -inherit eutils linux-info toolchain-funcs - -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="~amd64 ~x86" - -REQUIRED_USE="dracut_modules_crypt-gpg? ( 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_gensplash - dracut_modules_mdraid - dracut_modules_multipath - dracut_modules_plymouth - dracut_modules_syslog - " -DM_MODULES=" - dracut_modules_crypt - dracut_modules_dmraid - dracut_modules_dmsquash-live - dracut_modules_livenet - dracut_modules_lvm - " -NETWORK_MODULES=" - 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 optimization net selinux ${IUSE_DRACUT_MODULES}" - -RESTRICT="test" - -RDEPEND=" - app-arch/cpio - >=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.8 >sys-apps/kmod-5[tools] ) - >=sys-apps/sysvinit-2.87-r3 - >=sys-apps/util-linux-2.20 - >=sys-fs/udev-166 - - debug? ( dev-util/strace ) - device-mapper? ( || ( sys-fs/device-mapper >=sys-fs/lvm2-2.02.33 ) ) - net? ( net-misc/curl >=net-misc/dhcp-4.2.1-r1 sys-apps/iproute2 ) - selinux? ( sys-libs/libselinux sys-libs/libsepol ) - dracut_modules_biosdevname? ( sys-apps/biosdevname ) - dracut_modules_bootchart? ( app-benchmarks/bootchart2 ) - dracut_modules_btrfs? ( sys-fs/btrfs-progs ) - dracut_modules_caps? ( sys-libs/libcap ) - dracut_modules_crypt? ( sys-fs/cryptsetup ) - dracut_modules_crypt-gpg? ( app-crypt/gnupg ) - 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 ) - 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=" - app-text/asciidoc - >=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 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-qemu-module-setup.sh-provide-alternati.patch" - epatch "${FILESDIR}/${PV}-0002-Makefile-use-implicit-rules-for-instal.patch" - epatch "${FILESDIR}/${PV}-0003-kernel-modules-module-setup.sh-just-op.patch" - epatch "${FILESDIR}/${PV}-0004-90multipath-added-kpartx.rules-multipa.patch" - epatch "${FILESDIR}/${PV}-0005-gentoo.conf-set-udevdir.patch" - epatch "${FILESDIR}/${PV}-0006-Config-file-for-systemd-on-Gentoo.patch" - epatch "${FILESDIR}/${PV}-0007-Remove-obsolete-gentoo-conf-file.patch" - epatch "${FILESDIR}/${PV}-0008-95rootfs-block-fix-left-fsck-rel.-chec.patch" - epatch "${FILESDIR}/${PV}-0009-98usrmount-use-rw-and-ro-options-inste.patch" - epatch "${FILESDIR}/${PV}-0010-98usrmount-print-mount-options.patch" - epatch "${FILESDIR}/${PV}-0011-dracut-lib-new-functions-listlist-and-.patch" - epatch "${FILESDIR}/${PV}-0012-apply-ro-and-rw-options-from-cmdline-t.patch" - epatch "${FILESDIR}/${PV}-0013-ro_mnt-option-at-build-time-to-force-r.patch" - epatch "${FILESDIR}/${PV}-0014-parse-root-opts-first-check-for-ro-lat.patch" - epatch "${FILESDIR}/${PV}-0015-gentoo.conf-enable-ro_mnt.patch" - epatch "${FILESDIR}/${PV}-0016-dracut.sh-test-if-we-can-lazy-resolve-.patch" - epatch "${FILESDIR}/${PV}-0017-99shutdown-remove-no-wall-argument-for.patch" - epatch "${FILESDIR}/${PV}-0018-dracut.sh-do-not-copy-var-run-and-var-.patch" - epatch "${FILESDIR}/${PV}-0019-dracut.sh-create-relative-symlinks-for.patch" - einfo "Removing ${S}/install/hashmap.o ..." - rm "${S}/install/hashmap.o" || die -} - -src_compile() { - if use optimization; then - ewarn "Enabling experimental optimization!" - tc-export CC - emake prefix=/usr sysconfdir=/etc DESTDIR="${D}" doc \ - install/dracut-install - fi -} - -src_install() { - emake prefix=/usr libdir="/usr/$(get_libdir)" sysconfdir=/etc \ - DESTDIR="${D}" install - - dodir /var/lib/dracut/overlay - dodoc HACKING TODO AUTHORS NEWS README* - - insinto /etc/dracut.conf.d - newins dracut.conf.d/gentoo.conf.example gentoo.conf - - insinto /etc/logrotate.d - newins dracut.logrotate dracut - - dohtml dracut.html - - # - # Modules - # - local module - modules_dir="${D}/usr/$(get_libdir)/dracut/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 - - # 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 98systemd -} - -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 ~MODULES" - - # 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 desc_MODULES="Enable loadable module 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 " CONFIG_MODULES" - ewarn "" - fi - - if has_version virtual/pkgconfig; then - elog "" - elog "virtual/pkgconfig is no longer needed by dracut." - elog "" - fi -} |