1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 13:52:40 +01:00

Compare commits

..

4 Commits

9 changed files with 211 additions and 17 deletions

View File

@@ -0,0 +1,14 @@
BDEPEND=sys-apps/util-linux
DEFINED_PHASES=compile install postinst postrm preinst prepare prerm pretend
DEPEND=sys-boot/grub:2=[fonts]
DESCRIPTION=Make GRUB EFI boot image
EAPI=8
HOMEPAGE=https://www.gentoo.org/
INHERIT=mount-boot
IUSE=+grub_platforms_efi-64 grub_platforms_efi-32
KEYWORDS=-* ~amd64 ~x86
LICENSE=GPL-3
RDEPEND=sys-boot/grub:2=[fonts]
SLOT=0
_eclasses_=mount-boot 02a45c5e022c08dbc05178522b2772f2
_md5_=6e6b874f7f9e02e85a7ef338683010f7

View File

@@ -1,16 +0,0 @@
BDEPEND=virtual/pkgconfig gnome? ( gnome-base/gnome-control-center:2 ) systemd? ( sys-apps/systemd ) vala? ( || ( dev-lang/vala:0.56[vapigen(+)] ) ) >=dev-util/meson-0.62.2 >=dev-util/ninja-1.8.2 dev-util/meson-format-array
DEFINED_PHASES=compile configure install postinst postrm prepare test
DEPEND=dev-libs/appstream-glib >=dev-libs/glib-2.7:2 sys-apps/dbus >=x11-libs/gdk-pixbuf-2.34:2 >=x11-libs/gtk+-3.24:3 x11-libs/libX11 x11-libs/libXi x11-libs/pango gnome? ( >=x11-wm/mutter-41.3 ) introspection? ( dev-libs/gjs >=dev-libs/gobject-introspection-1.48.0 >=x11-wm/mutter-41.3[introspection] )
DESCRIPTION=Clipboard management system
EAPI=7
HOMEPAGE=https://github.com/Keruspe/GPaste
INHERIT=meson vala gnome2-utils
IUSE=+gnome +introspection systemd vala
KEYWORDS=~amd64 ~x86
LICENSE=GPL-3
RDEPEND=dev-libs/appstream-glib >=dev-libs/glib-2.7:2 sys-apps/dbus >=x11-libs/gdk-pixbuf-2.34:2 >=x11-libs/gtk+-3.24:3 x11-libs/libX11 x11-libs/libXi x11-libs/pango gnome? ( >=x11-wm/mutter-41.3 ) introspection? ( dev-libs/gjs >=dev-libs/gobject-introspection-1.48.0 >=x11-wm/mutter-41.3[introspection] ) gnome? ( gnome-base/gnome-control-center:2 gnome-base/gnome-shell ) systemd? ( sys-apps/systemd )
REQUIRED_USE=gnome? ( introspection ) vala? ( introspection )
SLOT=0
SRC_URI=https://github.com/Keruspe/GPaste/archive/v43.0.tar.gz -> gpaste-43.0.tar.gz
_eclasses_=eapi8-dosym cd7d420bb5be5ee079f27239ce76b8f5 gnome2-utils 3eaa1386ddbbbbb3951256d4b170fba3 meson 1994a5aef5d4f5798b92f64d6f9a6003 multilib 5ca4e49abed8e3a2f7b56920eadee157 multiprocessing b4e253ab22cef7b1085e9b67c7a3b730 ninja-utils 38c85b725d0467e51954ea921b6c104b python-utils-r1 429bfd4e8d8e39db5385ba5744f30788 toolchain-funcs 9a610728b9bcca1919234cceb35a1027 vala 2633382950a3a9ce912c9258150d5db8 xdg-utils ac0e315a3688929e34ac75b139e7349a
_md5_=71578bdaa0df9df4a7f78913e4eb5628

View File

