From 8835fe39b00fb8b0e1263a5afef81e4d85a9c540 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Sun, 11 Aug 2019 22:12:38 +0200 Subject: sys-kernel/genkernel: bump to v4.0.0_beta12 Signed-off-by: Thomas Deutschmann --- sys-kernel/genkernel/Manifest | 2 +- sys-kernel/genkernel/files/genkernel-4.bash | 2 +- sys-kernel/genkernel/genkernel-4.0.0_beta11.ebuild | 265 --------------------- sys-kernel/genkernel/genkernel-4.0.0_beta12.ebuild | 265 +++++++++++++++++++++ 4 files changed, 267 insertions(+), 267 deletions(-) delete mode 100644 sys-kernel/genkernel/genkernel-4.0.0_beta11.ebuild create mode 100644 sys-kernel/genkernel/genkernel-4.0.0_beta12.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/genkernel/Manifest b/sys-kernel/genkernel/Manifest index ad1a5625b98b..3e94d23f1012 100644 --- a/sys-kernel/genkernel/Manifest +++ b/sys-kernel/genkernel/Manifest @@ -24,7 +24,7 @@ DIST genkernel-3.5.2.4.tar.xz 318152 BLAKE2B 101bd8011b73699a3d8410fcb93adca2417 DIST genkernel-3.5.2.5.tar.xz 318652 BLAKE2B 9b0e1b07f61b54edc1d263cc679b36d7e9062fd1e7cf11fc9442cf60b217274bc73425150ca963b6a91cd504d7817a852fa5bf4ad7634ff8d1ec3b43748ded41 SHA512 096aa77f4a52afefcef81ff6c7eb281e539af304854572389e38bbdd735ca723c7a5f2f7163fa9f387e3a2a78a2ba117260f1c8396ed4e51e12a91ad0fb0ff90 DIST genkernel-3.5.3.2.tar.xz 320644 BLAKE2B 14eaf05aab02287c3dbb98f1a596e73bcbea39ceb2c8e44c5bdbb77b656958cee666f4353a2401bad531c2a7a98ee11b2531b251c19edc86db517cf3cc2869ec SHA512 1bee8ebdb8c2c30e90e0a1c573ad09b0eb79da54f0829859305eb50ffab95e69aa219ce82d4969140dea3d8788d66d3490fc03d38e190b533666e9278c7f96a6 DIST genkernel-3.5.3.3.tar.xz 331180 BLAKE2B 0f83b973505ccb0a92ae24e92509710bf96991f36ca55975ffefdf1bd3e835bd72bb413688468a05e6a5fff2ec16e64816f8ccfe2530c9f1e9169d19a86a2231 SHA512 9170731f59a1476aa597549ac55feb3583bed249e50d1697292571caf25c5ca746a1db9e811f2009d55aea21d739ef0ab3e385acd81504bbbccc8f7346205d71 -DIST genkernel-4.0.0_beta11.tar.xz 399760 BLAKE2B a61680dfd538d82cee9e3d9d4bf50fdbf447070419ebbe84c26aa8e69367d18ffb1eda963000a2f360b90a31002a05254e874fa0b2d0a480562c4f15bbf9467f SHA512 f8d1242d7ef0c85c8183a653a2a5a811f3fbdd31787ae53b24e954370f3999c5bff918758fedaa87ae8f6ff2a94a8ccdebafa07aea9ef60ead3412fd22af6b33 +DIST genkernel-4.0.0_beta12.tar.xz 400648 BLAKE2B 18d9efd683855b22caefc8b7ec25f3aae396ceb74c7e31f53bf91c3de41dbcef7ad4c437f3058e2cb2b47a79dfecab1ba0d0a9dd0e703796bedb125e1300f614 SHA512 ddf6650ffab732b5387aa664c7852c68c58ff493d7c3a77b0a562b5c850dea35e3d1849a70b9bbe5c4348a390532f292932b336fb75e5600a773d9c2feaa294d DIST gnupg-1.4.11.tar.bz2 3407075 BLAKE2B 85d35d2e4da65d54add1010ea0486b943b328785e28c4efcaa2b65daafd53410a355d1df79ae45c5f7767d2eb7ff1f0b9637f417e65b084d2c760a281abd317a SHA512 97e7b8b0f972cc2f7cabdb0e013cbee1c33e7d48407d040cca5c2037e32abe1c2100194be7d3b569d4f05eb16b24c205a5b83f06718f0241f8d4ee174f1c37ae DIST gnupg-1.4.22.tar.bz2 3746546 BLAKE2B 9a2d37eeab10f2a7353804098e865ad45db846696a00a47f5bebf47145f79e0d2bf9c01c0195e2fe79af07946a3feac0d4589656c3e698a3a548ff1dd74ce759 SHA512 c03acac0fa55761470bb085d78a44e2b99ebb187e8396cbb031a184b1e40bef2a40c91da07755d1a20610a3daa6aa1eefea2d12a0dbd5a79a45466166419c708 DIST gnupg-1.4.23.tar.bz2 3749353 BLAKE2B ec5e6bef0c7bb2a65813d7852cebeaa24c4855f9d9d9e802070da50b89fff56b747682933aa766dd130f849efcfe28f7aa74f3153405429bcf3845ef29c6dd6e SHA512 78dc52a2010202a4afc8814b29fda657a6c9fe230d5e7db11ae040edd2b0ca819e1baa4dbd6c0d04d36cd353df484e83f52d17759d2891c2cf7025c0b5d36612 diff --git a/sys-kernel/genkernel/files/genkernel-4.bash b/sys-kernel/genkernel/files/genkernel-4.bash index 631fc8b30e47..f72aa7a22409 100644 --- a/sys-kernel/genkernel/files/genkernel-4.bash +++ b/sys-kernel/genkernel/files/genkernel-4.bash @@ -11,7 +11,7 @@ _genkernel() prev=${COMP_WORDS[COMP_CWORD-1]} # extract initial list of params/actions from genkernel --help - genkernel_help=$(command genkernel --help) + genkernel_help=$(command genkernel --help 2>/dev/null) actions=( $(<<<"$genkernel_help" sed -n \ '/^Available Actions:/,/^$/s/^[[:space:]]\+\([^[:space:]]\+\).*/\1/p') ) params=( $(<<<"$genkernel_help" egrep -oe '--[^[:space:]]{2,}') ) diff --git a/sys-kernel/genkernel/genkernel-4.0.0_beta11.ebuild b/sys-kernel/genkernel/genkernel-4.0.0_beta11.ebuild deleted file mode 100644 index b8929b0de29a..000000000000 --- a/sys-kernel/genkernel/genkernel-4.0.0_beta11.ebuild +++ /dev/null @@ -1,265 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# genkernel-9999 -> latest Git branch "master" -# genkernel-VERSION -> normal genkernel release - -EAPI="7" - -inherit bash-completion-r1 mount-boot - -# Whenever you bump a GKPKG, check if you have to move -# or add new patches! -VERSION_BTRFS_PROGS="5.2.1" -VERSION_BUSYBOX="1.31.0" -VERSION_CRYPTSETUP="2.1.0" -VERSION_DMRAID="1.0.0.rc16-3" -VERSION_DROPBEAR="2019.78" -VERSION_EUDEV="3.2.8" -VERSION_E2FSPROGS="1.45.3" -VERSION_FUSE="2.9.9" -VERSION_GPG="1.4.23" -VERSION_ISCSI="2.0.875" -VERSION_JSON_C="0.13.1" -VERSION_LIBAIO="0.3.112" -VERSION_LIBGCRYPT="1.8.4" -VERSION_LIBGPGERROR="1.36" -VERSION_LVM="2.02.185" -VERSION_LZO="2.10" -VERSION_MDADM="4.1" -VERSION_MULTIPATH_TOOLS="0.8.0" -VERSION_POPT="1.16" -VERSION_STRACE="5.2" -VERSION_UNIONFS_FUSE="2.0" -VERSION_USERSPACE_RCU="0.10.2" -VERSION_UTIL_LINUX="2.34" -VERSION_XFSPROGS="5.1.0" -VERSION_ZLIB="1.2.11" -VERSION_ZSTD="1.4.1" - -RH_HOME="ftp://sourceware.org/pub" -DM_HOME="https://people.redhat.com/~heinzm/sw/dmraid/src" -BB_HOME="https://busybox.net/downloads" - -COMMON_URI=" - mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${VERSION_BTRFS_PROGS}.tar.xz - https://www.busybox.net/downloads/busybox-${VERSION_BUSYBOX}.tar.bz2 - mirror://kernel/linux/utils/cryptsetup/v$(ver_cut 1-2 ${VERSION_CRYPTSETUP})/cryptsetup-${VERSION_CRYPTSETUP}.tar.xz - https://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-${VERSION_DMRAID}.tar.bz2 - https://matt.ucc.asn.au/dropbear/releases/dropbear-${VERSION_DROPBEAR}.tar.bz2 - https://dev.gentoo.org/~blueness/eudev/eudev-${VERSION_EUDEV}.tar.gz - mirror://kernel/linux/kernel/people/tytso/e2fsprogs/v${VERSION_E2FSPROGS}/e2fsprogs-${VERSION_E2FSPROGS}.tar.xz - https://github.com/libfuse/libfuse/releases/download/fuse-${VERSION_FUSE}/fuse-${VERSION_FUSE}.tar.gz - mirror://gnupg/gnupg/gnupg-${VERSION_GPG}.tar.bz2 - https://github.com/open-iscsi/open-iscsi/archive/${VERSION_ISCSI}.tar.gz -> open-iscsi-${VERSION_ISCSI}.tar.gz - https://s3.amazonaws.com/json-c_releases/releases/json-c-${VERSION_JSON_C}.tar.gz - https://releases.pagure.org/libaio/libaio-${VERSION_LIBAIO}.tar.gz - mirror://gnupg/libgcrypt/libgcrypt-${VERSION_LIBGCRYPT}.tar.bz2 - mirror://gnupg/libgpg-error/libgpg-error-${VERSION_LIBGPGERROR}.tar.bz2 - https://mirrors.kernel.org/sourceware/lvm2/LVM2.${VERSION_LVM}.tgz - https://www.oberhumer.com/opensource/lzo/download/lzo-${VERSION_LZO}.tar.gz - mirror://kernel/linux/utils/raid/mdadm/mdadm-${VERSION_MDADM}.tar.xz - https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${VERSION_MULTIPATH_TOOLS};sf=tgz -> multipath-tools-${VERSION_MULTIPATH_TOOLS}.tar.gz - http://ftp.rpm.org/mirror/popt/popt-${VERSION_POPT}.tar.gz - https://github.com/strace/strace/releases/download/v${VERSION_STRACE}/strace-${VERSION_STRACE}.tar.xz - https://github.com/rpodgorny/unionfs-fuse/archive/v${VERSION_UNIONFS_FUSE}.tar.gz -> unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.gz - https://lttng.org/files/urcu/userspace-rcu-${VERSION_USERSPACE_RCU}.tar.bz2 - mirror://kernel/linux/utils/util-linux/v${VERSION_UTIL_LINUX:0:4}/util-linux-${VERSION_UTIL_LINUX}.tar.xz - mirror://kernel/linux/utils/fs/xfs/xfsprogs/xfsprogs-${VERSION_XFSPROGS}.tar.xz - https://zlib.net/zlib-${VERSION_ZLIB}.tar.gz - https://github.com/facebook/zstd/archive/v${VERSION_ZSTD}.tar.gz -> zstd-${VERSION_ZSTD}.tar.gz -" - -if [[ ${PV} == 9999* ]] ; then - EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/${PN}.git" - inherit git-r3 - S="${WORKDIR}/${P}" - SRC_URI="${COMMON_URI}" -else - SRC_URI="mirror://gentoo/${P}.tar.xz - ${COMMON_URI}" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -fi - -DESCRIPTION="Gentoo automatic kernel building scripts" -HOMEPAGE="https://www.gentoo.org" - -LICENSE="GPL-2" -SLOT="0" -RESTRICT="" -IUSE="ibm +firmware" - -# Note: -# We need sys-devel/* deps like autoconf or automake at _runtime_ -# because genkernel will usually build things like LVM2, cryptsetup, -# mdadm... during initramfs generation which will require these -# things. -DEPEND="" -RDEPEND="${DEPEND} - app-arch/cpio - >=app-misc/pax-utils-1.2.2 - app-portage/elt-patches - sys-apps/sandbox - sys-devel/autoconf - sys-devel/autoconf-archive - sys-devel/automake - sys-devel/libtool - virtual/pkgconfig - firmware? ( sys-kernel/linux-firmware ) - !/dev/null || die - git log > "${S}"/ChangeLog || die - popd >/dev/null || die - fi - - # Update software.sh - sed -i \ - -e "s:VERSION_BTRFS_PROGS:${VERSION_BTRFS_PROGS}:"\ - -e "s:VERSION_BUSYBOX:${VERSION_BUSYBOX}:"\ - -e "s:VERSION_CRYPTSETUP:${VERSION_CRYPTSETUP}:"\ - -e "s:VERSION_DMRAID:${VERSION_DMRAID}:"\ - -e "s:VERSION_DROPBEAR:${VERSION_DROPBEAR}:"\ - -e "s:VERSION_EUDEV:${VERSION_EUDEV}:"\ - -e "s:VERSION_E2FSPROGS:${VERSION_E2FSPROGS}:"\ - -e "s:VERSION_FUSE:${VERSION_FUSE}:"\ - -e "s:VERSION_GPG:${VERSION_GPG}:"\ - -e "s:VERSION_ISCSI:${VERSION_ISCSI}:"\ - -e "s:VERSION_JSON_C:${VERSION_JSON_C}:"\ - -e "s:VERSION_LIBAIO:${VERSION_LIBAIO}:"\ - -e "s:VERSION_LIBGCRYPT:${VERSION_LIBGCRYPT}:"\ - -e "s:VERSION_LIBGPGERROR:${VERSION_LIBGPGERROR}:"\ - -e "s:VERSION_LVM:${VERSION_LVM}:"\ - -e "s:VERSION_LZO:${VERSION_LZO}:"\ - -e "s:VERSION_MDADM:${VERSION_MDADM}:"\ - -e "s:VERSION_MULTIPATH_TOOLS:${VERSION_MULTIPATH_TOOLS}:"\ - -e "s:VERSION_POPT:${VERSION_POPT}:"\ - -e "s:VERSION_STRACE:${VERSION_STRACE}:"\ - -e "s:VERSION_UNIONFS_FUSE:${VERSION_UNIONFS_FUSE}:"\ - -e "s:VERSION_USERSPACE_RCU:${VERSION_USERSPACE_RCU}:"\ - -e "s:VERSION_UTIL_LINUX:${VERSION_UTIL_LINUX}:"\ - -e "s:VERSION_XFSPROGS:${VERSION_XFSPROGS}:"\ - -e "s:VERSION_ZLIB:${VERSION_ZLIB}:"\ - -e "s:VERSION_ZSTD:${VERSION_ZSTD}:"\ - "${S}"/defaults/software.sh \ - || die "Could not adjust versions" -} - -src_compile() { - if [[ ${PV} == 9999* ]] ; then - emake - fi -} - -src_install() { - insinto /etc - doins "${S}"/genkernel.conf - - doman genkernel.8 - dodoc AUTHORS ChangeLog README TODO - dobin genkernel - rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf - - if use ibm ; then - cp "${S}"/arch/ppc64/kernel-2.6{-pSeries,} || die - else - cp "${S}"/arch/ppc64/kernel-2.6{.g5,} || die - fi - - insinto /usr/share/genkernel - doins -r "${S}"/* - - fperms +x /usr/share/genkernel/gen_worker.sh - - newbashcomp "${FILESDIR}"/genkernel-4.bash "${PN}" - insinto /etc - doins "${FILESDIR}"/initramfs.mounts - - pushd "${DISTDIR}" &>/dev/null || die - insinto /usr/share/genkernel/distfiles - doins ${A/${P}.tar.xz/} - popd &>/dev/null || die -} - -pkg_postinst() { - # Wiki is out of date - #echo - #elog 'Documentation is available in the genkernel manual page' - #elog 'as well as the following URL:' - #echo - #elog 'https://wiki.gentoo.org/wiki/Genkernel' - #echo - - local replacing_version - for replacing_version in ${REPLACING_VERSIONS} ; do - if ver_test "${replacing_version}" -lt 4 ; then - # This is an upgrade which requires user review - - ewarn "" - ewarn "Genkernel v4.x is a new major release which touches" - ewarn "nearly everything. Be careful, read updated manpage" - ewarn "and pay special attention to program output regarding" - ewarn "changed kernel command-line parameters!" - - # Show this elog only once - break - fi - done - - mount-boot_mount_boot_partition - if [[ $(find /boot -name 'kernel-genkernel-*' 2>/dev/null | wc -l) -gt 0 ]] ; then - ewarn '' - ewarn 'Default kernel filename was changed from "kernel-genkernel--"' - ewarn 'to "vmlinuz-". Please be aware that due to lexical ordering the' - ewarn '*default* boot entry in your boot manager could still point to last kernel' - ewarn 'built with genkernel before that name change, resulting in booting old' - ewarn 'kernel when not paying attention on boot.' - fi - mount-boot_pkg_postinst - - # Show special warning for users depending on remote unlock capabilities - local gk_config="${EROOT%/}/etc/genkernel.conf" - if [[ -f "${gk_config}" ]] ; then - if grep -q -E "^SSH=[\"\']?yes" "${gk_config}" 2>/dev/null ; then - if ! grep -q dosshd /proc/cmdline 2>/dev/null ; then - ewarn "" - ewarn "IMPORTANT: SSH is currently enabled in your genkernel config" - ewarn "file (${gk_config}). However, 'dosshd' is missing from current" - ewarn "kernel command-line. You MUST add 'dosshd' to keep sshd enabled" - ewarn "in genkernel v4+ initramfs!" - fi - fi - - if grep -q -E "^CMD_CALLBACK=.*emerge.*@module-rebuild" "${gk_config}" 2>/dev/null ; then - elog "" - elog "Please remove 'emerge @module-rebuild' from genkernel config" - elog "file (${gk_config}) and make use of new MODULEREBUILD option" - elog "instead." - fi - fi -} diff --git a/sys-kernel/genkernel/genkernel-4.0.0_beta12.ebuild b/sys-kernel/genkernel/genkernel-4.0.0_beta12.ebuild new file mode 100644 index 000000000000..b8929b0de29a --- /dev/null +++ b/sys-kernel/genkernel/genkernel-4.0.0_beta12.ebuild @@ -0,0 +1,265 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# genkernel-9999 -> latest Git branch "master" +# genkernel-VERSION -> normal genkernel release + +EAPI="7" + +inherit bash-completion-r1 mount-boot + +# Whenever you bump a GKPKG, check if you have to move +# or add new patches! +VERSION_BTRFS_PROGS="5.2.1" +VERSION_BUSYBOX="1.31.0" +VERSION_CRYPTSETUP="2.1.0" +VERSION_DMRAID="1.0.0.rc16-3" +VERSION_DROPBEAR="2019.78" +VERSION_EUDEV="3.2.8" +VERSION_E2FSPROGS="1.45.3" +VERSION_FUSE="2.9.9" +VERSION_GPG="1.4.23" +VERSION_ISCSI="2.0.875" +VERSION_JSON_C="0.13.1" +VERSION_LIBAIO="0.3.112" +VERSION_LIBGCRYPT="1.8.4" +VERSION_LIBGPGERROR="1.36" +VERSION_LVM="2.02.185" +VERSION_LZO="2.10" +VERSION_MDADM="4.1" +VERSION_MULTIPATH_TOOLS="0.8.0" +VERSION_POPT="1.16" +VERSION_STRACE="5.2" +VERSION_UNIONFS_FUSE="2.0" +VERSION_USERSPACE_RCU="0.10.2" +VERSION_UTIL_LINUX="2.34" +VERSION_XFSPROGS="5.1.0" +VERSION_ZLIB="1.2.11" +VERSION_ZSTD="1.4.1" + +RH_HOME="ftp://sourceware.org/pub" +DM_HOME="https://people.redhat.com/~heinzm/sw/dmraid/src" +BB_HOME="https://busybox.net/downloads" + +COMMON_URI=" + mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${VERSION_BTRFS_PROGS}.tar.xz + https://www.busybox.net/downloads/busybox-${VERSION_BUSYBOX}.tar.bz2 + mirror://kernel/linux/utils/cryptsetup/v$(ver_cut 1-2 ${VERSION_CRYPTSETUP})/cryptsetup-${VERSION_CRYPTSETUP}.tar.xz + https://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-${VERSION_DMRAID}.tar.bz2 + https://matt.ucc.asn.au/dropbear/releases/dropbear-${VERSION_DROPBEAR}.tar.bz2 + https://dev.gentoo.org/~blueness/eudev/eudev-${VERSION_EUDEV}.tar.gz + mirror://kernel/linux/kernel/people/tytso/e2fsprogs/v${VERSION_E2FSPROGS}/e2fsprogs-${VERSION_E2FSPROGS}.tar.xz + https://github.com/libfuse/libfuse/releases/download/fuse-${VERSION_FUSE}/fuse-${VERSION_FUSE}.tar.gz + mirror://gnupg/gnupg/gnupg-${VERSION_GPG}.tar.bz2 + https://github.com/open-iscsi/open-iscsi/archive/${VERSION_ISCSI}.tar.gz -> open-iscsi-${VERSION_ISCSI}.tar.gz + https://s3.amazonaws.com/json-c_releases/releases/json-c-${VERSION_JSON_C}.tar.gz + https://releases.pagure.org/libaio/libaio-${VERSION_LIBAIO}.tar.gz + mirror://gnupg/libgcrypt/libgcrypt-${VERSION_LIBGCRYPT}.tar.bz2 + mirror://gnupg/libgpg-error/libgpg-error-${VERSION_LIBGPGERROR}.tar.bz2 + https://mirrors.kernel.org/sourceware/lvm2/LVM2.${VERSION_LVM}.tgz + https://www.oberhumer.com/opensource/lzo/download/lzo-${VERSION_LZO}.tar.gz + mirror://kernel/linux/utils/raid/mdadm/mdadm-${VERSION_MDADM}.tar.xz + https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${VERSION_MULTIPATH_TOOLS};sf=tgz -> multipath-tools-${VERSION_MULTIPATH_TOOLS}.tar.gz + http://ftp.rpm.org/mirror/popt/popt-${VERSION_POPT}.tar.gz + https://github.com/strace/strace/releases/download/v${VERSION_STRACE}/strace-${VERSION_STRACE}.tar.xz + https://github.com/rpodgorny/unionfs-fuse/archive/v${VERSION_UNIONFS_FUSE}.tar.gz -> unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.gz + https://lttng.org/files/urcu/userspace-rcu-${VERSION_USERSPACE_RCU}.tar.bz2 + mirror://kernel/linux/utils/util-linux/v${VERSION_UTIL_LINUX:0:4}/util-linux-${VERSION_UTIL_LINUX}.tar.xz + mirror://kernel/linux/utils/fs/xfs/xfsprogs/xfsprogs-${VERSION_XFSPROGS}.tar.xz + https://zlib.net/zlib-${VERSION_ZLIB}.tar.gz + https://github.com/facebook/zstd/archive/v${VERSION_ZSTD}.tar.gz -> zstd-${VERSION_ZSTD}.tar.gz +" + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/${PN}.git" + inherit git-r3 + S="${WORKDIR}/${P}" + SRC_URI="${COMMON_URI}" +else + SRC_URI="mirror://gentoo/${P}.tar.xz + ${COMMON_URI}" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="Gentoo automatic kernel building scripts" +HOMEPAGE="https://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +RESTRICT="" +IUSE="ibm +firmware" + +# Note: +# We need sys-devel/* deps like autoconf or automake at _runtime_ +# because genkernel will usually build things like LVM2, cryptsetup, +# mdadm... during initramfs generation which will require these +# things. +DEPEND="" +RDEPEND="${DEPEND} + app-arch/cpio + >=app-misc/pax-utils-1.2.2 + app-portage/elt-patches + sys-apps/sandbox + sys-devel/autoconf + sys-devel/autoconf-archive + sys-devel/automake + sys-devel/libtool + virtual/pkgconfig + firmware? ( sys-kernel/linux-firmware ) + !/dev/null || die + git log > "${S}"/ChangeLog || die + popd >/dev/null || die + fi + + # Update software.sh + sed -i \ + -e "s:VERSION_BTRFS_PROGS:${VERSION_BTRFS_PROGS}:"\ + -e "s:VERSION_BUSYBOX:${VERSION_BUSYBOX}:"\ + -e "s:VERSION_CRYPTSETUP:${VERSION_CRYPTSETUP}:"\ + -e "s:VERSION_DMRAID:${VERSION_DMRAID}:"\ + -e "s:VERSION_DROPBEAR:${VERSION_DROPBEAR}:"\ + -e "s:VERSION_EUDEV:${VERSION_EUDEV}:"\ + -e "s:VERSION_E2FSPROGS:${VERSION_E2FSPROGS}:"\ + -e "s:VERSION_FUSE:${VERSION_FUSE}:"\ + -e "s:VERSION_GPG:${VERSION_GPG}:"\ + -e "s:VERSION_ISCSI:${VERSION_ISCSI}:"\ + -e "s:VERSION_JSON_C:${VERSION_JSON_C}:"\ + -e "s:VERSION_LIBAIO:${VERSION_LIBAIO}:"\ + -e "s:VERSION_LIBGCRYPT:${VERSION_LIBGCRYPT}:"\ + -e "s:VERSION_LIBGPGERROR:${VERSION_LIBGPGERROR}:"\ + -e "s:VERSION_LVM:${VERSION_LVM}:"\ + -e "s:VERSION_LZO:${VERSION_LZO}:"\ + -e "s:VERSION_MDADM:${VERSION_MDADM}:"\ + -e "s:VERSION_MULTIPATH_TOOLS:${VERSION_MULTIPATH_TOOLS}:"\ + -e "s:VERSION_POPT:${VERSION_POPT}:"\ + -e "s:VERSION_STRACE:${VERSION_STRACE}:"\ + -e "s:VERSION_UNIONFS_FUSE:${VERSION_UNIONFS_FUSE}:"\ + -e "s:VERSION_USERSPACE_RCU:${VERSION_USERSPACE_RCU}:"\ + -e "s:VERSION_UTIL_LINUX:${VERSION_UTIL_LINUX}:"\ + -e "s:VERSION_XFSPROGS:${VERSION_XFSPROGS}:"\ + -e "s:VERSION_ZLIB:${VERSION_ZLIB}:"\ + -e "s:VERSION_ZSTD:${VERSION_ZSTD}:"\ + "${S}"/defaults/software.sh \ + || die "Could not adjust versions" +} + +src_compile() { + if [[ ${PV} == 9999* ]] ; then + emake + fi +} + +src_install() { + insinto /etc + doins "${S}"/genkernel.conf + + doman genkernel.8 + dodoc AUTHORS ChangeLog README TODO + dobin genkernel + rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf + + if use ibm ; then + cp "${S}"/arch/ppc64/kernel-2.6{-pSeries,} || die + else + cp "${S}"/arch/ppc64/kernel-2.6{.g5,} || die + fi + + insinto /usr/share/genkernel + doins -r "${S}"/* + + fperms +x /usr/share/genkernel/gen_worker.sh + + newbashcomp "${FILESDIR}"/genkernel-4.bash "${PN}" + insinto /etc + doins "${FILESDIR}"/initramfs.mounts + + pushd "${DISTDIR}" &>/dev/null || die + insinto /usr/share/genkernel/distfiles + doins ${A/${P}.tar.xz/} + popd &>/dev/null || die +} + +pkg_postinst() { + # Wiki is out of date + #echo + #elog 'Documentation is available in the genkernel manual page' + #elog 'as well as the following URL:' + #echo + #elog 'https://wiki.gentoo.org/wiki/Genkernel' + #echo + + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 4 ; then + # This is an upgrade which requires user review + + ewarn "" + ewarn "Genkernel v4.x is a new major release which touches" + ewarn "nearly everything. Be careful, read updated manpage" + ewarn "and pay special attention to program output regarding" + ewarn "changed kernel command-line parameters!" + + # Show this elog only once + break + fi + done + + mount-boot_mount_boot_partition + if [[ $(find /boot -name 'kernel-genkernel-*' 2>/dev/null | wc -l) -gt 0 ]] ; then + ewarn '' + ewarn 'Default kernel filename was changed from "kernel-genkernel--"' + ewarn 'to "vmlinuz-". Please be aware that due to lexical ordering the' + ewarn '*default* boot entry in your boot manager could still point to last kernel' + ewarn 'built with genkernel before that name change, resulting in booting old' + ewarn 'kernel when not paying attention on boot.' + fi + mount-boot_pkg_postinst + + # Show special warning for users depending on remote unlock capabilities + local gk_config="${EROOT%/}/etc/genkernel.conf" + if [[ -f "${gk_config}" ]] ; then + if grep -q -E "^SSH=[\"\']?yes" "${gk_config}" 2>/dev/null ; then + if ! grep -q dosshd /proc/cmdline 2>/dev/null ; then + ewarn "" + ewarn "IMPORTANT: SSH is currently enabled in your genkernel config" + ewarn "file (${gk_config}). However, 'dosshd' is missing from current" + ewarn "kernel command-line. You MUST add 'dosshd' to keep sshd enabled" + ewarn "in genkernel v4+ initramfs!" + fi + fi + + if grep -q -E "^CMD_CALLBACK=.*emerge.*@module-rebuild" "${gk_config}" 2>/dev/null ; then + elog "" + elog "Please remove 'emerge @module-rebuild' from genkernel config" + elog "file (${gk_config}) and make use of new MODULEREBUILD option" + elog "instead." + fi + fi +} -- cgit v1.2.3-65-gdbad