Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FL-531: genkernel-3.4.40.4 to fix ZFS boot issue

  • Loading branch information...
commit e903b739284eea1e6039a9ad07bf313de2cb7c66 1 parent 9123e56
Daniel Robbins danielrobbins authored
1  sys-kernel/genkernel/Manifest
View
@@ -4,6 +4,7 @@ DIST e2fsprogs-1.42.tar.gz 5709827 SHA256 55b46db0cec3e2eb0e5de14494a88b01ff6c05
DIST fuse-2.8.6.tar.gz 505334 SHA256 1ec1913e38f09b2a9ec1579e1800805b5e2c747d1dce515e316dbb665ca139d6 SHA512 03cacc45c8ba6700fcdfa9064ef4e10d3ad6fc0e4fc49d41693de2caf03d44513d449b00a7c5d200d055d9481821252509259f5f3d2d6127fa51957a006a90fd WHIRLPOOL 668c01f5ae9742f3e70248d6d2b57cbeaa0decf93d5f7987550fe54d4ebdb6e445ff841e8d36a60a4824c114651b8a93b118e15b8a00ac30ddc813e583fa2b51
DIST genkernel-v3.4.40.1-funtoo.tar.gz 292775 SHA256 8fd49125f0e195b0f4eed3db5cfb3f3ac7d66f25d54299af2d716d70cdf2f757 SHA512 437ea9ac6e2e5e6244e4d129e35a57bcce33bbd380f461cd02b5a1b7f426c6b305f1298335a07146305102dea36cbfe607251a9a95f678ac973a26cf5aa75f0a WHIRLPOOL 8039a6cd749380affa19bf274d29253a1e4a4724e2948f4334691a21ed09867cac88a7e25efaa929c54e5e00260209647ea5b7a437f3b7c7b2a3aba2ef6ce4ba
DIST genkernel-v3.4.40.3-funtoo.tar.gz 292915 SHA256 5eb74a207c4fd960d5303e999865cd68d3a7426fc0eecca777023bd933a2a541 SHA512 65117b3364411a1497e5d82d9c1667de0d92ad7ea2827169c3e4cc9143bdce3f51891de6f8f23c98604f2e71d7a35e36172f8c94efa711e1e4d65e634ccf32f9 WHIRLPOOL fd621062065ecf2dfa4bf2ebe1772e543daa60cbf1047e2c9c8a652ff34c37f196a9c10e1996a4984b7e3ff4d474de9d6256915f72b0a5aea44eddece991237e
+DIST genkernel-v3.4.40.4-funtoo.tar.gz 292916 SHA256 f6ac858826745efcb7b679e63b4544c9cee8723c0e5ac189cae82ed01b3c9a77 SHA512 a036257abf52f4eff6cfd65439e847a1d033f210b0492e49c4491191f597f9d6406f0f9707d613cb877f166ba326e7a91be019dbb466448f6a64b90977dca736 WHIRLPOOL 01a273703fd57dfea64504a1c6604b829e8dbcbcd27c4f3b0d5d6fc3ee253078d90e901ab05e07be62796eb4ac51d0a01422f1244a63d7ff1b3010115d3758be
DIST gnupg-1.4.11.tar.bz2 3407075 SHA256 d18ceeac16e554a501170b9bfde611625252d0fe9448685a69c93bf149ee6ef6 SHA512 97e7b8b0f972cc2f7cabdb0e013cbee1c33e7d48407d040cca5c2037e32abe1c2100194be7d3b569d4f05eb16b24c205a5b83f06718f0241f8d4ee174f1c37ae WHIRLPOOL 6f914627e2f527f6616e1f99d2ae06942b734f839d03a45ffa45bf67516a81d58f89e6a85612cf8e5fd83be04ab0b6bc2da8f81114143dad7523e5fcea62366b
DIST open-iscsi-2.0-872.tar.gz 900081 SHA256 37753697a170223ac02a292b3a23a315a3c747b490c42480e4057b676c9f8d4f SHA512 d26c87772b0b1d13a8bd2eea9db86b3c61af83efbb788116c01ab6a914ff3de634a7b1bff56c1161b28965315543edbfc2735b6c7fbd3f7797471fde63b69cc0 WHIRLPOOL 4b04c8481c6c5f094ca6f7761828006a84eda7a22a6b3a4d65e7b3e4b39e73ef839ec710b491e7ca731b047fa8c74a9c03a17e85519a62dfbeb95222cfbdd935
DIST unionfs-fuse-0.24.tar.bz2 30381 SHA256 d8abc855eb618ac356b1e716599c82f8f0f74dbaee36d4062edc707567121937 SHA512 e0e414f4edbf641ec9d0135a8723e43fc75412359b482f7aedd66fe8245e4df03943c5ecb6f8de4fdbd97f0346033c691e766cc4f4a755f5b43748e1441d3fbd WHIRLPOOL dc132086d9614895961dc8b498c435145b4390fc80331e0575ee8420faea0201325ab2394b9090d8f721c602ef1f93e150573b1b88b77ee4f7be4a262103b986
159 sys-kernel/genkernel/genkernel-3.4.40.4.ebuild
View
@@ -0,0 +1,159 @@
+# Distributed under the terms of the GNU General Public License v2
+
+# genkernel-9999 -> latest Git branch "master"
+# genkernel-VERSION -> normal genkernel release
+
+EAPI="3"
+
+VERSION_BUSYBOX='1.20.1'
+VERSION_DMRAID='1.0.0.rc16-3'
+VERSION_MDADM='3.1.5'
+VERSION_E2FSPROGS='1.42'
+VERSION_FUSE='2.8.6'
+VERSION_ISCSI='2.0-872'
+VERSION_UNIONFS_FUSE='0.24'
+VERSION_GPG='1.4.11'
+
+MY_HOME="http://www.funtoo.org/archive/${PN}"
+RH_HOME="ftp://sources.redhat.com/pub"
+DM_HOME="http://people.redhat.com/~heinzm/sw/dmraid/src"
+BB_HOME="http://www.busybox.net/downloads"
+
+COMMON_URI="${DM_HOME}/dmraid-${VERSION_DMRAID}.tar.bz2
+ ${DM_HOME}/old/dmraid-${VERSION_DMRAID}.tar.bz2
+ ${BB_HOME}/busybox-${VERSION_BUSYBOX}.tar.bz2
+ http://www.open-iscsi.org/bits/open-iscsi-${VERSION_ISCSI}.tar.gz
+ mirror://sourceforge/e2fsprogs/e2fsprogs-${VERSION_E2FSPROGS}.tar.gz
+ mirror://sourceforge/fuse/fuse-${VERSION_FUSE}.tar.gz
+ http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.bz2
+ mirror://gnupg/gnupg/gnupg-${VERSION_GPG}.tar.bz2"
+
+GITHUB_REPO="${PN}"
+GITHUB_USER="funtoo"
+GITHUB_TAG="v${PVR}-funtoo"
+
+if [[ ${PV} == 9999* ]]
+then
+ EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git
+ http://git.overlays.gentoo.org/gitroot/proj/${PN}.git"
+ inherit git-2 bash-completion-r1 eutils
+ S="${WORKDIR}/${PN}"
+ SRC_URI="${COMMON_URI}"
+ KEYWORDS=""
+else
+ inherit bash-completion-r1 eutils
+ SRC_URI="https://www.github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz
+ ${COMMON_URI}"
+ KEYWORDS="*"
+fi
+
+DESCRIPTION="Gentoo automatic kernel building scripts"
+HOMEPAGE="http://www.gentoo.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+RESTRICT=""
+IUSE="+cryptsetup ibm selinux"
+
+DEPEND="sys-fs/e2fsprogs
+ selinux? ( sys-libs/libselinux )"
+RDEPEND="${DEPEND}
+ cryptsetup? ( sys-fs/cryptsetup )
+ sys-fs/lvm2
+ sys-fs/mdadm
+ app-misc/pax-utils
+ !<sys-apps/openrc-0.9.9"
+# pax-utils is used for lddtree
+# cpio is part of Funtoo @system set
+
+if [[ ${PV} == 9999* ]]; then
+ DEPEND="${DEPEND} app-text/asciidoc"
+fi
+
+src_unpack() {
+ if [[ ${PV} == 9999* ]] ; then
+ git-2_src_unpack
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ cd "${WORKDIR}"/${GITHUB_USER}-${PN}-*
+ S="$(pwd)"
+ use selinux && sed -i 's/###//g' "${S}"/gen_compile.sh
+}
+
+src_compile() {
+ return
+}
+
+src_compile() {
+ if [[ ${PV} == 9999* ]]; then
+ emake || die
+ fi
+}
+
+src_install() {
+ # This block updates genkernel.conf
+ sed \
+ -e "s:VERSION_BUSYBOX:$VERSION_BUSYBOX:" \
+ -e "s:VERSION_MDADM:$VERSION_MDADM:" \
+ -e "s:VERSION_DMRAID:$VERSION_DMRAID:" \
+ -e "s:VERSION_E2FSPROGS:$VERSION_E2FSPROGS:" \
+ -e "s:VERSION_FUSE:$VERSION_FUSE:" \
+ -e "s:VERSION_ISCSI:$VERSION_ISCSI:" \
+ -e "s:VERSION_UNIONFS_FUSE:$VERSION_UNIONFS_FUSE:" \
+ -e "s:VERSION_GPG:$VERSION_GPG:" \
+ "${S}"/genkernel.conf > "${T}"/genkernel.conf \
+ || die "Could not adjust versions"
+ insinto /etc
+ doins "${T}"/genkernel.conf || die "doins genkernel.conf"
+
+ doman genkernel.8 || die "doman"
+ dodoc AUTHORS ChangeLog README TODO || die "dodoc"
+
+ dobin genkernel || die "dobin genkernel"
+
+ rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf
+
+ insinto /usr/share/genkernel
+ doins -r "${S}"/* || die "doins"
+ use ibm && cp "${S}"/ppc64/kernel-2.6-pSeries "${S}"/ppc64/kernel-2.6 || \
+ cp "${S}"/arch/ppc64/kernel-2.6.g5 "${S}"/arch/ppc64/kernel-2.6
+
+ # Copy files to /var/cache/genkernel/src
+ elog "Copying files to /var/cache/genkernel/src..."
+ mkdir -p "${D}"/var/cache/genkernel/src
+ cp -f \
+ "${DISTDIR}"/dmraid-${VERSION_DMRAID}.tar.bz2 \
+ "${DISTDIR}"/e2fsprogs-${VERSION_E2FSPROGS}.tar.gz \
+ "${DISTDIR}"/busybox-${VERSION_BUSYBOX}.tar.bz2 \
+ "${DISTDIR}"/fuse-${VERSION_FUSE}.tar.gz \
+ "${DISTDIR}"/unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.bz2 \
+ "${DISTDIR}"/gnupg-${VERSION_GPG}.tar.bz2 \
+ "${DISTDIR}"/open-iscsi-${VERSION_ISCSI}.tar.gz \
+ "${D}"/var/cache/genkernel/src || die "Copying distfiles..."
+
+ newbashcomp "${FILESDIR}"/genkernel.bash "${PN}"
+ insinto /etc
+ doins "${FILESDIR}"/initramfs.mounts
+}
+
+pkg_postinst() {
+ echo
+ elog 'Documentation is available in the genkernel manual page'
+ elog 'as well as the following URL:'
+ echo
+ elog 'http://www.gentoo.org/doc/en/genkernel.xml'
+ echo
+ ewarn "This package is known to not work with reiser4. If you are running"
+ ewarn "reiser4 and have a problem, do not file a bug. We know it does not"
+ ewarn "work and we don't plan on fixing it since reiser4 is the one that is"
+ ewarn "broken in this regard. Try using a sane filesystem like ext3 or"
+ ewarn "even reiser3."
+ echo
+ ewarn "The LUKS support has changed from versions prior to 3.4.4. Now,"
+ ewarn "you use crypt_root=/dev/blah instead of real_root=luks:/dev/blah."
+ echo
+}
Please sign in to comment.
Something went wrong with that request. Please try again.