Compare commits
No commits in common. "8b552d60fb04ee6ab579a7f4355942f191e371ac" and "c1a3cf09c1f460af5fa39ea0be20dfa1126dddd1" have entirely different histories.
8b552d60fb
...
c1a3cf09c1
|
@ -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-${KV_MAJOR}.${KV_MINOR}-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
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
function get_version {
|
|
||||||
local arch=$1
|
|
||||||
local xpath='(//td[contains(@class, "kk-keyword-stable")]//span[contains(., '"$arch"')]/ancestor::tr/td[contains(@class, "kk-version")]//a)[1]/text()'
|
|
||||||
version=$(curl -s 'https://packages.gentoo.org/packages/sys-kernel/gentoo-sources' | xmllint --nowarning --recover --html --xpath "$xpath" - 2>/dev/null)
|
|
||||||
echo $version
|
|
||||||
}
|
|
||||||
|
|
||||||
VERSION=$(get_version "amd64")
|
|
||||||
echo "Current stable gentoo-sources (amd64) is ${VERSION}"
|
|
||||||
|
|
||||||
KV_MAJOR=$(echo $VERSION | cut -d'.' -f1)
|
|
||||||
KV_MINOR=$(echo $VERSION | cut -d'.' -f2)
|
|
||||||
KV_PATCH=$(echo $VERSION | cut -d'.' -f3)
|
|
||||||
|
|
||||||
cp gnu-sources-x.y.z.ebuild.template sys-kernel/gnu-sources/gnu-sources-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.ebuild
|
|
||||||
|
|
||||||
echo "Created new ebuild for libre kernel ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
|
|
|
@ -13,7 +13,7 @@ SRC_URI="${BASE_URI} ${PATCH_URI}"
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
UNIPATCH_LIST_DEFAULT=""
|
UNIPATCH_LIST_DEFAULT=""
|
||||||
UNIPATCH_LIST="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
|
UNIPATCH_LIST="${DISTDIR}/patch-5.10-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
kernel-2_pkg_postinst
|
kernel-2_pkg_postinst
|
||||||
|
|
Loading…
Reference in New Issue