From 54dfc22554b88d837f58653debf58603566dccc6 Mon Sep 17 00:00:00 2001 From: KireinaHoro Date: Tue, 3 Jul 2018 00:55:37 +0800 Subject: sys-kernel/preinit: bump to 0.5 Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- sys-kernel/preinit/Manifest | 4 +-- sys-kernel/preinit/preinit-0.4.ebuild | 48 ----------------------------------- sys-kernel/preinit/preinit-0.5.ebuild | 48 +++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 sys-kernel/preinit/preinit-0.4.ebuild create mode 100644 sys-kernel/preinit/preinit-0.5.ebuild diff --git a/sys-kernel/preinit/Manifest b/sys-kernel/preinit/Manifest index f04b795..7d83ec1 100644 --- a/sys-kernel/preinit/Manifest +++ b/sys-kernel/preinit/Manifest @@ -1,3 +1,3 @@ -DIST preinit-0.4.tar.gz 14437 BLAKE2B 2c6ae18b80285e924d07aaf30f1e096c3a5e36fe64d5443e9099560c2ebc3dc85a8c3ff34578056e7c4bd0c4a66f53b74bd53ad4e34bae082de254136aa56bdf SHA512 07de8129090a9d26ebf2fb0bf13f73e11780f4e992fce40af98a478506c6b6e4c34f65ecdaa019f4066eb6d7725ef45d323f02e4f069f3b6fc3fb0f7929037b5 -EBUILD preinit-0.4.ebuild 1477 BLAKE2B 13848f77810f76e1d53efa44ff71d2d9f7d9a696dfa665772b7213c2afbf82cbaab77b1202b758a7648971f560db88a09cf54eacc194734b14b8da7f88184b8d SHA512 4abb3b51a3d80f2f2c8c691723dc2234f8d98d4bc65ac726e7cebe0ac1ada810555d80e691e6523ec448b5dc8f6dfb4dcf88483730a8fc8081a370ee88179532 +DIST preinit-0.5.tar.gz 14450 BLAKE2B 8a355c943060f96f24014414f93285a90a5b0f691efcae9814311eb3ed0797b7ffbd870d97a328591a8f55976263f221118422e04052e4819daaef1a6e0e67f4 SHA512 7cf7d4f18d3349769f73747546e31192dcf36a6150769abcf5b2330c95c4ab0052ad446ac491459acfa5f63eda1aad9379ffb992051a58f70df27a3d79832c86 +EBUILD preinit-0.5.ebuild 1485 BLAKE2B d9a231908fa03c711418f113765ad6f28cadd318409cd01e2826e805ee48c593eed50ec978b034c105bdbc526fa36b3da38fbfbb89f79cabc851b9546dc152b7 SHA512 21ebd91bb0983c3237f058a30bebb923b2c1a218c6a978ba04ac9af7fd2e4f4e15f77715b7f3cf7c3544c79735b6dc8679d2c5a7dc91eecb06bf2a0c1a49e443 MISC metadata.xml 400 BLAKE2B 798f691229a445bf0a1890fa693c5b145dffab28d4a3f9ddaa1d10e68158f16cee04229bd944d54c1a12c35eb7bf5ba5922e387910b0a930bb8a964f10af7a82 SHA512 05282919ebaf24720af3ead93629fef29e1c253680fefd4169bb823c570c55a612292636193c15cd940bb69de23524f7c521b1a4dbc0aa1ab640b1a3093c7c9a diff --git a/sys-kernel/preinit/preinit-0.4.ebuild b/sys-kernel/preinit/preinit-0.4.ebuild deleted file mode 100644 index e03cb62..0000000 --- a/sys-kernel/preinit/preinit-0.4.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Preinit files for Portage-powered Android systems" -HOMEPAGE="https://github.com/KireinaHoro/preinit" -SRC_URI="https://github.com/KireinaHoro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~arm64" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND} -sys-apps/busybox[static] -" - -src_install() { - insinto /usr/share/eselect/modules - doins preinit.eselect - insinto /usr/lib/preinit/devices - cd devices - for a in *; do - doins -r $a - done -} - -pkg_postinst() { - device=$(sed -E -n 's/.*androidboot.hardware=(\S*).*/\1/p' /proc/cmdline) - if [ -d "/usr/lib/preinit/$device" ] ; then - eselect preinit set $device - einfo "Preinit files selected for device $device. If this device is not" - einfo "$device, choose the correct one with \`eselect preinit set \`." - else - if [ -z "$device" ] ; then - ewarn "We failed to detect the device codename, thus we're unable to select preinit" - ewarn "files for this device. To manually select, run \`eselect preinit list\` and" - ewarn "select accordingly." - else - ewarn "The device $device is not yet supported by preinit. Create your own initramfs" - ewarn "and bootimg.cfg according to $HOMEPAGE ," - ewarn "place them in /usr/lib/preinit/custom, and then select 'custom' with \`eselect" - ewarn "preinit set custom\`. Create pull request to add a working device." - fi - fi -} diff --git a/sys-kernel/preinit/preinit-0.5.ebuild b/sys-kernel/preinit/preinit-0.5.ebuild new file mode 100644 index 0000000..3089784 --- /dev/null +++ b/sys-kernel/preinit/preinit-0.5.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Preinit files for Portage-powered Android systems" +HOMEPAGE="https://github.com/KireinaHoro/preinit" +SRC_URI="https://github.com/KireinaHoro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~arm64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} +sys-apps/busybox[static] +" + +src_install() { + insinto /usr/share/eselect/modules + doins preinit.eselect + insinto /usr/lib/preinit/devices + cd devices + for a in *; do + doins -r $a + done +} + +pkg_postinst() { + device=$(sed -E -n 's/.*androidboot.hardware=(\S*).*/\1/p' /proc/cmdline) + if [ -d "/usr/lib/preinit/devices/$device" ] ; then + eselect preinit set $device + einfo "Preinit files selected for device $device. If this device is not" + einfo "$device, choose the correct one with \`eselect preinit set \`." + else + if [ -z "$device" ] ; then + ewarn "We failed to detect the device codename, thus we're unable to select preinit" + ewarn "files for this device. To manually select, run \`eselect preinit list\` and" + ewarn "select accordingly." + else + ewarn "The device $device is not yet supported by preinit. Create your own initramfs" + ewarn "and bootimg.cfg according to $HOMEPAGE ," + ewarn "place them in /usr/lib/preinit/custom, and then select 'custom' with \`eselect" + ewarn "preinit set custom\`. Create pull request to add a working device." + fi + fi +} -- cgit v1.2.3-65-gdbad