Skip to content

Commit

Permalink
Version bumps of rhel-sources
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Yao <[email protected]>
  • Loading branch information
ryao committed Oct 4, 2014
1 parent 4c235d2 commit 4bb39e7
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys-kernel/rhel-sources/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ DIST kernel-2.6.32-431.11.2.el6.src.rpm 95488206 SHA256 150ab4a18e2e57d1e758934a
DIST kernel-2.6.32-431.11.2.el6.x86_64.rpm 29052668 SHA256 180db0d389a84dc4d487f4aa6abc560a8f7d5a57f8e58806a261a505fec7fb02 SHA512 b1a442127cbe26817c11cb86518550c69aeeadafd3e6e8f2f4ac46f74a65b301db096b6aca06296e888f84a348040526dca9107db35896717aa08d8bb9e0d67c WHIRLPOOL e2a43d51cefab4541672804d4f30359e38f55c813538bd97818eb879d59a62114d5bbf325c458fc6d0b43d639d493aef2e551cb1cf7129193bcbd3246cb5738d
DIST kernel-2.6.32-431.17.1.el6.src.rpm 95504558 SHA256 78550cc813c7a549d2faf9465e7498644ca36efe9a59383b49df4138595090b6 SHA512 93c096afc3f8078a037feec6b8aaeb41ebb4b6bc026ffdf4c341610065579560b0d4a6bd20b7ac8b3df2ca6d66861432fc1e4c6d7c0ead7237794963e4d91300 WHIRLPOOL 485662e4dd09594e20e76e85741217482b35a039a34ec37de89c25f0baaae824f00a62765de25be0085e31d3f0f16a672d21db7029d2ec062e944967988fd6c5
DIST kernel-2.6.32-431.17.1.el6.x86_64.rpm 29069636 SHA256 c1342c8ceb9dd2b5f81e9a6775d4b51156b0389fad1499413165fb18ccd805e1 SHA512 2d570d45c93dd51c9692e8fb38e01e21c3955fe7bd03037ddb663173e2a65fbe658e82110508eee813b36107d89a2836fdd721288cc9297631a5462dc9e28ba7 WHIRLPOOL dc77877ec39942bfb4f2e6a0a5cc4bef91e4d52a50876f3e95c166bab4a07e8307ded11f4d8726f62492f421e09a545d4b6986b3d8971ec99a05e3094ef168b9
DIST kernel-2.6.32-431.29.2.el6.src.rpm 95521965 SHA256 fc5ebe9e5d886b6d7cc0ec8dd6c670c7d656df371dcb16b121791449e11ca1c9 SHA512 6148080628fd16e34fe64d0ed03c3a809895ee0b5f6345252391b8cbf1c296065c5e21f7101cf4e2f69d5ad8c5ed5c776dab877a7b9cdcd27d1846810867d94e WHIRLPOOL dfbfac6867eb5f5db709f5a48881822de5aac465e5d5bd1f9fdc3ecafd00a88a287c212e0d142dddd79547d97a77598d3e3532142e5c5aabf16d1f37e51a8e86
DIST kernel-2.6.32-431.29.2.el6.x86_64.rpm 29090988 SHA256 807aadb14547c3a8d2ac625797bc351366c948ac54a8d887d3bc7009bbfb3570 SHA512 73e29466492d3e0ad6a564321d5d3c32f5c04d8c9141a198f0cf4a1c2e896b9576c7467f422bc1a7b1573a2bae4314a516f4e8475d4e8d56f606863a5a5de8ed WHIRLPOOL 190dd363f042686cad9dd0a0d96ca6ee47ad27b7b55a8d784329f1d8f85bd19d0b6147fac0f9f55bf46df6bdc499941bb83407385c6f8a58549a3f693c2fc97b
DIST kernel-3.10.0-123.4.4.el7.src.rpm 77676726 SHA256 c86f63cac1effe2f2ef8d0731a4e5f0191ba93c8314fff2a94ca1e52f35a7000 SHA512 cc88854ecd1d5862bf9d74b1ec3da806732bbcf4354737ca92d9c11259fb6b52b4884dcb1aa01cff26db9c7d2582db22853fb20c2e820ebebf3f1b630870e3df WHIRLPOOL 7ec414267e57163bc705a6b63b571e951747d30c93e626efa545f875761343af31eafd7350a6ce74922de1a15c8a7c9fe19e3bf30a527697b5a1454c654d446e
DIST kernel-3.10.0-123.4.4.el7.x86_64.rpm 30275244 SHA256 89f68da867001aec6065d78b9ab206995fcb1594c022d69842624cb1679dd2f4 SHA512 f5925f422a0c1c5b09cc3273279d6009cca2f5206f79eb433a43b4013bb4dbb222b4e7d3482f76d6fb69ea2f31d71369cf5f873a88a8be47c3bc446d8b541c52 WHIRLPOOL cf74c302adac3d8bd8102f1f82f334df0a273d5d334285200b4d0c7481cda2683c82c05cf40bdf38e36945aaa898292814f15160b2c51bd02ac927c6297bf8ee
DIST kernel-3.10.0-123.6.3.el7.src.rpm 77681037 SHA256 7294b50ea24b9c3c13b79123f943f0e1b329f65a1550fa37d1d9e5a803a77181 SHA512 9413b78c706127d5efc3ad543544df8f8a49b5ad88ea32c147f6b5ed1ea700f1e7ea32aac8356bc3b0e8dd6bd266b9a7d2b64ac37b49c8a3a075b62b7a8b0591 WHIRLPOOL d3d4ca3c4c9a7da6abf7df2f3b10aa32e9f241b82dff803294c95a2e196ec442e731b45df55e8cfdad581ebcb1d2078d66791cb5ddca5024afa013966cdf3f5f
DIST kernel-3.10.0-123.6.3.el7.x86_64.rpm 30279744 SHA256 d1bcb6743886e4989289fbd25314aa84c9f9fbbffd5d3228a7843b470ee64a47 SHA512 a4e2603b9db12930470b93ebc9ef0348c783e80686dd86d4cf56e5eb8cc5d768459cc021036ade1cfdf2e0ce4f7fbd38491db32c7551615d3ae0bd29210ba02d WHIRLPOOL 6737634960eb6668ce2a087cc89be1d1780dd5fc0bf4c4b8f4b118c11b4e40c0de991535f3a4beca3010eac89ee62dc5f0c2cbbf411ad4482325d3e36bda69b8
73 changes: 73 additions & 0 deletions sys-kernel/rhel-sources/rhel-sources-2.6.32.431.29.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/vanilla-sources/vanilla-sources-3.3.1.ebuild,v 1.1 2012/04/03 16:04:23 mpagano Exp $

