diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2014-02-27 00:03:15 +0100 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2014-02-27 00:35:37 +0100 |
commit | d84c75b7eaa85727fc182e3ea0d988fb198167ba (patch) | |
tree | cd256f9b1537e758a33e518e748e0ecaae7fe700 /sys-kernel/stable-sources | |
parent | sys-kernel/stable-sources: Version bump (diff) | |
download | portage-d84c75b7eaa85727fc182e3ea0d988fb198167ba.tar.xz |
sys-kernel: Eclassify
Package-Manager: portage-2.2.8-r1
Diffstat (limited to 'sys-kernel/stable-sources')
-rw-r--r-- | sys-kernel/stable-sources/ChangeLog | 4 | ||||
-rw-r--r-- | sys-kernel/stable-sources/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/stable-sources/stable-sources-3.11.10.ebuild | 194 | ||||
-rw-r--r-- | sys-kernel/stable-sources/stable-sources-3.13.5.ebuild | 192 |
4 files changed, 10 insertions, 386 deletions
diff --git a/sys-kernel/stable-sources/ChangeLog b/sys-kernel/stable-sources/ChangeLog index 4b6ff472..5dd31dc6 100644 --- a/sys-kernel/stable-sources/ChangeLog +++ b/sys-kernel/stable-sources/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 26 Feb 2014; Bertrand Jacquin <beber@meleeweb.net> + stable-sources-3.11.10.ebuild, stable-sources-3.13.5.ebuild: + sys-kernel: Eclassify + *stable-sources-3.13.5 (26 Feb 2014) 26 Feb 2014; Bertrand Jacquin <beber@meleeweb.net> diff --git a/sys-kernel/stable-sources/Manifest b/sys-kernel/stable-sources/Manifest index f3b9013e..7c0c6c03 100644 --- a/sys-kernel/stable-sources/Manifest +++ b/sys-kernel/stable-sources/Manifest @@ -2,7 +2,7 @@ DIST linux-3.11.tar.xz 75082460 SHA256 803ec8f0ad4b2ddedcb0332a590cd2b5e10dfc57c DIST linux-3.13.tar.xz 77187032 SHA256 4d5e5eee5f276424c32e9591f1b6c971baedc7b49f28ce03d1f48b1e5d6226a2 WHIRLPOOL 2992257a17e85b3eb16fcaf21678fa6dbf31f80c2099fd1ad0ff9852ac1d16122ac8e2c0b46421d8895d4368253a724e439cd625307ee7af7bd1e50cb2c9b62a DIST patch-3.11.10.xz 198516 SHA256 b12321f0d62476211662945361178819b134964babd238a67dab0824edcf19b1 WHIRLPOOL 5a359009b6073083586fabe2df1c2dc75290d2b3613426a3063a1a02e7e80a5a52fd3331ee8ed4554b34281ad9961fd572d75016311ab34492b05d2e27125520 DIST patch-3.13.5.xz 129252 SHA256 074fdf3079b943540918d487ded1a13087b9a31f07feddef03fcf1bbb90f1091 WHIRLPOOL 78bce868395dd02d7e68c044cc27555facb04e99db7e5317557c6ee33584c942c9a9aaec98943c0dd5258a2de715e3fdaa3331d3eae8e7658ca0624b0f3a9e59 -EBUILD stable-sources-3.11.10.ebuild 4492 SHA256 f42dc38b5c9f71ab74e25a97709ffa0ed5522eb37f0dbf71651a7694d6a1edf5 WHIRLPOOL 43e0158c3d0c427770296e497a2000bd9ef7b5c8f5bf3b554b1bb3401f8e492c73c7ead854aae6e614f22040ffa2054557f7f8d5e1c7ab7c62ae0bc44f3f3cbf -EBUILD stable-sources-3.13.5.ebuild 4492 SHA256 066ad94af1e644a5a4261ef355f3d9a6d1e4e975ebf24168f7415b1b7f5e26c0 WHIRLPOOL 82d3757690f87fdc7b646bd10c35e4e7044cfdf681db675d5de26ccba22e9ad07ba22420a2dad41bb9a477f516c243bd24bc481b0d1b5ac5e17bb8827b77b9cc -MISC ChangeLog 14217 SHA256 f05c1cee8f8509774e8882b2d030109d033ef36847bb3b80f55b3b3bd6480b3c WHIRLPOOL 1099412651e3690a910d879597ffdf3429d2436e881f97d9bed4b8eca1174029ab676adbaa5881291901fb9f9692feb6e333f69c52fb0287d867de4fc9c72e39 +EBUILD stable-sources-3.11.10.ebuild 172 SHA256 7b6b7dcf7728344085cc3c74211ec67f00f6739be02926d890f6ee44e653e29c WHIRLPOOL 79298a398cb94c582d74168820923ba0fe03d863f3c2fe15e4529e129f96ce86d0dd93fa01d8c7241657751572b8f7aae87243fd0d176645ab99028e9f3fc5a9 +EBUILD stable-sources-3.13.5.ebuild 172 SHA256 7b6b7dcf7728344085cc3c74211ec67f00f6739be02926d890f6ee44e653e29c WHIRLPOOL 79298a398cb94c582d74168820923ba0fe03d863f3c2fe15e4529e129f96ce86d0dd93fa01d8c7241657751572b8f7aae87243fd0d176645ab99028e9f3fc5a9 +MISC ChangeLog 14358 SHA256 4eea9fb677f49f5f055866e5b834f3fc8fb5659105fd363c404baf0989a36bb0 WHIRLPOOL a380c5eaf2c9e728801d4ff9cacc6609ce0ff47b07919c2d16cbd7d36e750ada5f6e553b4ff77687552b8e96d859b8c65443d9e5199bdbfea54273e187c5dbf3 MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae diff --git a/sys-kernel/stable-sources/stable-sources-3.11.10.ebuild b/sys-kernel/stable-sources/stable-sources-3.11.10.ebuild index 45d33212..ad98df29 100644 --- a/sys-kernel/stable-sources/stable-sources-3.11.10.ebuild +++ b/sys-kernel/stable-sources/stable-sources-3.11.10.ebuild @@ -1,198 +1,8 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 -ETYPE="sources" - -inherit savedconfig kernel-2 -detect_version - -SLOT="${PV%.*}" - -DESCRIPTION="Kernel stable sources and build" -HOMEPAGE="http://www.kernel.org" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" +inherit linux-build KEYWORDS="~amd64 ~x86" - -SRCDIR="${WORKDIR}/linux-${KV_FULL}" -BUILDDIR="${WORKDIR}/build" - -KV_EXTRA="${EXTRAVERSION}" -S="${SRCDIR}" - -IUSE="build source zlib lzma" -REQUIRED_USE=" - ?? ( zlib lzma ) - zlib? ( build ) - lzma? ( build ) - symlink? ( source ) - " - -DEPEND=" - sys-devel/bc - || ( - sys-apps/kmod[zlib?,lzma?] - sys-apps/module-init-tools - )" - -configval () { - local _v="CONFIG_$1" - - # Export only the needed config value - # when not already define - declare -p ${_v} > /dev/null 2>&1 \ - || . <(sed -n "/^${_v}=/ p" ${BUILDDIR}/.config) - - case "${!_v}" in - "") declare "$_v=n" ; export $_v ; return 1 ;; - *) export $_v ; return 0 ;; - esac -} - -do_prepare_build () { - mkdir "${BUILDDIR}" - - restore_config "${BUILDDIR}/.config" - if [ ! -e "${BUILDDIR}/.config" ] ; then - ewarn "Generate .config using 'defconfig'" - emake defconfig "${myopt[@]}" - fi - - mkdir "${WORKDIR}/boot" - - if configval CMDLINE_BOOL && configval CMDLINE ; then - einfo "Creating kernel.arg" - einfo " CONFIG_CMDLINE='${CONFIG_CMDLINE}'" - echo "${CONFIG_CMDLINE}" > "${WORKDIR}/boot/kernel.arg" - fi - - configval MODULES || ewarn "CONFIG_MODULES is not set" - configval UEVENT_HELPER_PATH \ - && ewarn "CONFIG_UEVENT_HELPER_PATH should be empty" -} - -src_prepare () { - bopt=( - -C "${BUILDDIR}" - -f "${SRCDIR}/Makefile" - KBUILD_SRC="${SRCDIR}" - KCONFIG_CONFIG="${BUILDDIR}/.config" - - KBUILD_BUILD_USER="${KBUILD_BUILD_USER:-$PORTAGE_USERNAME}" - ) - - copt=( - CC="$(tc-getCC)" HOSTCC="${CBUILD}-gcc" CROSS_COMPILE="${CHOST}-" - ARCH="$(tc-arch-kernel)" SUBARCH="$(tc-arch-kernel)" - ) - - vopt=( - EXTRAVERSION="${KV_EXTRA}" - LOCALVERSION= CONFIG_LOCALVERSION= - V=1 - ) - - myopt=( "${bopt[@]}" "${copt[@]}" "${vopt[@]}" ) - - use build && do_prepare_build -} - -do_compile_build () { - einfo "Checking configuration file" - emake oldconfig "${myopt[@]}" < /dev/null - - if diff -Nu0 "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" \ - | egrep -q '^(\-|\+)CONFIG_' ; then - eerror "You configuration is not up to date" - diff -Nu "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" - die "Bad configuration" - fi - - einfo "Building kernel" - emake bzImage "${myopt[@]}" - - if configval MODULES ; then - einfo "Building modules" - emake modules "${myopt[@]}" - fi -} - -src_compile () { - use build && do_compile_build -} - -do_install_sources () { - kernel-2_src_install -} - -do_install_build () { - einfo "Installing kernel" - emake install "${myopt[@]}" \ - INSTALL_PATH="${WORKDIR}/boot" - - insinto "/boot/${KV_FULL}" - - newins "${WORKDIR}/boot/config-${KV_FULL}" kernel.cfg - newins "${WORKDIR}/boot/vmlinuz-${KV_FULL}" kernel.img - newins "${WORKDIR}/boot/System.map-${KV_FULL}" System.map - - if configval CMDLINE_BOOL && configval CMDLINE ; then - doins "${WORKDIR}/boot/kernel.arg" - fi - - if configval MODULES ; then - einfo "Installing modules" - emake modules_install "${myopt[@]}" \ - INSTALL_MOD_PATH="${WORKDIR}" \ - INSTALL_MOD_STRIP="${PORTAGE_STRIP_FLAGS}" - - # kmod only support zlib and lzma - # See libkmod/libkmod-util.c / struct kmod_ext kmod_exts - if use zlib || use lzma ; then - use zlib && { local cmp="gzip -9c" ; local ext="gz" ; } - use lzma && { local cmp="xz -9c" ; local ext="xz" ; } - - einfo "Compressing modules" - find "${WORKDIR}/lib/modules" \ - -type f -name "*.ko" \ - | while read ; do - ${cmp} < "${REPLY}" > "${REPLY}.${ext}" \ - || die "${cmp} ${REPLY} failed" - rm "${REPLY}" - done - fi - - einfo "Generating modules.dep" - depmod -ae -F "${BUILDDIR}/System.map" -b "${WORKDIR}" "${KV_FULL}" \ - || die "depmod failed" - - rm "${WORKDIR}/lib/modules/${KV_FULL}/build" - rm "${WORKDIR}/lib/modules/${KV_FULL}/source" - - insinto /lib - doins -r "${WORKDIR}/lib/modules" - - # No need to make firmware_install, make modules_install does - if [ -e "${WORKDIR}/lib/firmware" ] ; then - einfo "Installing firmwares" - - insinto /lib - doins -r "${WORKDIR}/lib/firmware" - fi - fi -} - -src_install () { - use build && do_install_build - use source && do_install_sources - use savedconfig && save_config "${BUILDDIR}/.config" -} - -pkg_postinst () { - kernel-2_pkg_postinst - - einfo "You may need to:" - einfo " make menuconfig ${copt[@]}" -} diff --git a/sys-kernel/stable-sources/stable-sources-3.13.5.ebuild b/sys-kernel/stable-sources/stable-sources-3.13.5.ebuild index 9eb2d95a..ad98df29 100644 --- a/sys-kernel/stable-sources/stable-sources-3.13.5.ebuild +++ b/sys-kernel/stable-sources/stable-sources-3.13.5.ebuild @@ -3,196 +3,6 @@ # $Header: $ EAPI=5 -ETYPE="sources" - -inherit savedconfig kernel-2 -detect_version - -SLOT="${PV%.*}" - -DESCRIPTION="Kernel stable sources and build" -HOMEPAGE="http://www.kernel.org" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" +inherit linux-build KEYWORDS="~amd64 ~x86" - -SRCDIR="${WORKDIR}/linux-${KV_FULL}" -BUILDDIR="${WORKDIR}/build" - -KV_EXTRA="${EXTRAVERSION}" -S="${SRCDIR}" - -IUSE="build source zlib lzma" -REQUIRED_USE=" - ?? ( zlib lzma ) - zlib? ( build ) - lzma? ( build ) - symlink? ( source ) - " - -DEPEND=" - sys-devel/bc - || ( - sys-apps/kmod[zlib?,lzma?] - sys-apps/module-init-tools - )" - -configval () { - local _v="CONFIG_$1" - - # Export only the needed config value - # when not already define - declare -p ${_v} > /dev/null 2>&1 \ - || . <(sed -n "/^${_v}=/ p" ${BUILDDIR}/.config) - - case "${!_v}" in - "") declare "$_v=n" ; export $_v ; return 1 ;; - *) export $_v ; return 0 ;; - esac -} - -do_prepare_build () { - mkdir "${BUILDDIR}" - - restore_config "${BUILDDIR}/.config" - if [ ! -e "${BUILDDIR}/.config" ] ; then - ewarn "Generate .config using 'defconfig'" - emake defconfig "${myopt[@]}" - fi - - mkdir "${WORKDIR}/boot" - - if configval CMDLINE_BOOL && configval CMDLINE ; then - einfo "Creating kernel.arg" - einfo " CONFIG_CMDLINE='${CONFIG_CMDLINE}'" - echo "${CONFIG_CMDLINE}" > "${WORKDIR}/boot/kernel.arg" - fi - - configval MODULES || ewarn "CONFIG_MODULES is not set" - configval UEVENT_HELPER_PATH \ - && ewarn "CONFIG_UEVENT_HELPER_PATH should be empty" -} - -src_prepare () { - bopt=( - -C "${BUILDDIR}" - -f "${SRCDIR}/Makefile" - KBUILD_SRC="${SRCDIR}" - KCONFIG_CONFIG="${BUILDDIR}/.config" - - KBUILD_BUILD_USER="${KBUILD_BUILD_USER:-$PORTAGE_USERNAME}" - ) - - copt=( - CC="$(tc-getCC)" HOSTCC="${CBUILD}-gcc" CROSS_COMPILE="${CHOST}-" - ARCH="$(tc-arch-kernel)" SUBARCH="$(tc-arch-kernel)" - ) - - vopt=( - EXTRAVERSION="${KV_EXTRA}" - LOCALVERSION= CONFIG_LOCALVERSION= - V=1 - ) - - myopt=( "${bopt[@]}" "${copt[@]}" "${vopt[@]}" ) - - use build && do_prepare_build -} - -do_compile_build () { - einfo "Checking configuration file" - emake oldconfig "${myopt[@]}" < /dev/null - - if diff -Nu0 "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" \ - | egrep -q '^(\-|\+)CONFIG_' ; then - eerror "You configuration is not up to date" - diff -Nu "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" - die "Bad configuration" - fi - - einfo "Building kernel" - emake bzImage "${myopt[@]}" - - if configval MODULES ; then - einfo "Building modules" - emake modules "${myopt[@]}" - fi -} - -src_compile () { - use build && do_compile_build -} - -do_install_sources () { - kernel-2_src_install -} - -do_install_build () { - einfo "Installing kernel" - emake install "${myopt[@]}" \ - INSTALL_PATH="${WORKDIR}/boot" - - insinto "/boot/${KV_FULL}" - - newins "${WORKDIR}/boot/config-${KV_FULL}" kernel.cfg - newins "${WORKDIR}/boot/vmlinuz-${KV_FULL}" kernel.img - newins "${WORKDIR}/boot/System.map-${KV_FULL}" System.map - - if configval CMDLINE_BOOL && configval CMDLINE ; then - doins "${WORKDIR}/boot/kernel.arg" - fi - - if configval MODULES ; then - einfo "Installing modules" - emake modules_install "${myopt[@]}" \ - INSTALL_MOD_PATH="${WORKDIR}" \ - INSTALL_MOD_STRIP="${PORTAGE_STRIP_FLAGS}" - - # kmod only support zlib and lzma - # See libkmod/libkmod-util.c / struct kmod_ext kmod_exts - if use zlib || use lzma ; then - use zlib && { local cmp="gzip -9c" ; local ext="gz" ; } - use lzma && { local cmp="xz -9c" ; local ext="xz" ; } - - einfo "Compressing modules" - find "${WORKDIR}/lib/modules" \ - -type f -name "*.ko" \ - | while read ; do - ${cmp} < "${REPLY}" > "${REPLY}.${ext}" \ - || die "${cmp} ${REPLY} failed" - rm "${REPLY}" - done - fi - - einfo "Generating modules.dep" - depmod -ae -F "${BUILDDIR}/System.map" -b "${WORKDIR}" "${KV_FULL}" \ - || die "depmod failed" - - rm "${WORKDIR}/lib/modules/${KV_FULL}/build" - rm "${WORKDIR}/lib/modules/${KV_FULL}/source" - - insinto /lib - doins -r "${WORKDIR}/lib/modules" - - # No need to make firmware_install, make modules_install does - if [ -e "${WORKDIR}/lib/firmware" ] ; then - einfo "Installing firmwares" - - insinto /lib - doins -r "${WORKDIR}/lib/firmware" - fi - fi -} - -src_install () { - use build && do_install_build - use source && do_install_sources - use savedconfig && save_config "${BUILDDIR}/.config" -} - -pkg_postinst () { - kernel-2_pkg_postinst - - einfo "You may need to:" - einfo " make menuconfig ${copt[@]}" -} |