Compare commits

...

155 Commits

Author SHA1 Message Date
projectmoon 1435c0b624 Update ectool 2024-04-25 20:22:42 +02:00
projectmoon 54c656ddbf linux-libre-5.15.151 2024-03-22 19:17:47 +01:00
projectmoon af3779ee4d New ectool version 2024-03-17 15:08:20 +01:00
projectmoon c3c29b44a2 Add linux-sources::gentoo mask to documentation 2024-03-14 08:49:13 +01:00
projectmoon 100a1e2d40 drop old linux versions 2024-02-26 11:48:45 +01:00
projectmoon 7bd10f2e21 linux-libre 5.15.148 2024-02-26 11:47:25 +01:00
projectmoon fc23da458a linux-libre 5.15.147 2024-01-23 09:16:27 +01:00
projectmoon f72a5941f9 Add that we only support kernel 5.15.x 2024-01-08 14:41:02 +01:00
projectmoon 310cf5929a linux-libre 5.15.145 2024-01-08 09:35:33 +01:00
projectmoon 4b58378496 virtual/*: Drop unsupported kernel versions. 2024-01-08 09:33:45 +01:00
projectmoon 96e603d592 sys-kernel/libre-kernel: drop 5.15.127, 5.15.133, 5.15.135, 6.1.19, 6.1.22 2024-01-08 09:30:15 +01:00
projectmoon e782a3e837 linux-libre 5.15.142 2023-12-14 11:11:38 -05:00
projectmoon 5805aca93e libre-kernel 5.15.137 2023-11-13 12:16:36 +01:00
projectmoon b2364c0f6a libre-kernel 5.15.135 2023-10-20 12:28:01 +02:00
projectmoon 7f794e2c84 virtual/dist-kernel: fix typo 2023-10-03 09:34:44 +02:00
projectmoon f9b55fc57c virtual/dist-kernel: drop 5.15.114, 5.15.122 2023-10-03 09:31:42 +02:00
projectmoon 5df43cee2d virtual/dist-kernel: add 5.15.133 2023-10-03 09:31:40 +02:00
projectmoon d40df99db5 sys-kernel/libre-kernel: drop 5.15.114, 5.15.122 2023-10-03 09:28:44 +02:00
projectmoon e8dfe7dc45 sys-kernel/libre-kernel: add 5.15.133 2023-10-03 09:28:21 +02:00
projectmoon 0981c9d088 virtual/linux-sources: Add r7 version with libre-kernel. 2023-09-25 21:46:48 +02:00
projectmoon 34a277adf1 www-plugins/firefox-pwa-connector: treeclean 2023-09-21 14:22:38 +02:00
projectmoon 166fc28c9c libre-kernel 5.15.127 2023-08-22 10:45:02 +02:00
projectmoon 840535708a drop old kernel versions 2023-07-28 11:25:48 +02:00
projectmoon 8ac787f2be dev-python/epc: treeclean 2023-07-28 11:25:13 +02:00
projectmoon 690e2519f5 linux-libre 5.15.122 2023-07-28 11:25:04 +02:00
projectmoon 8f2f67767f firefox-pwa-connector: 2.6.0 2023-05-31 20:17:45 +02:00
projectmoon 5029cf898b Update libre kernel build docs 2023-05-31 19:54:08 +02:00
projectmoon 77a6b464eb libre-kernel: 5.15.114 2023-05-31 09:35:48 +02:00
projectmoon 6adc2574b0 libre-kernel 5.15.110 2023-05-18 11:05:30 +02:00
projectmoon 3055122efc libre-kernel 5.15.107 2023-04-30 09:16:46 +02:00
projectmoon 4764ab1f33 news update 2023-04-14 09:52:09 +02:00
projectmoon 515ef5573b update docs for libre kernel 2023-04-14 09:46:54 +02:00
projectmoon 223caf0365 virtual/linux-sources: new package, add 3-r6 2023-04-14 09:45:29 +02:00
projectmoon 4b619a7331 virtual/dist-kernel: drop old versions, add 5.15.105 and 6.1.22 2023-04-13 20:25:28 +02:00
projectmoon ede794c760 sys-kernel/libre-kernel: drop versions 2023-04-13 20:16:51 +02:00
projectmoon 6c3566c789 sys-kernel/libre-kernel: add 5.15.105, 6.1.22 2023-04-13 20:15:58 +02:00
projectmoon 4e3952a958 News item about fallback URIs 2023-03-29 15:59:30 +02:00
projectmoon 2664a2dc46 sys-kernel/libre-kernel: add linux-libre site as fallback for gpg keys 2023-03-29 14:00:18 +02:00
projectmoon 0ae5f901b7 sys-kernel/libre-kernel: add 6.1.19 2023-03-29 14:00:05 +02:00
projectmoon e57750c693 www-plugins/firefox-pwa-connector: properly handle multiple versions of vendored deps 2023-03-27 14:36:00 +02:00
projectmoon 7280d559bb www-plugins/firefox-pwa-connector: add 2.5.0 2023-03-27 14:35:04 +02:00
projectmoon 0e205bdf0c www-plugins/firefox-pwa-connector: drop 2.4.1 2023-03-27 14:25:41 +02:00
projectmoon 645456b696 document updating virtual/dist-kernel 2023-03-23 21:01:31 +01:00
projectmoon 17f297b0bc virtual/dist-kernel: add 5.15.102 2023-03-23 21:00:34 +01:00
projectmoon 0025e350af www-plugins/firefox-pwa-connector: add openssl to depened/rdepend 2023-03-23 20:50:36 +01:00
projectmoon c83055165b sys-kernel/libre-kernel: add 5.15.102 2023-03-23 20:48:38 +01:00
projectmoon 2399f618a9 sys-kernel/libre-kernel: fallback URI for releases, drop non-amd64 arches, smarter gentoo patches discovery. 2023-03-23 20:36:22 +01:00
projectmoon 272cff5d03 sys-kernel/libre-kernel: fallback URI for kernel releases, smarter discovery of gentoo patches, drop non-amd64 arches. 2023-03-23 20:36:22 +01:00
projectmoon 0ab6bdfd3f restrict firefox pwa build to not use gentoo mirrors 2023-03-17 17:06:43 +01:00
projectmoon ac946b0ea2 correct docs about ectool 2023-03-16 23:05:13 +01:00
projectmoon b16e8cd913 clarifying comment 2023-03-16 22:31:57 +01:00
projectmoon a40dcf0d62 Switch pwa connector to use get_libdir 2023-03-16 22:31:37 +01:00
projectmoon b6f4dfb5da remove getlibdir 2023-03-16 22:19:07 +01:00
projectmoon 48633966c8 Remove useless comments from pwa connector ebuild 2023-03-16 22:18:47 +01:00
projectmoon 8bf03ebfa3 Missing asterisk 2023-03-16 22:13:40 +01:00
projectmoon 6cfc4c8a0f Update and split readme 2023-03-16 22:13:13 +01:00
projectmoon bebfa186fe Remove dep on dev-util/cargo-make for firefox PWA connector. 2023-03-16 21:45:12 +01:00
projectmoon aab2f80695 Document how to update PWA connector build 2023-03-16 20:09:05 +01:00
projectmoon 4c2f46e3e5 www-plugins/firefox-pwa-connector: add 2.4.1 2023-03-16 20:03:36 +01:00
projectmoon 70b340af2c WIP on firefox-pwa-connector 2023-03-16 10:19:15 +01:00
projectmoon f06528e6fd sys-kernel/libre-kernel: drop versions 2023-03-08 20:51:57 +00:00
projectmoon ad0c01120b virtual/dist-kernel: add 5.15.94 2023-03-07 23:17:40 +00:00
projectmoon f872aca016 sys-kernel/libre-kernel: add 5.15.94 2023-03-07 23:15:12 +00:00
projectmoon 7e312f93ff correct email 2023-03-05 11:22:39 +00:00
projectmoon f77273a861 rename news file 2023-03-05 11:22:04 +00:00
projectmoon 15f751a940 Add news item abou new kernel USE flag 2023-03-05 11:19:51 +00:00
projectmoon 486ef6474e Add kernel ebuild update documentation 2023-03-05 09:07:56 +00:00
projectmoon a8c0951e7d sys-kernel/libre-kernel: add gentoo patches, fix config version. 2023-03-05 08:58:00 +00:00
projectmoon 59869deebb Documentation updates about how to use the overlay (quickstart coming soon) 2023-03-01 07:42:34 +01:00
projectmoon 9bd4dbae06 Fix app category again in readme 2023-03-01 07:31:43 +01:00
projectmoon fbad65d768 fix dep for librem-control 2023-03-01 07:12:11 +01:00
projectmoon 7cdd97c2e3 move librem-ec-acpi back to sys-kernel 2023-03-01 07:10:21 +01:00
projectmoon faaba28f4d sys-apps/librem-ec-acpi: add 0.9.2 2023-03-01 07:08:37 +01:00
projectmoon 77ec4be71c newline 2023-02-28 14:30:21 +01:00
projectmoon 5faff332e8 fix librem-control dependency 2023-02-28 14:30:13 +01:00
projectmoon 6685f38faf profiles/updates: Add move entries for librem-ec-acpi and purism_ectool 2023-02-28 14:26:14 +01:00
projectmoon e2271fcada Update readme for new app category 2023-02-28 14:19:23 +01:00
projectmoon 7906f2427f sys-apps/*: Move librem-ec-acpi and purism_ectool. 2023-02-28 14:18:25 +01:00
projectmoon f2334c522e Update readme instructions for adding overlay 2023-02-28 14:09:11 +01:00
projectmoon ea0c474416 minor doc update 2023-02-24 13:20:05 +01:00
projectmoon 215b66c491 libre kernel 6.1.12 2023-02-16 13:50:30 +01:00
projectmoon dda85d4859 Revert "sys-kernel/libre-kernel: add 6.1.2"
This reverts commit 25c626d60c.
2023-02-16 13:45:15 +01:00
projectmoon 25c626d60c sys-kernel/libre-kernel: add 6.1.2 2023-02-16 13:35:57 +01:00
projectmoon 5eb6ffb4ff libre-kernel 5.15.88 2023-01-24 10:21:24 +01:00
projectmoon 9760b6d3c2 libre kernel 5.15.85 2022-12-28 21:01:44 +01:00
projectmoon 502256bee5 virtual/linux-sources: treeclean 2022-12-19 20:18:35 +01:00
projectmoon e43bd67cb6 sys-kernel/libre-kernel, virtual/dist-kernel: Linux-libre 5.15.83 2022-12-19 20:17:50 +01:00
projectmoon fccb4ef271 document python-ecp as available package 2022-12-18 23:17:49 +01:00
projectmoon 555f7fd216 dev-python/epc: prefer orjson-bin 2022-12-18 22:57:47 +01:00
projectmoon c7a931a517 dev-python/epc: fix depend formatting 2022-12-18 22:54:49 +01:00
projectmoon 525c937c7b dev-python/epc: allow orjson-bin dep 2022-12-18 22:52:29 +01:00
projectmoon 0f2e101f9b dev-python/epc: new package, add 0.0.5 2022-12-18 22:47:33 +01:00
projectmoon 17f301d3c0 dev-util/rust-analyzer-bin: add 0_p20221212 2022-12-14 11:00:36 +01:00
projectmoon 64c89a82ed virtual/dist-kernel: add 5.15.80, drop 5.19.17 2022-12-13 14:32:20 +01:00
projectmoon e8ec8c7ce1 sys-kernel/libre-kernel: add 5.15.80 2022-12-13 14:28:45 +01:00
projectmoon 7fe53443d1 sys-kernel/libre-kernel: add verify-sig, use mirror to download source. 2022-11-24 15:44:10 +01:00
projectmoon 4f72bb9575 sec-keys/openpgp-keys-linux-libre: new package, add 20221123 2022-11-23 22:35:24 +01:00
projectmoon ef03df67e8 sys-kernel/libre-kernel: add 5.15.77 2022-11-23 22:23:14 +01:00
projectmoon 3248a94c73 sys-kernel/libre-kernel: drop 5.15.75 2022-11-23 22:15:30 +01:00
projectmoon c0c12e5744 Change repository to overlay in readme 2022-11-15 23:01:16 +01:00
projectmoon 7542bea7d0 only ignore md5 cache 2022-11-15 22:58:19 +01:00
projectmoon 3c33368712 Add metadata dir to gitignore 2022-11-15 22:57:45 +01:00
projectmoon ebc954b175 Update readme about new packages. 2022-11-15 22:54:14 +01:00
projectmoon 099f831845 sys-firmware/purism_ectool: new package, add 0.3.5 2022-11-15 22:19:58 +01:00
projectmoon be48403c98 sys-power/librem-control: unkeyword 9999 for ~amd64 2022-11-15 16:10:32 +01:00
projectmoon cf93b01705 sys-power/librem-control: require dep on librem-ec-acpi 2022-11-15 15:59:32 +01:00
projectmoon 7f6e907164 sys-power/librem-control: new package, add 9999 2022-11-15 15:52:31 +01:00
projectmoon cd3c2cc21a virtual/dist-kernel: add 5.19.17 2022-11-14 15:14:08 +01:00
projectmoon 7359fc100c virtual/dist-kernel: drop 5.10.81 2022-11-14 15:13:17 +01:00
projectmoon c62c97027f sys-kernel/libre-kernel: drop 5.15.75-r1, 5.15.75-r2 2022-11-14 15:12:24 +01:00
projectmoon dbcb2d3881 sys-kernel/libre-kernel: Stabilize 5.15.75, add 5.19.17. 2022-11-14 09:13:26 +01:00
projectmoon dde3d1aac4 remove cjk fonts that we do not know the free status of and are too lazy to check. 2022-11-10 14:51:20 +01:00
projectmoon 9922aba742 Readme update 2022-11-10 14:48:17 +01:00
projectmoon 516b974f16 media-fonts/fonts-meta: drop 3-r1 2022-11-10 14:44:20 +01:00
projectmoon fc01fea95b media-fonts/fonts-meta: r1 2022-11-10 14:40:46 +01:00
projectmoon 61e4c3d9ff media-fonts/fonts-meta: new package, add 3 2022-11-10 14:21:33 +01:00
projectmoon 2f25b67385 sys-kernel/librem-ec-acpi: add kernel_linux USE check 2022-11-09 09:17:48 +01:00
projectmoon 9b67105a09 sys-kernel/librem-ec-acpi: add proper depends for distkernel 2022-11-09 09:16:19 +01:00
projectmoon d7fe9f1fc9 Update readme 2022-11-08 17:16:00 +01:00
projectmoon 9e6ae6db11 sys-kernel/libre-kernel: correct warnings about firmware, hopefully fix version suffix. 2022-11-08 16:00:14 +01:00
projectmoon 98f731397c sys-kernel/libre-kernel: remove 5.10.x, remove echo in 5.10.75-r1 2022-11-08 11:43:03 +01:00
projectmoon 0690e8e7d2 sys-kernel/libre-kernel: fix description and homepage. 2022-11-08 07:54:45 +01:00
projectmoon 6d6b207469 sys-kernel/libre-kernel: Fix version suffix 2022-11-07 22:17:18 +01:00
projectmoon 66af4f6efc virtual/dist-kernel: add 5.15.75 2022-11-07 21:22:10 +01:00
projectmoon 4881ef8cc1 sys-kernel/libre-kernel: add 5.15.75 2022-11-07 21:20:37 +01:00
projectmoon ebbe9c4dd0 libre kernel based on vanilla kernel ebuild 2021-12-25 20:31:16 -05:00
projectmoon 0332e59f40 Update dist-kernel virtual for libre-kernel 2021-11-24 14:17:15 +00:00
projectmoon f3f5ec313c Update ebuild for libre-kernel 2021-11-24 14:14:58 +00:00
projectmoon 51dc35c30f move linux sources to right place 2021-11-24 14:07:37 +00:00
projectmoon d25a833cd0 virtual for libre dist kernel 2021-11-24 14:05:49 +00:00
projectmoon f6eafe8605 testing libre dist-kernel 2021-11-24 14:01:53 +00:00
projectmoon 03c663ad59 Add new rust analzyer 2021-09-28 07:18:05 +00:00
projectmoon 0460670c66 Remove Linux Libre kernel. 2021-09-28 07:13:44 +00:00
projectmoon 4e4d9bc80b gnu-sources 5.10.61 2021-09-22 22:55:49 +00:00
projectmoon 4673c5c0d4 Remove libre-sources 2021-08-06 12:19:53 +02:00
projectmoon 8bd66066c8 Update readme 2021-08-06 12:02:18 +02:00
projectmoon 80ea504332 fix typo 2021-08-06 00:30:14 +02:00
projectmoon d2cf1e04d5 fix linux libre link 2021-08-06 00:29:25 +02:00
projectmoon f1a4f3adae Add readme 2021-08-06 00:28:50 +02:00
projectmoon 8b552d60fb script to find latest stable gentoo kernel version and generate gnu-sources 2021-08-05 19:54:18 +02:00
projectmoon cbf3007b52 remove hardcoded kernel ref from gnu-sources ebuild 2021-08-05 19:53:53 +02:00
projectmoon c1a3cf09c1 Fix manifest and download URIs for rust-analzyer 2021-08-05 08:58:57 +02:00
projectmoon 179418c592 remove bad version for rust analyzer 2021-08-05 08:48:01 +02:00
projectmoon 4b9a84f2b4 new rust-analyzer-bin 2021-08-02 2021-08-05 08:44:15 +02:00
projectmoon 2cfe5e705b fix linux sources dir 2021-08-03 10:19:22 +02:00
projectmoon 295a656cb0 virtual linux sources with gnu sources 2021-08-03 10:16:16 +02:00
projectmoon 5a76f1b218 Update manifests for gnu-sources 2021-08-03 09:11:58 +02:00
projectmoon 977a529049 New stable gnu sources 2021-08-03 09:09:37 +02:00
projectmoon 9b11d38734 Rename libre-sources to gnu-sources 2021-08-03 09:09:09 +02:00
projectmoon 81c542288e new rust-analyzer-bin 2021-07-26 20:41:53 +02:00
projectmoon 89f35eec15 versioned rust-analyzer build 2021-07-21 21:17:17 +02:00
projectmoon 188958a0ea Add rust-analyzer-bin with updated manifests 2021-07-21 20:56:26 +02:00
projectmoon b08955fb3f fix some typos in librem-ec-acpi ebuild 2021-07-12 22:01:53 +00:00
projectmoon 441359e5e7 Compile librem-ec for user chosen kernel 2021-07-12 21:56:04 +00:00
projectmoon 4bcaa5c9f5 Librem 14 EC ACPI driver ebuild. 2021-07-09 21:28:53 +00:00
47 changed files with 1618 additions and 55 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
metadata/md5-cache
profile/use.local.desc

79
README.md Normal file
View File

@ -0,0 +1,79 @@
Personal Gentoo overlay, focusing mostly on needed tools and
compatibility for a libre version of Gentoo on the Librem 14 computer. A
handful of other pacakages are also provided.
Linux-libre and Librem-related packages:
- **sys-kernel/libre-kernel**: A dist-kernel built from the [Linux-libre
sources][linux-libre].
- **media-fonts/fonts-meta**: Modified version to remove non-Free
fonts from the dependencies.
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
EC ACPI kernel module][ec-acpi], necessary for proper functioning
of the laptop's battery charging and function keys.
* **sys-power/librem-control**: A GTK application to control
parameters of the Librem EC (battery charge levels, etc).
* **sys-apps/purism_ectool**: Tool for querying and flashing
Purism EC firmware images on certain Librem laptops.v
Other Packages:
- **dev-python/ecp**: Python implementation of Emacs RPC stack. Depends
on `orjson` or `orjson-bin` from the GURU (or another) overlay.
- **www-plugins/firefox-pwa-connector**: The native host connector for
the [PWAs for Firefox][ff-pwas] project.
## How to Add This Repository
Using eselect-repository:
```
# eselect repository add projectmoon git https://git.agnos.is/projectmoon/projectmoon-overlay
```
It usually a best practice to mask packages from overlays, except the ones you want:
In `/etc/portage/package.mask`:
```
*/*::projectmoon
```
Individual packages can be unmasked (and added to
`package.accept_keywords` if necessary). For instructions on unmasking
individual packages, see the relevant documentation below.
## The Linux-libre dist-kernel
*See [docs/Libre-Kernel.md](docs/Libre-Kernel.md).*
This overlay provides a dist-kernel (based on
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
an accompanying updated version of `virtual/dist-kernel`. It is
maintained and tested for my personal use on amd64. The Linux-libre
kernel removes the ability for the Linux kernel to load firmware that is
not [Free Software][free-software]. The ebuild roughly follows the
current stable gentoo-kernel for amd64.
## Purism Librem Computer Packages
*See [docs/Librem.md](docs/Librem.md).*
This overlay contains packages for Purism's Librem computers, focusing
mostly on the Librem 14.
## Other Packages
*More documentation coming soon.*
Packages must be unmasked and added to `package.accept_keywords` as
necessary.
# Disclaimer
The ebuilds in this overlay are really only tested for my specific
use-case. I do not test every combination of USE flags, for example.
So there may be issues with non-Free dependencies etc in some cases.
[linux-libre]: https://www.fsfla.org/ikiwiki/selibre/linux-libre/
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms
[ec-instructions]: https://puri.sm/projects/librem-ec/
[ff-pwas]: https://github.com/filips123/PWAsForFirefox

View File

@ -0,0 +1,2 @@
DIST rust-analyzer-2022-12-12.gz 12848044 BLAKE2B b3c6e1b192d8db6518997b93b12551c1f43e70ca74a306395b764a73982b329712931f34932dd98f866d3e6850bd59dd533edaca8f06ca9f7b41ac6526552388 SHA512 b9d787307021a3753df7a2ef05e52aaf8b0389000770dadd326d5476ac20ef6b328741412601fb5dc467e0511911065f59bd86b5b96f5da265658c0579e54a72
DIST rust-analyzer-x86_64-unknown-linux-gnu.gz 11550409 BLAKE2B 6d1dc7dd15375016f153d53c408f882f219778dfbeaa98e15fcb51a5f6704b29a73205c1c2ed1162ad2794387d9abc3fc569a19d243135428fc4ab6b46b9bcac SHA512 c23b2e9d645863b84e0961429c654365887f265faf883f94b62bedc4a9b8de25c00cc3e1653d614f485bebb9cbe4abb241072955d8d46bdc082795d597285422

View File

@ -0,0 +1,31 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
HOMEPAGE="https://rust-analyzer.github.io"
KEYWORDS="~amd64"
# rust-analyzer makes date-based releases at the moment.
DATE=${PV:3:8}
YEAR=${DATE:0:4}
MONTH=${DATE:4:2}
DAY=${DATE:6:2}
VERSION="${YEAR}-${MONTH}-${DAY}"
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz"
LICENSE="Apache-2.0 MIT-with-advertising"
SLOT="0"
PROPERTIES="live"
S=${WORKDIR}
src_install() {
newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer
}
pkg_postinst() {
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
}

View File

@ -0,0 +1,30 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
HOMEPAGE="https://rust-analyzer.github.io"
KEYWORDS="~amd64"
# rust-analyzer makes date-based releases at the moment.
DATE=${PV:3:8}
YEAR=${DATE:0:4}
MONTH=${DATE:4:2}
DAY=${DATE:6:2}
VERSION="${YEAR}-${MONTH}-${DAY}"
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz"
LICENSE="Apache-2.0 MIT-with-advertising"
SLOT="0"
PROPERTIES="live"
S=${WORKDIR}
src_install() {
newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer
}
pkg_postinst() {
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
}

View File

@ -0,0 +1,30 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
HOMEPAGE="https://rust-analyzer.github.io"
KEYWORDS="~amd64"
# rust-analyzer makes date-based releases at the moment.
DATE=${PV:3:8}
YEAR=${DATE:0:4}
MONTH=${DATE:4:2}
DAY=${DATE:6:2}
VERSION="${YEAR}-${MONTH}-${DAY}"
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz"
LICENSE="Apache-2.0 MIT-with-advertising"
SLOT="0"
PROPERTIES="live"
S=${WORKDIR}
src_install() {
newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer
}
pkg_postinst() {
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
}

View File

@ -0,0 +1,30 @@
# Copyright 2021-2022 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
HOMEPAGE="https://rust-analyzer.github.io"
KEYWORDS="~amd64"
# rust-analyzer makes date-based releases at the moment.
DATE=${PV:3:8}
YEAR=${DATE:0:4}
MONTH=${DATE:4:2}
DAY=${DATE:6:2}
VERSION="${YEAR}-${MONTH}-${DAY}"
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz -> rust-analyzer-${VERSION}.gz"
LICENSE="Apache-2.0 MIT-with-advertising"
SLOT="0"
PROPERTIES="live"
S=${WORKDIR}
src_install() {
newbin "rust-analyzer-${VERSION}" rust-analyzer
}
pkg_postinst() {
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
}

143
docs/Libre-Kernel.md Normal file
View File

@ -0,0 +1,143 @@
# The Linux-libre dist-kernel
This overlay provides a dist-kernel (based on
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
an accompanying updated version of `virtual/dist-kernel`. It is
maintained and tested for my personal use on amd64. The Linux-libre
kernel removes the ability for the Linux kernel to load firmware that
is not [Free Software][free-software]. The ebuild roughly follows the
current stable 5.15.x gentoo-kernel for amd64.
The libre kernel can be installed alongside other dist-kernels, and
works with the `dist-kernel` and `initramfs` USE flags. The ebuild
does NOT fail if non-free firmware (i.e. `sys-kernel/linux-firmware`
with `redistributable` USE flag set) is installed, but it will warn
you if this is the case. It will also warn you if the `linux-firmware`
package is not found at all, like normal dist-kernel ebuilds.
The kernel installed by this ebuild has the version suffix
`-gnu-dist`, making it easy to determine which kernel it is.
## Quick Setup
This is a quick guide for setting up the system to properly install the
Linux-libre Kernel. It assumes you have set up the overlay as described
in the README.
In `/etc/portage/package.use`:
```
# Install only libre firmware
sys-kernel/linux-firmware -redistributable -unknown-license
# libre kernel with gentoo kernel patches applied
sys-kernel/libre-kernel verify-sig
# or, if you do not want gentoo patches applied
sys-kernel/libre-kernel verify-sig -gentoo
```
In `/etc/portage/package.unmask`:
```
sys-kernel/libre-kernel::projectmoon
virtual/dist-kernel::projectmoon
virtual/linux-sources::projectmoon
sec-keys/openpgp-keys-linux-libre::projectmoon
```
In `/etc/portage/package.accept_keywords`:
```
sys-kernel/librem-ec-acpi::projectmoon
sys-kernel/libre-kernel::projectmoon ~amd64
virtual/dist-kernel::projectmoon
virtual/linux-sources::projectmoon
```
In `/etc/portage/package.mask`:
```
# stay on libre kernel
sys-kernel/gentoo-kernel
sys-kernel/gentoo-kernel-bin
sys-kernel/vanilla-kernel
virtual/linux-sources::gentoo
```
## Detailed Instructions
The rest of this documentation covers the quick steps above in detail,
and extra information about the Linux firmware package, the Librem EC
ACPI module, etc.
### Signature Verification
It is recommended to enable GPG signature verification of
`sys-kenrel/libre-kernel` by adding the USE flag to
o`/etc/portage/package.use`:
```
sys-kernel/libre-kernel verify-sig
```
### Keeping the Linux-libre Kernel Installed
Portage will sometimes try to install `sys-kernel/gentoo-kernel` or
another dist-kernel if there is a newer stable version than
`sys-kernel/libre-kernel`. This happens because of a version bump to
`virtual/dist-kernel` before this overlay has updated its own copy of
`virtual/dist-kernel`.
To prevent portage from attempting to install another dist-kernel
instead of the Linux-libre kernel, you should mask other dist-kernels in
`/etc/portage/package.mask`:
```
# stay on libre kernel
sys-kernel/gentoo-kernel
sys-kernel/gentoo-kernel-bin
sys-kernel/vanilla-kernel
```
### Linux Firmware
*Note: If you are running the Linux-libre kernel, it is unlikely (though
not impossible) that you need to install `sys-kernel/linux-firmware`.*
To install only the Linux firmware that meets the [Free Software
Definition][free-software], configure `/etc/portage/package.use`
accordingly:
```
# Install only libre firmware
sys-kernel/linux-firmware -redistributable -unknown-license
```
You can also edit `/etc/portage/profile/package.use.mask` to prevent
the linux-firmware package from ever installing the closed-source
firmware by adding this line:
```
# forcibly stop non-free firmware installation
sys-kernel/linux-firmware redistributable unknown-license
```
### Using the Librem EC ACPI kernel module
The Librem EC ACPI kernel module should install and be automatically
available (via modprobe) after installation, using `emerge
sys-kernel/librem-ec-acpi`. The module is currently installed to
`/lib/modules/<kernel>/librem/`.
This ebuild supports the `dist-kernel` USE flag, and the module will
automatically be rebuilt when installing a new dist-kernel if that
flag is enabled.
If you are not using a dist-kernel, you will need to do `emerge
@modules-rebuild` to install the module after you upgrade or install a
new kernel.
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
[linux-libre]: https://www.fsfla.org/ikiwiki/selibre/linux-libre/
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition

58
docs/Librem.md Normal file
View File

@ -0,0 +1,58 @@
# Packages for Purism Librem Computers
This overlay provides a handful of ebuilds for Purism Librem computers (particularly, the Librem 14):
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
EC ACPI kernel module][ec-acpi], necessary for proper functioning
of the laptop's battery charging and function keys.
* **sys-power/librem-control**: A GTK application to control
parameters of the Librem EC (battery charge levels, etc).
* **sys-apps/purism_ectool**: Tool for querying and flashing
Purism EC firmware images on certain Librem laptops.
## Quick Setup
This is a quick guide for setting up the system to properly install
Librem-related packages. It assumes you have set up the overlay as
described in the README.
In `/etc/portage/package.unmask`:
```
sys-kernel/librem-ec-acpi::projectmoone
sys-apps/purism_ectool::projectmoon
sys-power/librem-control::projectmoon
```
In `/etc/portage/package.accept_keywords`:
```
sys-kernel/librem-ec-acpi::projectmoon
sys-apps/purism_ectool::projectmoon
sys-power/librem-control::projectmoon **
```
## The Librem EC ACPI kernel module
The Librem EC ACPI kernel module should install and be automatically
available (via modprobe) after installation, using `emerge
sys-kernel/librem-ec-acpi`. The module is currently installed to
`/lib/modules/<kernel>/librem/`.
This ebuild supports the `dist-kernel` USE flag, and the module will
automatically be rebuilt when installing a new dist-kernel if that
flag is enabled.
If you are not using a dist-kernel, you will need to do `emerge
@modules-rebuild` to install the module after you upgrade or install a
new kernel.
### Librem Control and the Purism EC Tool
These two appliations can be used to manipulate device-specific
features of the Librem 14, including the flashing of firmware images.
It is not recommended to use the EC tool from this overlay for
flashing a firmware image. Instead, follow the official [firmware
flashing instrutions][ec-instructions].
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms
[ec-instructions]: https://puri.sm/projects/librem-ec/

View File

@ -0,0 +1,14 @@
How to create new version of the Firefox PWA Connector:
- Check Firefox PWA repo for new version.
- Pull latest changes of repo and check out proper tag.
- Run `cargo vendor` in the repo, under the `native/` directory.
- Create tarball of vendored cargo deps: `tar -czvf vendor-X.Y.Z.tar.gz vendor/`.
- Move vendor tarball to the overlay files repo under `www-plugins/firefox-pwa-connector`.
- Push vendored tarball for new version.
- Copy over ebuild to new version.
- Check the Cargo.toml of the connector for any new git deps, and add to
the git crates if necessary. Cargo.lock can be checked to find the
proper commit hashes.
- Check repo Makefile.toml for any new installation instructions for the
Linux target. Replicate in `src_install` phase.

View File

@ -0,0 +1,26 @@
How to update the Linux-libre Kernel ebuild for a new version
---
1. Check for new stable version of `gentoo-kernel` on packages.gentoo.org.
2. If so, version bump `libre-kernel` ebuild to match new
`gentoo-kernel` version.
3. Check the `gentoo-kernel` ebuild for changes to the Gentoo config and
patches versions.
4. If the Gentoo patchset version has changed:
1. Make sure the patch version offset thingy matches gentoo-kernel.
2. Make sure config version is the same.
3. Make sure the config hash is the same.
4. Make sure ebuild applies config changes with `ebuild
libre-kernel-X.Y.Z.ebuild clean prepare`.
5. Run `pkgdev manifest` to have portage download the libre kernel files
and update the manifest.
5. Attempt to build the kernel using `ebuild libre-kernel-X.Y.Z.ebuild
clean merge`. You might need to use `sudo` or `doas` for this.
6. Update `virtual/dist-kernel` package to new version, by copying the
proper dist-kernel ebuild from the gentoo repo, and adding
`sys-kernel/libre-kernel` to its list of possible deps.
7. Make sure `virtual/linux-sources` is up to date. This package rarely
changes, but updating it follows the same procedure as
`virtual/dist-kernel`.
If the build succeeds, the new ebuilds can be pushed to the repository.

View File

@ -0,0 +1,110 @@
# Copyright 1999-2022 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Meta package for fonts to cover most needs"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
LICENSE="metapackage"
SLOT="0"
KEYWORDS="amd64 ~loong ~riscv x86"
IUSE="cjk emoji +latin ms"
LANGS="as bn bo brx doi dz gu hi km kn kok ks mai ml mr ne or pa ru sa sat sd si syc ta te th"
for lang in ${LANGS}; do
IUSE+=" l10n_${lang}"
done
unset lang LANGS
RDEPEND="media-fonts/cantarell
media-fonts/droid
media-fonts/noto
media-fonts/oldstandard
media-fonts/powerline-symbols
media-fonts/ubuntu-font-family
media-libs/fontconfig
|| (
media-fonts/source-code-pro
media-fonts/anonymous-pro
media-fonts/cascadia-code
media-fonts/fantasque-sans-mono
media-fonts/fira-code
media-fonts/fira-mono
media-fonts/hack
media-fonts/hermit
media-fonts/ibm-plex
media-fonts/inconsolata
media-fonts/iosevka
media-fonts/jetbrains-mono
media-fonts/montecarlo
media-fonts/roboto
media-fonts/terminus-font
)
cjk? (
media-fonts/noto-cjk
)
emoji? (
|| (
media-fonts/noto-emoji
media-fonts/joypixels
)
)
l10n_as? ( media-fonts/lohit-assamese )
l10n_bn? ( media-fonts/lohit-bengali )
l10n_bo? ( media-fonts/tibetan-machine-font )
l10n_brx? ( media-fonts/lohit-devanagari )
l10n_doi? ( media-fonts/lohit-devanagari )
l10n_dz? ( media-fonts/dzongkha-fonts )
l10n_gu? ( media-fonts/lohit-gujarati )
l10n_hi? ( media-fonts/lohit-devanagari )
l10n_km? ( media-fonts/khmer )
l10n_kn? ( media-fonts/lohit-kannada )
l10n_kok? ( media-fonts/lohit-devanagari )
l10n_ks? ( media-fonts/lohit-devanagari )
l10n_mai? ( media-fonts/lohit-devanagari )
l10n_ml? ( media-fonts/lohit-malayalam )
l10n_mr? (
media-fonts/lohit-devanagari
media-fonts/lohit-marathi
)
l10n_ne? (
media-fonts/lohit-devanagari
media-fonts/lohit-nepali
)
l10n_or? ( media-fonts/lohit-odia )
l10n_pa? ( media-fonts/lohit-gurmukhi )
l10n_ru? (
media-fonts/font-misc-cyrillic
media-fonts/paratype
media-fonts/paratype-astra
)
l10n_sa? ( media-fonts/lohit-devanagari )
l10n_sat? ( media-fonts/lohit-devanagari )
l10n_sd? ( media-fonts/lohit-devanagari )
l10n_si? ( media-fonts/lklug )
l10n_syc? ( media-fonts/font-misc-meltho )
l10n_ta? (
media-fonts/lohit-tamil
media-fonts/lohit-tamil-classical
)
l10n_te? ( media-fonts/lohit-telugu )
l10n_th? ( media-fonts/thaifonts-scalable )
latin? (
media-fonts/courier-prime
media-fonts/dejavu
media-fonts/font-cursor-misc
media-fonts/liberation-fonts
media-fonts/open-sans
media-fonts/quivira
media-fonts/signika
media-fonts/tex-gyre
media-fonts/ttf-bitstream-vera
media-fonts/urw-fonts
)
ms? (
media-fonts/corefonts
media-fonts/croscorefonts
media-fonts/crosextrafonts-caladea
media-fonts/crosextrafonts-carlito
)"

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>alexey+gentoo@asokolov.org</email>
<name>Alexey Sokolov</name>
</maintainer>
<maintainer type="person" proxied="proxy">
<email>juippis@gentoo.org</email>
<name>Joonas Niilola</name>
</maintainer>
<maintainer type="project">
<email>fonts@gentoo.org</email>
<name>Fonts</name>
</maintainer>
<use>
<flag name="emoji">Install a font supporting emojis</flag>
<flag name="latin">Install additional latin fonts</flag>
<flag name="ms">Install (free) fonts for the "ms" preset</flag>
</use>
<stabilize-allarches/>
</pkgmetadata>

View File

@ -0,0 +1,27 @@
Title: Libre Kernel Gentoo USE Flag and Fixes
Author: Yuan Liao <liaoyuan@gmail.com>
Posted: 2023-03-01
Revision: 1
News-Item-Format: 2.0
The latest libre-kernel ebuild (6.1.2) has been revised to support a new
gentoo USE flag, as well as fixes to the kernel configuration version.
The new USE flag applies a subset of the Gentoo kernel patchset (from
the gentoo-kernel package) to the Linux-libre kernel source. Most of the
patches apply, but the larger patchsets for the kernel do not, in many
cases because it seems like those patches have already been applied to
the upstream source.
Applying of the Gentoo kernel patchset is controlled by the new local
USE flag gentoo. It is enabled by default. The USE flag can be disabled
by turning it off in /etc/portage/package.use:
sys-kernel/libre-kernel -gentoo
Note: whether or not the USE flag is enabled, the patch for the default
Gentoo kernel configuration will always be applied.
Additionally, the Gentoo kernel config version has been fixed in the r1
ebuild. The kernel configuration applied was being used from a 5.x
build. In the future, the correct kernel config version will follow the
gentoo-kernel package.

View File

@ -0,0 +1,27 @@
Title: Libre Kernel Gentoo USE Flag and Fixes
Author: projectmoon <projectmoon@agnos.is>
Posted: 2023-03-01
Revision: 1
News-Item-Format: 2.0
The latest libre-kernel ebuild (6.1.2) has been revised to support a new
gentoo USE flag, as well as fixes to the kernel configuration version.
The new USE flag applies a subset of the Gentoo kernel patchset (from
the gentoo-kernel package) to the Linux-libre kernel source. Most of the
patches apply, but the larger patchsets for the kernel do not, in many
cases because it seems like those patches have already been applied to
the upstream source.
Applying of the Gentoo kernel patchset is controlled by the new local
USE flag gentoo. It is enabled by default. The USE flag can be disabled
by turning it off in /etc/portage/package.use:
sys-kernel/libre-kernel -gentoo
Note: whether or not the USE flag is enabled, the patch for the default
Gentoo kernel configuration will always be applied.
Additionally, the Gentoo kernel config version has been fixed in the r1
ebuild. The kernel configuration applied was being used from a 5.x
build. In the future, the correct kernel config version will follow the
gentoo-kernel package.

View File

@ -0,0 +1,13 @@
Title: Libre Kernel Gentoo USE Flag and Fixes
Author: projectmoon <projectmoon@agnos.is>
Posted: 2023-03-29
Revision: 1
News-Item-Format: 2.0
The libre-kernel ebuilds now have the main Linux-libre release URLs as
fallback SRC_URIs, in case the mirror hosting the files is down. The
mirrors exist because sometimes the Linux-libre project removes releases
if they discover that the release violates the Free Software
Distribution guidelines. While good for freedom purity, this can make
upgrades difficult. Thus, the files are mirrored on an external for the
libre-kernel ebuilds.

View File

@ -0,0 +1,13 @@
Title: Libre Kernel Gentoo USE Flag and Fixes
Author: projectmoon <projectmoon@agnos.is>
Posted: 2023-03-29
Revision: 1
News-Item-Format: 2.0
The libre-kernel ebuilds now have the main Linux-libre release URLs as
fallback SRC_URIs, in case the mirror hosting the files is down. The
mirrors exist because sometimes the Linux-libre project removes releases
if they discover that the release violates the Free Software
Distribution guidelines. While good for freedom purity, this can make
upgrades difficult. Thus, the files are mirrored on an external for the
libre-kernel ebuilds.

View File

@ -0,0 +1,15 @@
Title: virtual/linux-sources unmask required
Author: projectmoon <projectmoon@agnos.is>
Posted: 2023-04-14
Revision: 1
News-Item-Format: 2.0
Changes to the linux-sources virtual have required that this overlay
patches that ebuild when using the libre-kernel. If you have set up this
overlay to only unmask specific packages, you should also add the
linux-sources package to your package.unmask file:
virtual/linux-sources::projectmoon
This will prevent portage from also installing linux sources package
like gentoo-sources when you already have the libre-kernel installed.

View File

@ -0,0 +1,15 @@
Title: virtual/linux-sources unmask required
Author: projectmoon <projectmoon@agnos.is>
Posted: 2023-04-14
Revision: 1
News-Item-Format: 2.0
Changes to the linux-sources virtual have required that this overlay
patches that ebuild when using the libre-kernel. If you have set up this
overlay to only unmask specific packages, you should also add the
linux-sources package to your package.unmask file:
virtual/linux-sources::projectmoon
This will prevent portage from also installing linux sources package
like gentoo-sources when you already have the libre-kernel installed.

3
profiles/updates/Q1-2023 Normal file
View File

@ -0,0 +1,3 @@
move sys-kernel/librem-ec-acpi sys-apps/librem-ec-acpi
move sys-firmware/purism_ectool sys-apps/purism_ectool
move sys-apps/librem-ec-acpi sys-kernel/librem-ec-acpi

View File

@ -0,0 +1 @@
DIST BCB7CF877E7D47A7.asc 1213 BLAKE2B 5c7cd96062200e3419915a95977e3201299b52f35886de504cc669b5b5192519805f53301f7d70c4f0ac5a261733eb169a1372c1da1a48b0cd86a42ecbfbccae SHA512 1cc1b5bc86cf5b853e1b03f8d06e2080aadefb4b6b8af55f23a7b44afb57face718227c8401162fed2cbc394cf6fddcc65d121e313905b1acd16a4cf63d21e4b

View File

@ -0,0 +1,20 @@
# Copyright 2022 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="OpenPGP keys used to sign Linux-libre-related packages"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
SRC_URI="https://linux-libre.fsfla.org/pub/linux-libre/SIGNING-KEY -> BCB7CF877E7D47A7.asc"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
S="${WORKDIR}"
src_install() {
local files=( ${A} )
insinto /usr/share/openpgp-keys
newins - linux-libre.asc < <(cat "${files[@]/#/${DISTDIR}/}" || die)
}

View File

@ -0,0 +1,20 @@
DIST ansi_term-0.11.0.crate 17087 BLAKE2B 9bd35c045a01ce4c6c4a5db1b4f15e9412bb97426eec19d4421dffbec633de8d13452c13c1dc1b30998690b78d7ed38311aca700087f13a81f66bd1d5d7300c4 SHA512 a637466a380748f939b3af090b8c0333f35581925bc03f4dda9b3f95d338836403cf5487ae3af9ff68f8245a837f8ab061aabe57a126a6a2c20f2e972c77d1fa
DIST atty-0.2.14.crate 5470 BLAKE2B 2db856a9e898a430258f059aeaf7c844a153293e8856d90ac81f7d91a888c89198768ad5cb09303c23241fe85c560a55148fa56a303651a82b0edb895616bfab SHA512 d7b6c4b9a0f898d91ddbc41a5ee45bbf45d1d269508c8cc87ee3e3990500e41e0ec387afb1f3bc7db55bedac396dd86c6509f4bf9e5148d809c3802edcc5e1d9
DIST bitflags-1.2.1.crate 16745 BLAKE2B 0fa6d3ce44aad7616d5cd02aad8c1d0b0fed4022650eb43067c4a72e6fc88da05442674fa51826e4858a47c9de233e1ba2229820af094197cd11bb416ceffb2b SHA512 ad89b3798845e23737a620bba581c2ff1ff3e15bac12555c765e201d2c0b90ecea0cdbc5b5b1a3fa9858c385e8e041f8226f5acfae5bbbe9925643fff2bf3f0b
DIST cc-1.0.67.crate 53486 BLAKE2B 42fd02a5886df50857075c909819c8afcf091cee6b7bc517848786f287f4559e70a07f0a0f42a742baa2665465dfdb2139ecac7e93f1a41b16eab30556eb0259 SHA512 f1ad4abdaad2667b190d1f8df8515f603107be1f69bdbdc02b5159764a6ed18b3f672d6b06af50c7f2fd3e6e3dad5df0fcd0dda762d909ba0922c769f1efbe05
DIST clap-2.33.3.crate 201925 BLAKE2B bec9c866481c5b3fddeb314f68af9bce38fc421e42816182de3209e8ea3447b72cf033e6251eea27fe974eff8085b7d98cdd2911b5cc0ec6b4bf4c750deb8a25 SHA512 3eb0fd648e2e3f9e5ff69a5e6cf0d867304fe18523accd036f28a86de368e4774088a6936c108ccc045092c539fe7f7494ea96420ebf6b4bec16880cea84bedf
DIST downcast-rs-1.2.0.crate 11670 BLAKE2B 7d44d708c1ac068a02ea5d72dd3caa8a7f6d18b7ee653d520600acc9c52365824f5b8d3c68143d1d13aa438a18b16ff9975e15131cac7ec48b2d995184673d37 SHA512 b80b72f30b42c5e6b2bd33287f2dd22be5673b2fa5c1a8c75c5de224fc7eca46a55f2fce63c02d225dfbc94ac3462b4b2fec53d63331c70da6307ebcdcc6cb14
DIST hermit-abi-0.1.18.crate 9936 BLAKE2B a5a1d1c9bdf83fdca8edc392f8fa7d9b9b248ac8d716e009300220befa5d8d80601643e768037be89bbbe6e21adbe6349c94c595cee3837c4b92b5f98ba838ad SHA512 54f060c6c1c80d41f40cec7102345147efb535aff9fa5cc0ed4ccd7f010bfdb6daaf40626fd5069af60ceb42058452803b59d4bbcfbed4c5546c79b57ae0f914
DIST hidapi-1.2.5.crate 130695 BLAKE2B cbc920845e1ce108741925c7c8dbc15bfa864b251abd5659acdad9b7ac60a598c16a4b822bb29bfb9b0bdb2d1f68b745398c73d74155ceea03b1319a065f95b8 SHA512 38783fcba1b3d08b86ab2a2f03a8a955de82f60111f6014b1d143d09728f95d5ef825ec4b73fd04700e6170c2634e07b50310e9745ce3259019590248c2c27b0
DIST libc-0.2.89.crate 515952 BLAKE2B f8af6016b2613ef21f83bbb47b4f2a04939ab6f2d4d525959aa90c6874348327319c7a44084f27ca52d01cca37e95e2b1c5c809e4a82fd5fcfc670d445f23ee8 SHA512 da6668611b87837532de9844bb3db18d992ebfe7e0c064646f0d24014730c9451fe74c6d9374191172c2dd091e8b9ce83a7cf56fc0644088190c8963221f5b9a
DIST pkg-config-0.3.19.crate 15451 BLAKE2B dc23b5ef12719b4b3d2fc5c93c087399ba954a5e127be91b26619466d5d7422e71684d02905304dca65273d69b66338d94c0642e3810a14df845ef507ddc0bfb SHA512 42bc13c4e39c8f71690db527d815884acdfd2ccf5fbfea700c6ed60257e852cdcb1c443e7774409e51da53612b0ff0aa165554b99fd0cba973f94a8df52982d9
DIST purism_ectool-0.3.5.tar.gz 194591 BLAKE2B 717c18ab2b9632a6bbd443df0adb781bac3db4cb75ba0790a670d667458f2940257d0eb721f3a8af1898f8de26f180db5b149381649d7d5d1aa93c1fd10b7377 SHA512 c5b9b79407f8d1851c33b16336009b976036fc8ea31316c6721b6a464343729b788e62294b5359b35894a420593c63920adfa3954932a398ce2401f5cc83ebc6
DIST purism_ectool-9999.tar.gz 232692 BLAKE2B 8025dde406aa718336ece55430151ec30acf7b29bb9f50581abfe70d469a4780e87356bf2ea3dac601277bb117b1684876debeacff23ff3961e1cf939316a1dc SHA512 edbb688535084c8d6ebe7de9d2448248c575d7448afec6078ea90f09150079a33c96ea3b18b38b62005626db9e0c1bc201e5300954380e4dd0aa14b60ea9fd97
DIST redox_hwio-0.1.3.crate 3264 BLAKE2B e4a1f50d8f45ce3ab7a9760f070f9882930f3b0be7754854577d483e6bbd797f1f5e5ca16dc3677351572882368597ceeaad9ff7cdcc0f91195634524245c96e SHA512 d3cc726435da87dbb10adc7ce65257e0a3e9f9668b28fd4667027c9bbcad4ec9659c3fc7c91e94aac24cd8d6439036546d13e2134eaea7209c6265b3fa67bb66
DIST strsim-0.8.0.crate 9309 BLAKE2B 40a8be506c43ee1ffe006ddc7dee98c3d418bdd205d57b78f5d1e4c9312feb57e1eaf952e02d92d4e0932db240c6fba45beb06ea8c4fc6de1cf1faa8b6a3a939 SHA512 1d55a8d946cd55f5f37d06aea536549ded95739fa58c0f2da285a0041154c181f663682bdcac643aa198b3e762d694a04f058db985c62ebe22b5c16327ba6d34
DIST textwrap-0.11.0.crate 17322 BLAKE2B 257428908342774593bbd3528fcdae710712ff54e8a711393a24356d8ba0e16e466a4b20c05f942c48ca76b3b5b5aaa90ec202f782cad892caa8b71ccf124da6 SHA512 f5c0fe4f28ff1a3a0931e8e235b5157a45f67967985bcc752418c5ec3481fca44a8ae4800088889b37e8cd0533f53d3c456d5ffd19b767b3f83a87b49a2e209a
DIST unicode-width-0.1.8.crate 16732 BLAKE2B 5aa7b87eef1322e4151a3fcf981ade311b8fa030527d7561815950e58d3f15156163dfe34da6a708c37dccc3f7652bf7fc2cd899fe8bb0118b67c4113ff3a2d2 SHA512 0abba6da6981a2451e01d93bbd47652c46eb6fb07cc0214f33259fb29945bfd5ee2b302e883ddca8f68e921635f222701b7310e7da2a5e225f854980d1e474b0
DIST vec_map-0.8.2.crate 14466 BLAKE2B 8f109fbff19604b82ea2aa61c952e2ce9b5597ccc8e1ef4e847648e2de08dece8c4debe92889edeccb8d393645fd0b62436b49d236ded7ad181c4a51239a9539 SHA512 4f1ef59bc2c437e79f1f84fe021bce5aa8ccd581f500f3d5776913d5f17d45b03ccee64f5bd03d47656318cfc9344a1f4311079d471fa409a8e4e94c143973f9
DIST winapi-0.3.9.crate 1200382 BLAKE2B cb5799749ccd935ea2d7068d953cecf19f543d9db7dc16ad4584bb7005373ada34937a3ced7225544d8bc765da599911c7a3190efefb3a25b7c1bb7123b4f673 SHA512 ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97
DIST winapi-i686-pc-windows-gnu-0.4.0.crate 2918815 BLAKE2B 4d357e4d30f9552972170d65b9a5358b69c46a3e772fe05efc22f3d4ffc1caeeaad7aacdc7abd503a7ad0545f8bd7d22bf351dcb6df76f812fa4d45c34d65df0 SHA512 a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2
DIST winapi-x86_64-pc-windows-gnu-0.4.0.crate 2947998 BLAKE2B 2ad1ea8b5fa07d544e910ccba043ae925269b76b26c9da356305b34b86741dd8b9aff0b9ffe3d562db4fcd7d7c46a11ce9e3168b782b1d89ae6881742b7ede82 SHA512 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513

View File

@ -0,0 +1,44 @@
# Copyright 2017-2022 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.5.2
EAPI=7
CRATES="
ansi_term-0.11.0
atty-0.2.14
bitflags-1.2.1
cc-1.0.67
clap-2.33.3
downcast-rs-1.2.0
hermit-abi-0.1.18
hidapi-1.2.5
libc-0.2.89
pkg-config-0.3.19
redox_hwio-0.1.3
strsim-0.8.0
textwrap-0.11.0
unicode-width-0.1.8
vec_map-0.8.2
winapi-0.3.9
winapi-i686-pc-windows-gnu-0.4.0
winapi-x86_64-pc-windows-gnu-0.4.0
"
inherit cargo
EC_VERSION="1.11"
DESCRIPTION="Purism Librem EC tool"
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
SRC_URI="
$(cargo_crate_uris ${CRATES})
https://source.puri.sm/firmware/librem-ec/-/archive/${EC_VERSION}/librem-ec-${EC_VERSION}.tar.gz -> ${P}.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}/librem-ec-${EC_VERSION}/tool"
RESTRICT="mirror"

View File

@ -0,0 +1,44 @@
# Copyright 2017-2024 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.5.4-r1
EAPI=7
CRATES="
ansi_term@0.11.0
atty@0.2.14
bitflags@1.2.1
cc@1.0.67
clap@2.33.3
downcast-rs@1.2.0
hermit-abi@0.1.18
hidapi@1.2.5
libc@0.2.89
pkg-config@0.3.19
redox_hwio@0.1.3
strsim@0.8.0
textwrap@0.11.0
unicode-width@0.1.8
vec_map@0.8.2
winapi@0.3.9
winapi-i686-pc-windows-gnu@0.4.0
winapi-x86_64-pc-windows-gnu@0.4.0
"
inherit cargo
EC_VERSION="l14-freeze-202404-test-20240425"
DESCRIPTION="Purism Librem EC tool"
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
SRC_URI="
$(cargo_crate_uris ${CRATES})
https://source.puri.sm/firmware/librem-ec/-/archive/${EC_VERSION}/librem-ec-${EC_VERSION}.tar.gz -> ${P}.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}/librem-ec-${EC_VERSION}/tool"
RESTRICT="mirror"

View File

@ -0,0 +1,36 @@
{%- block header -%}
# Copyright 2017-{{ this_year }} Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild {{ cargo_ebuild_ver }}
{% endblock %}
EAPI={%- block eapi -%}7{%- endblock %}
{% block crates -%}
CRATES="
{% for crate in crates -%}
{{ crate }}
{%- endfor -%}"
{%- endblock %}
inherit {% block inherit -%}cargo{%- endblock %}
EC_VERSION="l14-shutoff-202403"
DESCRIPTION={%- block description -%}"{{ description | trim }}"{%- endblock %}
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
SRC_URI={%- block src_uri -%}{% raw -%}"
$(cargo_crate_uris ${CRATES})
https://source.puri.sm/firmware/librem-ec/-/archive/${EC_VERSION}/librem-ec-${EC_VERSION}.tar.gz -> ${P}.tar.gz
"{%- endraw %}{%- endblock %}
LICENSE="MIT"
SLOT={%- block slot -%}"0"{%- endblock %}
KEYWORDS={%- block keyword -%}"~amd64"{%- endblock %}
{% block variables -%}
S="${WORKDIR}/librem-ec-${EC_VERSION}/tool"
RESTRICT="mirror"
{%- endblock %}
{%- block phases -%}
{%- endblock -%}

View File

@ -0,0 +1,14 @@
DIST genpatches-5.15-156.base.tar.xz 6004636 BLAKE2B f70c2a3bfc3d65fea8d4764b953d147a1725162aeaf319701a3d4b1d47c846932c4c8cd009bf81b4ce33754e966dac4630e2f690c403ec5181e3cc122496db09 SHA512 4d2fd08626d433d7230b27fb1cbd8a3fec9a942ddbd01988dba8632f25b510353b5086f4db1d529b88770e579189fc7bf6a4d02828c662fcb230e51efbecad9c
DIST genpatches-5.15-156.extras.tar.xz 3936 BLAKE2B ad08b5d93b943236326d333c627ae8cd279d78fd2b8f8df420ce75be815472dca9785b8eb14015ca2dbc92560a8589d31b9f9edbf81280c85d1ce6fe58aed0b1 SHA512 580ba97a039ff7417b448d4df13b67ed262b7a47be449515ca80125a89b5da3eeee773757db6ff7389b501daee6ab708e19dc2713088ee118859e1e9d3f4b303
DIST genpatches-5.15-157.base.tar.xz 6083340 BLAKE2B da2898a405bfd934e761180064107f4d87d144105ade4c825ff9299cb4a0b57324927cf34d3a55fc7a0227d9db053caf5b0f8159ca0ddbd946d31459b2683e1f SHA512 04c2d322ec1f0946b7f0f551e0fc0342da749cade5f20f2da1a1e60fd0cd946593a797c053bbd0eb8121f70e69f6766f8c945a99fd77fca3eef89aeae6d5b871
DIST genpatches-5.15-157.extras.tar.xz 3936 BLAKE2B d559b4c240ab2b8a0b522d846c3d9707b0beacd800e137517c29b51253283b47caf05f7facbdd7be747255dc2485170ecfad04a3ba5293d749c8d22ae60886f7 SHA512 e99880adebd2d08067fbcc73bf01eb844c39cef7c06e99b95c9622949e38a2ed58045f27e71bde4d5321dc06212848c884c8f4added4c41a8a1197cd375091b8
DIST genpatches-5.15-160.base.tar.xz 6317352 BLAKE2B ccee78c3ccba8755f0e9de9e62c870d7f85d5302d2cdafd178184bbbec51d1a69be990c49f58fe1a1f897ed7e59bba1cc5eacc7589b4476ee6fcac19a90b0e78 SHA512 e36a435f9e353cd48ee12322f998a2fb4e9cf29eeb9e6f6f95534a48524db17b6eb654aa514ddba1108135eb92da7ef6af54f532bf29ca89b566d8903c1456e6
DIST genpatches-5.15-160.extras.tar.xz 3936 BLAKE2B 7b4d7802346372f862321837b1b554dcc5cd666be0a39fb56c6a6364060c3c5b5fe37d77d131beff6f0ed4c6290d9c9f9eafc58e9a923e268cafd2814ea9d18e SHA512 4ff242b000ce5969dd50c424ebe94a417271a2af081584e91d155ef11c3b11536fc8a242b0e536491396317ead92a825590208c5f317dc6a8975bbfae28a17a1
DIST gentoo-kernel-config-g11.tar.gz 5077 BLAKE2B dc17ded74f79baddd703a78084113b85e7130877b300b5fe60453cde515fe37c52ece7877049bb0ef384f74ecfc73d59d7d4a513f8fef7bf4f651599946383e8 SHA512 e91156765ef2a48396370f884fdecd7bb1d600e5167f6bad51130520f886e9198adae375adf3e40fa803abc5d5482057775fb0275ab2589bd8f94d8af4a03c4e
DIST kernel-x86_64-fedora.config.5.15.19 223286 BLAKE2B 239995703c01dcb6d179133dd115bc0a57872c07d7a08afaf4d92cf6d78f0c17b19487b5b399ac7fdde5d460fa7931628147817a569fef2c3a62951c96054bdf SHA512 9bee4aff7e5ef4ada57bee7496aaf47b8fdd5c936c4c9b580660d130db0678eaecdebdbcab0dfcaf5c17a71f6419069840db10f5886806b6fc810f8a3619554f
DIST linux-libre-5.15.147-gnu.tar.xz 119830992 BLAKE2B 64f706750646a092a0c3812a8916ac92b73b52d89940eb4a0fd6f6eb780a9738534aa94566faa7c393c336747fda0b1a35030c1315a97726ef53f632c0a8510c SHA512 4adce0e3f2a188abcc2bab12b28a6c5cec5b634f07f2f51196dad415d443cf36a4e0e3848f325291bb79984dbc199d607e8426479325e16f2c569be81e2b3c60
DIST linux-libre-5.15.147-gnu.tar.xz.sign 195 BLAKE2B ec0af385c52fe73d1717f9e7106f76424c8715e8aebfc2e1e8ba654734d8c8721fd849b5b70bac484481ebbe16dfdd49929f61855631a222a562b2d90de3128f SHA512 14b7ffd1da3f3127833b31fd2d4217ff420790bae3c4497ca9009a1bfbf48c96b1b3bf3f0c03b6d428f2b931d7e4af80915d3c2d39470b7d171b37d1b0218e67
DIST linux-libre-5.15.148-gnu.tar.xz 119840388 BLAKE2B aec5875e3072c92942c8378f4c1aedf89ba51f698879844b06e56e2db48ccec14563426aa4d897fcd56e0fcaf3c934ba06e76690e5e34c127612cc07fe79da4e SHA512 0eb657f676f1106dd7761b32ad75a0925506b2f4bf8ac0203ffcdfdd1f99bf1c2070fe750bc0c016eb36036613738626894f61fdc43a755f7700b15391eabef9
DIST linux-libre-5.15.148-gnu.tar.xz.sign 195 BLAKE2B 01574415a3f14f106244d5f571bc6379636def56e79ef26c638cad0f87e819ace8d9c827ca33bc5a9dd279e261d2d64e83a2c28e71c1834902bbaceea58646d7 SHA512 5870343375cd9a279ef0b2c1bfff5bb9cfc1cd77bb84f593e91db43c0a4e0ab216734c3cdd6c2999777f56f187c8bf10f3468f41fa98221355eef6f5b673c0d2
DIST linux-libre-5.15.151-gnu.tar.xz 119857708 BLAKE2B d669592780b418cd486215c1e027be255a9811589029baa9a0f754a2602b617e63e15ef310fc9a62b033a453ae26821c8e1485eace82aa390f4723323a24b833 SHA512 ba63fb805774500f5b0d49c7d992a180d251ea7a6cbf88dc5a5a824b7a05f14f5ebaa72200f0cfbb7f85278dc48c8c8933b6662b8df801b8bc35c7976b329984
DIST linux-libre-5.15.151-gnu.tar.xz.sign 195 BLAKE2B 7d14471b7dc1cfbc4ed88f48037917e5054898f3e687ee0b77041de224e706e61696f5832d88eed62f319a37156c4e086513910e47d26d9d010b4d1010ac8ea2 SHA512 ce7352b660de9d717dcfd61ada8bd19837a562f2fc7b728d7a683d9b8bc52636600b1ca35eace403e9c378cef12f54bc5395f8ba5d9beeebc01fc6139a273a8d

View File

@ -0,0 +1,148 @@
# Copyright 2020-2023 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit kernel-build verify-sig
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
RESTRICT="mirror"
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
CONFIG_VER=5.15.19
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
GENTOO_CONFIG_VER=g11
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
SRC_URI+="
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
verify-sig? (
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
)
amd64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
-> kernel-x86_64-fedora.config.${CONFIG_VER}
)
"
# Workdir is named linux-PV.
MY_P=linux-${PV}
S=${WORKDIR}/${MY_P}
LICENSE="GPL-2"
KEYWORDS="amd64"
IUSE="debug +gentoo"
BDEPEND="
debug? ( dev-util/pahole )
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
pkg_pretend() {
if has_version -d sys-kernel/linux-firmware[redistributable]; then
ewarn "sys-kernel/linux-firmware was found installed on your system,"
ewarn "but it is configured to install non-Free firmware files."
ewarn "The non-Free firmware files may be required for some hardware"
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
ewarn "To install only the Free firmware, set the -redistributable"
ewarn "USE flag on sys-kernel/linux-firmware."
if use initramfs; then
elog
elog "If you decide to change or remove linux-firmware later, you"
elog "can rebuild the initramfs via issuing a command equivalent to:"
elog
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
fi
else
if ! has_version -d sys-kernel/linux-firmware; then
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
ewarn "on your system. This package provides various firmware files that"
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
ewarn "to pause or abort the build process and install it before"
ewarn "resuming."
if use initramfs; then
elog
elog "If you decide to install linux-firmware later, you can rebuild"
elog "the initramfs via issuing a command equivalent to:"
elog
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
fi
fi
fi
}
src_unpack() {
if use verify-sig; then
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
verify-sig_verify_detached $FILE $SIGFILE
fi
default
}
src_prepare() {
local PATCHES
if use gentoo; then
# Fiters out the kernel incremental version upgrade patches,
# leaving only the Gentoo bug fix/functionality changes. The
# regex removes any patches starting with 10XX to 14XX.
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
else
# If no patches are to be applied, apply only the config changes
# for a Gentoo installation, as this does not change any actual
# Kernel functionality.
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
fi
default
local biendian=false
# prepare the default config
case ${ARCH} in
amd64)
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
;;
*)
die "Unsupported arch ${ARCH}"
;;
esac
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
die 'could not remove EXTRAVERSION'
local myversion="-gnu-dist"
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
local merge_configs=(
"${T}"/version.config
"${dist_conf_path}"/base.config
)
use debug || merge_configs+=(
"${dist_conf_path}"/no-debug.config
)
# this covers ppc64 and aarch64_be only for now
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
merge_configs+=( "${dist_conf_path}/big-endian.config" )
fi
kernel-build_merge_configs "${merge_configs[@]}"
}

View File

@ -0,0 +1,148 @@
# Copyright 2020-2023 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit kernel-build verify-sig
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
RESTRICT="mirror"
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
CONFIG_VER=5.15.19
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
GENTOO_CONFIG_VER=g11
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
SRC_URI+="
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
verify-sig? (
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
)
amd64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
-> kernel-x86_64-fedora.config.${CONFIG_VER}
)
"
# Workdir is named linux-PV.
MY_P=linux-${PV}
S=${WORKDIR}/${MY_P}
LICENSE="GPL-2"
KEYWORDS="amd64"
IUSE="debug +gentoo"
BDEPEND="
debug? ( dev-util/pahole )
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
pkg_pretend() {
if has_version -d sys-kernel/linux-firmware[redistributable]; then
ewarn "sys-kernel/linux-firmware was found installed on your system,"
ewarn "but it is configured to install non-Free firmware files."
ewarn "The non-Free firmware files may be required for some hardware"
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
ewarn "To install only the Free firmware, set the -redistributable"
ewarn "USE flag on sys-kernel/linux-firmware."
if use initramfs; then
elog
elog "If you decide to change or remove linux-firmware later, you"
elog "can rebuild the initramfs via issuing a command equivalent to:"
elog
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
fi
else
if ! has_version -d sys-kernel/linux-firmware; then
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
ewarn "on your system. This package provides various firmware files that"
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
ewarn "to pause or abort the build process and install it before"
ewarn "resuming."
if use initramfs; then
elog
elog "If you decide to install linux-firmware later, you can rebuild"
elog "the initramfs via issuing a command equivalent to:"
elog
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
fi
fi
fi
}
src_unpack() {
if use verify-sig; then
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
verify-sig_verify_detached $FILE $SIGFILE
fi
default
}
src_prepare() {
local PATCHES
if use gentoo; then
# Fiters out the kernel incremental version upgrade patches,
# leaving only the Gentoo bug fix/functionality changes. The
# regex removes any patches starting with 10XX to 14XX.
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
else
# If no patches are to be applied, apply only the config changes
# for a Gentoo installation, as this does not change any actual
# Kernel functionality.
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
fi
default
local biendian=false
# prepare the default config
case ${ARCH} in
amd64)
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
;;
*)
die "Unsupported arch ${ARCH}"
;;
esac
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
die 'could not remove EXTRAVERSION'
local myversion="-gnu-dist"
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
local merge_configs=(
"${T}"/version.config
"${dist_conf_path}"/base.config
)
use debug || merge_configs+=(
"${dist_conf_path}"/no-debug.config
)
# this covers ppc64 and aarch64_be only for now
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
merge_configs+=( "${dist_conf_path}/big-endian.config" )
fi
kernel-build_merge_configs "${merge_configs[@]}"
}

View File

@ -0,0 +1,148 @@
# Copyright 2020-2023 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit kernel-build verify-sig
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
RESTRICT="mirror"
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
CONFIG_VER=5.15.19
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
GENTOO_CONFIG_VER=g11
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
SRC_URI+="
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
verify-sig? (
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
)
amd64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
-> kernel-x86_64-fedora.config.${CONFIG_VER}
)
"
# Workdir is named linux-PV.
MY_P=linux-${PV}
S=${WORKDIR}/${MY_P}
LICENSE="GPL-2"
KEYWORDS="amd64"
IUSE="debug +gentoo"
BDEPEND="
debug? ( dev-util/pahole )
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
pkg_pretend() {
if has_version -d sys-kernel/linux-firmware[redistributable]; then
ewarn "sys-kernel/linux-firmware was found installed on your system,"
ewarn "but it is configured to install non-Free firmware files."
ewarn "The non-Free firmware files may be required for some hardware"
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
ewarn "To install only the Free firmware, set the -redistributable"
ewarn "USE flag on sys-kernel/linux-firmware."
if use initramfs; then
elog
elog "If you decide to change or remove linux-firmware later, you"
elog "can rebuild the initramfs via issuing a command equivalent to:"
elog
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
fi
else
if ! has_version -d sys-kernel/linux-firmware; then
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
ewarn "on your system. This package provides various firmware files that"
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
ewarn "to pause or abort the build process and install it before"
ewarn "resuming."
if use initramfs; then
elog
elog "If you decide to install linux-firmware later, you can rebuild"
elog "the initramfs via issuing a command equivalent to:"
elog
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
fi
fi
fi
}
src_unpack() {
if use verify-sig; then
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
verify-sig_verify_detached $FILE $SIGFILE
fi
default
}
src_prepare() {
local PATCHES
if use gentoo; then
# Fiters out the kernel incremental version upgrade patches,
# leaving only the Gentoo bug fix/functionality changes. The
# regex removes any patches starting with 10XX to 14XX.
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
else
# If no patches are to be applied, apply only the config changes
# for a Gentoo installation, as this does not change any actual
# Kernel functionality.
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
fi
default
local biendian=false
# prepare the default config
case ${ARCH} in
amd64)
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
;;
*)
die "Unsupported arch ${ARCH}"
;;
esac
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
die 'could not remove EXTRAVERSION'
local myversion="-gnu-dist"
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
local merge_configs=(
"${T}"/version.config
"${dist_conf_path}"/base.config
)
use debug || merge_configs+=(
"${dist_conf_path}"/no-debug.config
)
# this covers ppc64 and aarch64_be only for now
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
merge_configs+=( "${dist_conf_path}/big-endian.config" )
fi
kernel-build_merge_configs "${merge_configs[@]}"
}

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>projectmoon@agnos.is</email>
<name>projectmoon</name>
</maintainer>
<use>
<flag name="initramfs">Build initramfs along with the kernel.</flag>
<flag name="gentoo">Apply selected patches from the Gentoo kernel patchset.</flag>
</use>
</pkgmetadata>

View File

@ -1,3 +0,0 @@
DIST linux-5.10.tar.xz 114230900 BLAKE2B 86103699a6bc906e85429430df098b0ddb7cfc8c887f98b37f994498388d634554e119eadb1b15f591bdf4f463e7efb7420e3e370af0029b7ed9e988a5f26b01 SHA512 ccc52db049a66ff146d9fc84fb00e783f2d04211156233a382f87589fec7631b8fbb3e76bfd94279607b883d25f9745e6c7d2bd62b13311dc6b425002bd42ec0
DIST patch-5.10-gnu-5.10.47-gnu.xz 1542276 BLAKE2B 88c69d768103da84571bc3ec3a819dd41cd543411a191f25a8f8e8f3c5472c9f78a364845203b090e911e8dcc13d20cfddbfc533adef052652d95d97c6c7bf61 SHA512 deb1ea9b54af09c3ea48ee066a8a315da0d82459c3e46cbcff71d69de5a6549ebe75fb9ce94da89164338dc2680f312f8ff8ef7ac35d40ce404b1bbb679661cf
DIST patch-5.10-gnu-5.10.48-gnu.xz 1542880 BLAKE2B 26dd0d4b9a60c315aa9ebf376ab29c6a93d75a7be554af75df4e0d6a81252ae8d72b5d26daab9ac6e0010cb024f36b681da6610fae91d1423abee5a76eecc54a SHA512 60751c93cb5f8fbe65ea8709f5dd35783840c2e912010ac87101882035540cc7983a6d92720647cbaa2f054492a3ad1f0e6118354e632c5e9abbaa4151278649

View File

@ -1,26 +0,0 @@
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_PREDEBLOBBED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the Linux Libre kernel"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
SRC_URI="${BASE_URI} ${PATCH_URI}"
RESTRICT="mirror"
KEYWORDS="~amd64"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-5.10-gnu-5.10.47-gnu.xz"
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}

View File

@ -1,26 +0,0 @@
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_PREDEBLOBBED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Full sources for the Linux Libre kernel"
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
SRC_URI="${BASE_URI} ${PATCH_URI}"
RESTRICT="mirror"
KEYWORDS="~amd64"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-5.10-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}

View File

@ -0,0 +1,2 @@
DIST librem-ec-acpi-dkms-v0.9.1.tar.gz 13003 BLAKE2B 87d7988be2de75d491eaaa49918db354d426deefd57b4afa72b1447e5993d9b5b06b6964092c050ef039d7d9faa33e55137c1879a1b959e6f4f3ce877137e6db SHA512 93ee26917eddbef9aa9c0eb83007452ebf57c279f41c3061ee52756bb1f748c72935067b19c3417ed7b8a9795990b0f060241c0b7f2348d7f8ec01e9f88dcd3c
DIST librem-ec-acpi-dkms-v0.9.2.tar.gz 13093 BLAKE2B 0c29aeec2f4804be98f628b16c2219acf805d3659d8dd4797db2cdcc94316bfb5ab5c396d2b3584de12b573907e671b0422e89c0a774516e4b1e573032fd5843 SHA512 b5d10fcf34a8b424138f9db1b06e916d809462ea55c7ca2565f13154da4fa49736ac95fb1b131c27ee49aa5f170f3e8a1a9c9a61c69e0364bcee37669759e8f6

View File

@ -0,0 +1,46 @@
# Copyright 2021 projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info linux-mod
DESCRIPTION="Librem EC ACPI Driver"
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="dist-kernel"
RDEPEND="dist-kernel? ( virtual/dist-kernel:= )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
BUILD_TARGETS="clean all"
src_prepare() {
default
# Makefile hardcoded to point at running kernel
# but we want the user-chosen kernel.
linux-info_get_any_version
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|| die "could not set kernel version in makefile"
}
pkg_setup() {
if ! use kernel_linux ; then
die "Unable to install"
fi
BUILD_PARAMS="KV=${KV_FULL} KSRC=${KERNEL_DIR} KERNELDIR=${KV_DIR}"
linux-mod_pkg_setup
}
src_install() {
linux-mod_src_install
einstalldocs
}

View File

@ -0,0 +1,38 @@
# Copyright 2021 projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info linux-mod
DESCRIPTION="Librem EC ACPI Driver"
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
BUILD_TARGETS="clean all"
src_prepare() {
default
# Makefile hardcoded to point at running kernel
# but we want the user-chosen kernel.
linux-info_get_any_version
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|| die "could not set kernel version in makefile"
}
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERNELDIR=${KV_DIR}"
}
src_install() {
linux-mod_src_install
einstalldocs
}

View File

@ -0,0 +1,46 @@
# Copyright 2021-2023 projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info linux-mod
DESCRIPTION="Librem EC ACPI Driver"
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="dist-kernel"
RDEPEND="dist-kernel? ( virtual/dist-kernel:= )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
BUILD_TARGETS="clean all"
src_prepare() {
default
# Makefile hardcoded to point at running kernel
# but we want the user-chosen kernel.
linux-info_get_any_version
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|| die "could not set kernel version in makefile"
}
pkg_setup() {
if ! use kernel_linux ; then
die "Unable to install"
fi
BUILD_PARAMS="KV=${KV_FULL} KSRC=${KERNEL_DIR} KERNELDIR=${KV_DIR}"
linux-mod_pkg_setup
}
src_install() {
linux-mod_src_install
einstalldocs
}

View File

@ -0,0 +1 @@
DIST librem-control-9999.tar.gz 19126 BLAKE2B e5721e04c8a7996e35aa51f40e4d56acb9f59880a8266b0d6e5c515b2a6367d628973113c9776ef7d79070d7dfeda09704686340843c835e685a93922756f841 SHA512 0d3bd3d38bc0c3f476d96214e68883a2f6ad270842b4b4922ea0f4706aaf14f188ebf08f0a23fd5524c9f8e3360aa70288b0c730d56df69b0c0f137d2694e8e7

View File

@ -0,0 +1,24 @@
# Copyright 1999-2022 Gentoo Authors, projectmoon
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gnome.org xdg
MY_COMMIT="a19bfbf4f6bd1d2b0d2d6abf02252e1e0cbc2d61"
RESTRICT="mirror"
DESCRIPTION="App to control some system settings of Librem devices."
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-control"
SRC_URI="https://source.puri.sm/nicole.faerber/librem-control/-/archive/${MY_COMMIT}/${PN}-${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
LICENSE="GPL-2"
SLOT="0"
DEPEND="
>=sys-kernel/librem-ec-acpi-0.9.1-r1
>=gui-libs/gtk-4.6:4
>=sys-auth/polkit-121
"
RDEPEND="${DEPEND}"

View File

@ -0,0 +1,20 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Virtual to depend on any Distribution Kernel"
HOMEPAGE=""
SRC_URI=""
LICENSE=""
SLOT="0/${PVR}"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
RDEPEND="
|| (
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV}
~sys-kernel/libre-kernel-${PV}
)"

View File

@ -0,0 +1,20 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Virtual to depend on any Distribution Kernel"
HOMEPAGE=""
SRC_URI=""
LICENSE=""
SLOT="0/${PVR}"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
RDEPEND="
|| (
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV}
~sys-kernel/libre-kernel-${PV}
)"

View File

@ -0,0 +1,17 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Virtual to depend on any Distribution Kernel"
SLOT="0/${PVR}"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
RDEPEND="
|| (
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV}
~sys-kernel/libre-kernel-${PV}
)
"

View File

@ -0,0 +1,17 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Virtual to depend on any Distribution Kernel"
SLOT="0/${PVR}"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
RDEPEND="
|| (
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV}
~sys-kernel/libre-kernel-${PV}
)
"

View File

@ -0,0 +1,17 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Virtual to depend on any Distribution Kernel"
SLOT="0/${PVR}"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
RDEPEND="
|| (
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV}
~sys-kernel/libre-kernel-${PV}
)
"

View File

@ -0,0 +1,17 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Virtual to depend on any Distribution Kernel"
SLOT="0/${PVR}"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
RDEPEND="
|| (
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV}
~sys-kernel/libre-kernel-${PV}
)
"

View File

@ -0,0 +1,28 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Virtual for Linux kernel sources"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="firmware"
RDEPEND="
firmware? ( sys-kernel/linux-firmware )
|| (
sys-kernel/gentoo-sources
sys-kernel/vanilla-sources
sys-kernel/git-sources
sys-kernel/mips-sources
sys-kernel/pf-sources
sys-kernel/rt-sources
sys-kernel/zen-sources
sys-kernel/raspberrypi-sources
sys-kernel/gentoo-kernel
sys-kernel/gentoo-kernel-bin
sys-kernel/vanilla-kernel
sys-kernel/linux-next
sys-kernel/asahi-sources
sys-kernel/libre-kernel
)"