summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@gentoo.org>2013-05-11 06:14:36 +0000
committerFabio Erculiani <lxnay@gentoo.org>2013-05-11 06:14:36 +0000
commit6f1e2fb42d22db762a07c0e86d41d8a2ff9a801a (patch)
tree0188975b5532e53a2a1141dd32a37dbf675a782b /sys-kernel/genkernel-next
parentVersion bump. (diff)
downloadgentoo-2-6f1e2fb42d22db762a07c0e86d41d8a2ff9a801a.tar.gz
gentoo-2-6f1e2fb42d22db762a07c0e86d41d8a2ff9a801a.tar.bz2
gentoo-2-6f1e2fb42d22db762a07c0e86d41d8a2ff9a801a.zip
version bump
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key ADC916E5)
Diffstat (limited to 'sys-kernel/genkernel-next')
-rw-r--r--sys-kernel/genkernel-next/ChangeLog7
-rw-r--r--sys-kernel/genkernel-next/genkernel-next-8.ebuild105
2 files changed, 111 insertions, 1 deletions
diff --git a/sys-kernel/genkernel-next/ChangeLog b/sys-kernel/genkernel-next/ChangeLog
index 9a66172b1fea..3cd74689f723 100644
--- a/sys-kernel/genkernel-next/ChangeLog
+++ b/sys-kernel/genkernel-next/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-kernel/genkernel-next
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/genkernel-next/ChangeLog,v 1.1 2013/05/08 05:54:54 lxnay Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/genkernel-next/ChangeLog,v 1.2 2013/05/11 06:14:36 lxnay Exp $
+
+*genkernel-next-8 (11 May 2013)
+
+ 11 May 2013; Fabio Erculiani <lxnay@gentoo.org> +genkernel-next-8.ebuild:
+ version bump
*genkernel-next-7 (08 May 2013)
diff --git a/sys-kernel/genkernel-next/genkernel-next-8.ebuild b/sys-kernel/genkernel-next/genkernel-next-8.ebuild
new file mode 100644
index 000000000000..8c48f14bb7b9
--- /dev/null
+++ b/sys-kernel/genkernel-next/genkernel-next-8.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/genkernel-next/genkernel-next-8.ebuild,v 1.1 2013/05/11 06:14:36 lxnay Exp $
+
+EAPI=5
+
+if [[ "${PV}" != "9999" ]]; then
+ SRC_URI="http://dev.gentoo.org/~lxnay/genkernel-next/${P}.tar.xz"
+else
+ EGIT_COMMIT="v${PV}"
+ EGIT_REPO_URI="git://github.com/Sabayon/genkernel-next.git"
+ inherit git-2
+fi
+inherit bash-completion-r1 eutils
+
+VERSION_BUSYBOX="1.20.2"
+
+SRC_URI="${SRC_URI} http://www.busybox.net/downloads/busybox-${VERSION_BUSYBOX}.tar.bz2"
+if [[ "${PV}" == "9999" ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="Gentoo automatic kernel building scripts ('next' branch)"
+HOMEPAGE="http://www.gentoo.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+RESTRICT=""
+IUSE="crypt cryptsetup ibm selinux" # Keep 'crypt' in to keep 'use crypt' below working!
+
+DEPEND="app-text/asciidoc
+ sys-fs/e2fsprogs
+ selinux? ( sys-libs/libselinux )"
+RDEPEND="${DEPEND}
+ !sys-kernel/genkernel
+ cryptsetup? ( sys-fs/cryptsetup )
+ app-portage/portage-utils
+ app-arch/cpio
+ >=app-misc/pax-utils-0.2.1
+ !<sys-apps/openrc-0.9.9"
+
+src_prepare() {
+ use selinux && sed -i 's/###//g' "${S}"/gen_compile.sh
+
+ # Update software.sh
+ sed -i \
+ -e "s:VERSION_BUSYBOX:$VERSION_BUSYBOX:" \
+ "${S}"/defaults/software.sh \
+ || die "Could not adjust versions"
+
+ sed -i "/^GK_V=/ s:GK_V=.*:GK_V=${PV}:g" "${S}/genkernel" || \
+ die "Could not setup release"
+}
+
+src_install() {
+ insinto /etc
+ doins "${S}"/genkernel.conf || die "doins genkernel.conf"
+
+ doman genkernel.8 || die "doman"
+ dodoc AUTHORS 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}"/busybox-${VERSION_BUSYBOX}.tar.bz2 \
+ "${D}"/var/cache/genkernel/src || die "Copying distfiles..."
+
+ newbashcomp "${FILESDIR}"/genkernel.bash "${PN}"
+ insinto /etc
+ doins "${FILESDIR}"/initramfs.mounts
+}
+
+pkg_postinst() {
+ elog 'You are using an EXPERIMENTAL version of genkernel called genkernel-next'
+ elog 'Actually, it is supposed to be more polished and reliable'
+ 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
+ if use crypt && ! use cryptsetup ; then
+ ewarn "Local use flag 'crypt' has been renamed to 'cryptsetup' (bug #414523)."
+ ewarn "Please set flag 'cryptsetup' for this very package if you would like"
+ ewarn "to have genkernel create an initramfs with LUKS support."
+ echo
+ fi
+
+ elog "Genkernel-Next depends on the following optional packages:"
+ elog "- app-crypt/gnupg: when called with --gpg"
+ elog "- sys-block/open-iscsi: when called with --iscsi"
+ elog "- sys-boot/plymouth: when called with --plymouth"
+ elog "- sys-fs/dmraid: when called with --dmraid"
+ elog "- sys-fs/lvm2: when called with --lvm"
+}