@@ -11,6 +11,6 @@ LICENSE=GPL-3
RDEPEND=dev-libs/appstream-glib >=dev-libs/glib-2.7:2 sys-apps/dbus >=x11-libs/gdk-pixbuf-2.34:2 >=x11-libs/gtk+-3.24:3 x11-libs/libX11 x11-libs/libXi x11-libs/pango gnome? ( >=x11-wm/mutter-41.3 ) introspection? ( dev-libs/gjs >=dev-libs/gobject-introspection-1.48.0 >=x11-wm/mutter-41.3[introspection] ) gnome? ( gnome-base/gnome-control-center:2 gnome-base/gnome-shell ) systemd? ( sys-apps/systemd )
REQUIRED_USE=gnome? ( introspection ) vala? ( introspection )
SLOT=0
SRC_URI=https://github.com/Keruspe/GPaste/archive/v42.2.tar.gz -> gpaste-42.2.tar.gz
SRC_URI=https://github.com/Keruspe/GPaste/archive/v43.1.tar.gz -> gpaste-43.1.tar.gz
_eclasses_=eapi8-dosym cd7d420bb5be5ee079f27239ce76b8f5 gnome2-utils 3eaa1386ddbbbbb3951256d4b170fba3 meson 1994a5aef5d4f5798b92f64d6f9a6003 multilib 5ca4e49abed8e3a2f7b56920eadee157 multiprocessing b4e253ab22cef7b1085e9b67c7a3b730 ninja-utils 38c85b725d0467e51954ea921b6c104b python-utils-r1 429bfd4e8d8e39db5385ba5744f30788 toolchain-funcs 9a610728b9bcca1919234cceb35a1027 vala 2633382950a3a9ce912c9258150d5db8 xdg-utils ac0e315a3688929e34ac75b139e7349a
_md5_=71578bdaa0df9df4a7f78913e4eb5628

View File

@@ -0,0 +1,5 @@
AUX grub-bootstrap.cfg 26 BLAKE2B 9acd7b63bca7b4ef14c9e676de6b827afecb7f1b4e92b23e36b6f1042f234bd9e5ca52b5a48363c66c2a935b77199b14b251356eceebd586b57894a7198aa9ab SHA512 ab7b22bfb260408aa695212a346d9e6a33f75584c23f2f3e611b74e4a211d9484bdf529894b79af7bb6bb2c30081edcda2802b03ac4dde646d3c9710c7903a22
AUX grub-efi-modules 781 BLAKE2B ee58cdb8f4c3e605b9f8d497e8bba038df9fbeaa179da0940df87308902f3c48eb737667773c0a8a95ce46d3bf85e76dac8477aa7207506c6175d6021bd804a1 SHA512 3d82163af9bd84a6e4bd210122fd2608d40e1c09ed81639e45b15e45c140988de90116e48f15c9853515b21c1aae37a46b129631db86a2c90e93e9d9a63df180
AUX grub-memdisk.cfg.in 210 BLAKE2B 8cfe27ae2a3a0ac2985346d084667ec0fd9e3f6bd4700067c1cfcd5c32e315575416c5c03c4b8a4a2499c23491beddf18b04240842bcb43b5f117afec9f16ba9 SHA512 12e253f257adaba922ebf58380356ed7161c0004b9a3068b5aea99d1489a52545c349dbf9ad3f9377275f8c70ff046ad862b4ebf90d5aa0af0fe6c5063037a04
AUX sbat.csv.in 258 BLAKE2B dfd196fff3334844c3fb8b944e78a7c502572afa0e84c1a92be2b4b09730656dcc0dc518a291fafa8262f4209466a076c088dcd4e5d8dbcde629a00d97a833a7 SHA512 25541f85b23ed3f9fe53be9c9b293e45ec9ae7523d1f3b3b16a1b84f0fc0295e7d868c796a5119fa1693f0eed7face09cbab5eb0ce9d3ce6589ae1a198829eb7
EBUILD grub-efi-image-0.ebuild 1836 BLAKE2B fa4d71851610c72469d0ba61db9b7026f29946eccbb47533c0e2b21c90440dfba5a8d00f9076683df6fcabd3819a84b61a689cd96f267f6b785dfcb3c777209a SHA512 7e578829f4cd231f011e7e27a1ce8bf464fb04261aeacc00cd3bbca02dbd8e8935955d59bc0b42589ab0e93ef0fc512196fe56092ac86cf549ace9acd01dc2ec

View File

@@ -0,0 +1 @@
normal (memdisk)/grub.cfg

View File