EAPI="5"
SLOT="6/${PV}"
inherit rpm versionator

RV="$(replace_version_separator 3 '-' $PV).el6"

DESCRIPTION="Full sources for the RHEL6 kernel"
HOMEPAGE="http://www.redhat.com/"
SRC_URI="ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/kernel-${RV}.src.rpm"
SRC_URI="${SRC_URI} ftp://ftp.muug.mb.ca/mirror/centos/6.5/updates/x86_64/Packages/kernel-${RV}.x86_64.rpm"

KEYWORDS="~amd64"
IUSE="binary +config"
RESTRICT="strip test"
LICENSE="GPL-2"
MULTILIB_STRICT_DENY=true

DEPEND="${DEPEND}
app-arch/cpio"

src_unpack () {
cd "${T}"
rpm_src_unpack "${DISTDIR}/kernel-${RV}.x86_64.src.rpm"
ln -s "${T}/linux-${RV}" "${S}"
}

src_prepare () {
cd "${T}"
sed -i \
-e "s:^\(CONFIG_LOCALVERSION=\"\)\(.*\)\":\1-${RV#*-}.x86_64\":g" \
"./boot/config-$RV.x86_64"
cd "${S}"
epatch "${FILESDIR}/${PN}-pmcraid-duplicate-sense-buffer.patch"
epatch "${FILESDIR}/${PN}-gcc-4.6.patch"
epatch "${FILESDIR}/${PN}-fix-9p-virtio-rootfs-support.patch"
epatch_user
}

src_configure() {
:
}