@@ -0,0 +1,93 @@
all_video
boot
btrfs
cat
chain
configfile
echo
efifwsetup
efinet
ext2
fat
font
f2fs
gettext
gfxmenu
gfxterm
gfxterm_background
gzio
halt
help
hfsplus
iso9660
jfs
jpeg
keystatus
loadenv
loopback
linux
ls
lsefi
lsefimmap
lsefisystab
lssal
memdisk
minicmd
normal
ntfs
part_apple
part_msdos
part_gpt
password_pbkdf2
png
probe
reboot
regexp
search
search_fs_uuid
search_fs_file
search_label
serial
sleep
smbios
squash4
tar
test
true
video
xfs
zfs
zfscrypt
zfsinfo
cpuid
play
tpm
cryptodisk
gcry_arcfour
gcry_blowfish
gcry_camellia
gcry_cast5
gcry_crc
gcry_des
gcry_dsa
gcry_idea
gcry_md4
gcry_md5
gcry_rfc2268
gcry_rijndael
gcry_rmd160
gcry_rsa
gcry_seed
gcry_serpent
gcry_sha1
gcry_sha256
gcry_sha512
gcry_tiger
gcry_twofish
gcry_whirlpool
luks
lvm
mdraid09
mdraid1x
raid5rec
raid6rec

View File

@@ -0,0 +1,9 @@
if loadfont (memdisk)/fonts/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
search --no-floppy --fs-uuid --set=root @BOOT_PART_UUID@
set prefix=($root)/boot/grub
source $prefix/grub.cfg

View File

@@ -0,0 +1,3 @@
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
grub,1,Free Software Foundation,grub,2.06,https//www.gnu.org/software/grub/
grub.gentoo,1,Gentoo Linux,grub,@GENTOO_GRUB_VERSION@,https://packages.gentoo.org/packages/sys-boot/grub/

View File

@@ -0,0 +1,85 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit mount-boot
DESCRIPTION="Make GRUB EFI boot image"
HOMEPAGE="https://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="+grub_platforms_efi-64 grub_platforms_efi-32"
DEPEND="
sys-boot/grub:2=[fonts]
"
RDEPEND="${DEPEND}"
BDEPEND="
sys-apps/util-linux
"
GRUB_VERSION="2.06-r4"
EFI_VENDOR="gentoo"
GRUB_FONT_SIZE="24"
S="${WORKDIR}"
src_prepare() {
# grub-probe --target=fs_uuid doesn't work here
BOOT_DEV="$(grub-probe --target=device ${ROOT}/boot)"
BOOT_PART_UUID="$(lsblk -o UUID -n ${BOOT_DEV})"
[[ -z $BOOT_PART_UUID ]] && die "Can't find /boot partition UUID"
sed -e 's#@GENTOO_GRUB_VERSION@#'${GRUB_VERSION}'#g' \
"${FILESDIR}/sbat.csv.in" > sbat.csv || die
mkdir -p "${WORKDIR}/memdisk/fonts" || die
sed -e 's#@BOOT_PART_UUID@#'${BOOT_PART_UUID}'#g' \
"${FILESDIR}/grub-memdisk.cfg.in" > memdisk/grub.cfg || die
cp "${FILESDIR}/grub-bootstrap.cfg" "${WORKDIR}/"
eapply_user
}
src_compile() {
local plateform
local efi_name
grub-mkfont \
-s "${GRUB_FONT_SIZE}" \
-o "${WORKDIR}/memdisk/fonts/unicode.pf2" \
/usr/share/fonts/dejavu/DejaVuSansMono.ttf
tar -cf "${WORKDIR}/memdisk.tar" -C "${WORKDIR}/memdisk" .
if use grub_platforms_efi-64; then
platform="x86_64-efi"
efi_name="x64"
elif use grub_platforms_efi-32; then
platform="i386-efi"
efi_name="x32"
else
die "Unsupported platform"
fi
grub-mkimage \
-O "${platform}" \
-o "${WORKDIR}/grub${efi_name}.efi" \
-c "${WORKDIR}/grub-bootstrap.cfg" \
-d "/usr/lib/grub/${platform}" \
-m "${WORKDIR}/memdisk.tar" \
-p "/EFI/gentoo" \
--sbat "${WORKDIR}/sbat.csv" \
$(cat "${FILESDIR}/grub-efi-modules")
}
src_install() {
insinto /usr/lib/${PN}
doins grub*.efi
}