src_compile() {
#$(tc-getCC) -o scripts/bin2c scripts/bin2c.c
#scripts/bin2c ksign_def_public_key __initdata >crypto/signature/key.h
:
}

src_install () {
cd "${T}"
use binary && find {boot,lib} | cpio -dumpl "${D}"
dodir /usr/src
find "linux-$RV" | cpio -dumpl "${D}/usr/src" 2>/dev/null
chmod 755 "${D}/usr/src/linux-$RV"
use config && ln "./boot/config-$RV.x86_64" "${D}/usr/src/linux-$RV/.config"
insinto "/usr/src/linux-$RV/crypto/signature"
doins "${FILESDIR}/key.h"

#if use config
#then
# ewarn "The CentOS .config file has been installed. Unless you can"
# ewarn "generate crypto/signature/key.h, you will want to disable the"
# ewarn "following in menuconfig:"
# ewarn "CONFIG_CRYPTO_SIGNATURE"
# ewarn "CONFIG_CRYPTO_SIGNATURE_DSA"
# ewarn "CONFIG_CHECK_SIGNATURE"
# ewarn "Otherwise, your kernel will not compile. You have been warned."
#fi
}
76 changes: 76 additions & 0 deletions sys-kernel/rhel-sources/rhel-sources-3.10.0.123.4.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/vanilla-sources/vanilla-sources-3.3.1.ebuild,v 1.1 2012/04/03 16:04:23 mpagano Exp $

EAPI="5"
SLOT="7/${PV}"
inherit rpm unpacker versionator

RV="$(replace_version_separator 3 '-' $PV).el7"

DESCRIPTION="Full sources for the RHEL7 kernel"
HOMEPAGE="http://www.redhat.com/"
SRC_URI="http://vault.centos.org/7.0.1406/updates/Source/SPackages/kernel-${RV}.src.rpm"
SRC_URI="${SRC_URI} ftp://ftp.muug.mb.ca/mirror/centos/7.0.1406/updates/x86_64/Packages/kernel-${RV}.x86_64.rpm"

KEYWORDS="amd64"
IUSE="binary +config"
RESTRICT="strip test"
LICENSE="GPL-2"
MULTILIB_STRICT_DENY=true

DEPEND="${DEPEND}
app-arch/cpio"

use binary && export QA_PREBUILT=*

src_unpack () {
cd "${T}"
rpm_src_unpack "${DISTDIR}/kernel-${RV}.x86_64.src.rpm"
ln -s "${T}/linux-${RV}" "${S}"
cd "${T}"
unpacker "linux-${RV}.tar.xz"
rm "linux-${RV}/configs"
}

src_prepare () {
cd "${T}"
sed -i \
-e "s:^\(CONFIG_LOCALVERSION=\"\)\(.*\)\":\1-${RV#*-}.x86_64\":g" \
"./boot/config-$RV.x86_64"
cd "${S}"
epatch "${FILESDIR}/${PN}-el7-fix-9p-virtio-rootfs-support.patch"
epatch_user
}

src_configure() {
:
}

src_compile() {
#$(tc-getCC) -o scripts/bin2c scripts/bin2c.c
#scripts/bin2c ksign_def_public_key __initdata >crypto/signature/key.h
:
}

src_install () {
cd "${T}"
use binary && find {boot,lib} | cpio -dumpl "${D}"
dodir /usr/src
find "linux-$RV" | cpio -dumpl "${D}/usr/src" 2>/dev/null
chmod 755 "${D}/usr/src/linux-$RV"
use config && ln "./boot/config-$RV.x86_64" "${D}/usr/src/linux-$RV/.config"
insinto "/usr/src/linux-$RV/crypto/signature"
doins "${FILESDIR}/key.h"

#if use config
#then
# ewarn "The CentOS .config file has been installed. Unless you can"
# ewarn "generate crypto/signature/key.h, you will want to disable the"
# ewarn "following in menuconfig:"
# ewarn "CONFIG_CRYPTO_SIGNATURE"
# ewarn "CONFIG_CRYPTO_SIGNATURE_DSA"
# ewarn "CONFIG_CHECK_SIGNATURE"
# ewarn "Otherwise, your kernel will not compile. You have been warned."
#fi
}

0 comments on commit 4bb39e7

Please sign in to comment.