Compare commits

..

No commits in common. "d8f5fa47f3a6f49a40b5cc96152a634a0aae696e" and "0baf1a32f1542064acb61451f8f150a5c29e42ae" have entirely different histories.

9 changed files with 301 additions and 166 deletions

View File

@ -1,2 +1,8 @@
DIST spicetify-cli-2.28.1-deps.tar.xz 5168592 BLAKE2B b32e9905f338f82fc46ce41af56b5195ea034f31b2a2a8da9ac98367ccfd03f4d12f430a251664354507955d08296ad001bb025019dc754c4d09d291a06ad002 SHA512 4d276c2ca678622700939a80daa80c334c7818c0ad3290eb10f5bc1eca32e62d276fbff282307d0a8a6267dbe67446e58b1d6730681749d73b92326f01ddb869 DIST spicetify-cli-2.27.0-deps.tar.xz 5124844 BLAKE2B e349d894439d2b89a0d574c4a0190f151278d676d3745d1e9b4f6eb956d3eef93e2d1115793b53432abd6ac27453af4cf0d69df607a076861fd79c8b34d08f54 SHA512 3beab19708ae8227a61338f164c5007231354fb61e90e50567b9ed71e2a47db2ccd7ef2dab3b1fd28cc136723f378c48d3f15b883efe719036e9920a6ac0eb2a
DIST spicetify-cli-2.28.1.tar.gz 2042062 BLAKE2B 82b55d0c2ebe1669a8ebf14874c8eb934e08a48e61b6eea88ac683c16a09e20cedd324e92b71fdea0683c78597513789ca8f7b043bb985be0c87add79ffe57da SHA512 aa22bb51826d0ff2ebbd47029bc65eb9f3b6431851f70853977c54e4aad0317f831ca74e48dd4e1733f65e40a728fc11e356d7163b00f48b52df8cb6a2a96296 DIST spicetify-cli-2.27.0.tar.gz 2041179 BLAKE2B f40d477eabe9c3820a23f64d910c8d273e83cf885706ba542b3435f5636f80cc39ebcdf46d3ae7c8a560d5c644b037b012e60276770ac957383c5fd5382158db SHA512 9a0e846c7046a4ffa09ea33eff800135783a54adc4ec5a844def388ee2bbe544fc0da14a896e82dabf041e4e9a21d0da15fa45691e2fe62a0970b47700b9e63d
DIST spicetify-cli-2.27.1-deps.tar.xz 5131312 BLAKE2B e1925ebc9fcadac597ae9d655b8e3b8b8de2eb6f5cc6fc27df6752b12dbdaf8e40b95cd5c6b4bd6c7e515c50d9edbd4822ca94c3683f692a8e59594c417b9383 SHA512 0b865a010be66e010a7b9b0bdc40cbb55ab042c47a52ee0ce03e0b75981402219e3dafca59d972281a1c95cff6366a4b97ae3250890c25bfe84684b80b6e6258
DIST spicetify-cli-2.27.1.tar.gz 2040021 BLAKE2B 44685c319e5609bbeac8e97482b3d0ac4271aca98dd681ea35646c2117489903aeaf0426f199cc56374f83d83d7cc2a069dfe23062dee7e879a57ebd35141122 SHA512 3abee3ee3ab65be3f9a2246a8564dfbf742a65d4b261408c414ebdb526379d5afc1165eb4b0df388cf713e7028adfb09c571740083ae977b3af5fec1347c6247
DIST spicetify-cli-2.27.2-deps.tar.xz 5132028 BLAKE2B 760f47a6369d90bd54e01fa84d9679a0adb044578c4fa1eee70e0fd4ca5ce99d510c596a011eeafa01c82effa66c34773a7dd18b69078d361c88227ea9ef3192 SHA512 de08908085546fae1b181d9708ddc4ffc5c0c287880f8a612877e6a4b4b4459a12fe859557db5f9f18a4474acb62e21f7b2b7ceeaa359e91200d394e5ed7d8ec
DIST spicetify-cli-2.27.2.tar.gz 2041673 BLAKE2B 4dafa1f31fb3575d083d21bbe2e0a70f14810e464223cb878178a164a127514fccea1c8ec169e42d79f58265ad46ec4340c3a0d957c4301f61351f07fbf1643d SHA512 e71b045c564a4887d040229ae9d1d651f769f6b6b8c905f9680e768e7c5b7ea4c441b8f32d1599e178e0cfd5d004af029eafa75fa6ba73a15d91e2ab89514702
DIST spicetify-cli-2.28.0-deps.tar.xz 5167840 BLAKE2B 7dfc76e9e2156a6b6e8525902bd793fe312e3067e6b7cf5bb12ca7dff5050869ae0a09c5953f4ae7d48ab8fc63e0c32c9de37feec02d361200bf70cd52db5f10 SHA512 ef0e7ab215fed48060cbd72f80ab0e4e8801261c3cc4fde019b469656ffdc36badd7ded7b844cd855467b4d2f5af725ba2a626d042813ae43bc32afbeb39fb4b
DIST spicetify-cli-2.28.0.tar.gz 2041974 BLAKE2B b2dc56e11e2056f64f0316d338dcaeb0a896b1c28c33810ebe6f6c594c543cab83a61968dcd1231ff9f819cc86cf04ea6212df07045e3a1f1d32bc2f4ca80606 SHA512 23dbac16bdb26dcacd987b120eb82b746ba9dafad7eb425e60a9cea3abb2c4cdc4b87376dedcdbf28c0268d3d55a39c15cebad6411f9f7ba4810644feb90abb7

View File

@ -0,0 +1,95 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
WHITELIST_VERSIONS=(
"~ 1.2.22"
"~ 1.2.20"
"~ 1.2.13"
"~ 1.2.11"
"~ 1.2.9"
"~ 1.2.8"
)
whitelist_versions() {
local version_spec version1 version2
local -a deps
SPOTIFY_VERSIONS=
# Iterate in reverse for elog
for ((index = $(( ${#WHITELIST_VERSIONS[@]} - 1 )); index >= 0; index--)); do
read -r version_spec version1 version2 <<< "${WHITELIST_VERSIONS[${index}]}"
case ${version_spec} in
"<>")
deps[$index]="( <=media-sound/spotify-${version2} >=media-sound/spotify-${version1} )"
SPOTIFY_VERSIONS+="${version1} -> ${version2}"
;;
"~")
deps[$index]="~media-sound/spotify-${version1}"
SPOTIFY_VERSIONS+="${version1}"
;;
*)
die "Invalid version specifier in WHITELIST_VERSIONS"
;;
esac
if [[ ${index} == 0 ]]; then
SPOTIFY_VERSIONS+=". "
elif [[ ${index} == 1 ]]; then
SPOTIFY_VERSIONS+=" and "
else
SPOTIFY_VERSIONS+=", "
fi
done
RDEPEND=" || ( ${deps[@]} )"
}
whitelist_versions
DESCRIPTION="Commandline tool to customize Spotify client."
HOMEPAGE="https://spicetify.app/"
SRC_URI="
https://github.com/spicetify/spicetify-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
"
LICENSE="Apache-2.0 BSD LGPL-2.1 MIT"
SLOT="0"
KEYWORDS="~amd64"
# no tests
RESTRICT="test"
INSTALLDIR="/opt/${PN}"
src_compile() {
ego build -ldflags "-X main.version=${PV}"
}
src_install() {
insinto "${INSTALLDIR}"
doins -r {CustomApps,Extensions,Themes,jsHelper,spicetify-cli}
dobin "${FILESDIR}/spicetify"
fperms +x "${INSTALLDIR}/spicetify-cli"
}
pkg_postinst() {
elog "Spicetify requires a Spotify install that it can modify."
elog "To give read and write permissions to everyone on the system to run the following commands."
elog "# chmod a+wr /opt/spotify/spotify-client"
elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R"
elog ""
elog "Spicetify compatibility is limited to the following Spotify versions:"
elog " ${SPOTIFY_VERSIONS}"
elog ""
elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:"
elog " https://spicetify.app/docs/advanced-usage/installation#spotify-installed-from-flatpak"
elog ""
elog "To install themes see:"
elog " https://spicetify.app/docs/advanced-usage/themes"
}

View File

@ -0,0 +1,95 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
WHITELIST_VERSIONS=(
"~ 1.2.22"
"~ 1.2.20"
"~ 1.2.13"
"~ 1.2.11"
"~ 1.2.9"
"~ 1.2.8"
)
whitelist_versions() {
local version_spec version1 version2
local -a deps
SPOTIFY_VERSIONS=
# Iterate in reverse for elog
for ((index = $(( ${#WHITELIST_VERSIONS[@]} - 1 )); index >= 0; index--)); do
read -r version_spec version1 version2 <<< "${WHITELIST_VERSIONS[${index}]}"
case ${version_spec} in
"<>")
deps[$index]="( <=media-sound/spotify-${version2} >=media-sound/spotify-${version1} )"
SPOTIFY_VERSIONS+="${version1} -> ${version2}"
;;
"~")
deps[$index]="~media-sound/spotify-${version1}"
SPOTIFY_VERSIONS+="${version1}"
;;
*)
die "Invalid version specifier in WHITELIST_VERSIONS"
;;
esac
if [[ ${index} == 0 ]]; then
SPOTIFY_VERSIONS+=". "
elif [[ ${index} == 1 ]]; then
SPOTIFY_VERSIONS+=" and "
else
SPOTIFY_VERSIONS+=", "
fi
done
RDEPEND=" || ( ${deps[@]} )"
}
whitelist_versions
DESCRIPTION="Commandline tool to customize Spotify client."
HOMEPAGE="https://spicetify.app/"
SRC_URI="
https://github.com/spicetify/spicetify-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
"
LICENSE="Apache-2.0 BSD LGPL-2.1 MIT"
SLOT="0"
KEYWORDS="~amd64"
# no tests
RESTRICT="test"
INSTALLDIR="/opt/${PN}"
src_compile() {
ego build -ldflags "-X main.version=${PV}"
}
src_install() {
insinto "${INSTALLDIR}"
doins -r {CustomApps,Extensions,Themes,jsHelper,spicetify-cli}
dobin "${FILESDIR}/spicetify"
fperms +x "${INSTALLDIR}/spicetify-cli"
}
pkg_postinst() {
elog "Spicetify requires a Spotify install that it can modify."
elog "To give read and write permissions to everyone on the system to run the following commands."
elog "# chmod a+wr /opt/spotify/spotify-client"
elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R"
elog ""
elog "Spicetify compatibility is limited to the following Spotify versions:"
elog " ${SPOTIFY_VERSIONS}"
elog ""
elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:"
elog " https://spicetify.app/docs/advanced-usage/installation#spotify-installed-from-flatpak"
elog ""
elog "To install themes see:"
elog " https://spicetify.app/docs/advanced-usage/themes"
}

View File

@ -0,0 +1,96 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
WHITELIST_VERSIONS=(
"~ 1.2.25"
"~ 1.2.22"
"~ 1.2.20"
"~ 1.2.13"
"~ 1.2.11"
"~ 1.2.9"
"~ 1.2.8"
)
whitelist_versions() {
local version_spec version1 version2
local -a deps
SPOTIFY_VERSIONS=
# Iterate in reverse for elog
for ((index = $(( ${#WHITELIST_VERSIONS[@]} - 1 )); index >= 0; index--)); do
read -r version_spec version1 version2 <<< "${WHITELIST_VERSIONS[${index}]}"
case ${version_spec} in
"<>")
deps[$index]="( <=media-sound/spotify-${version2} >=media-sound/spotify-${version1} )"
SPOTIFY_VERSIONS+="${version1} -> ${version2}"
;;
"~")
deps[$index]="~media-sound/spotify-${version1}"
SPOTIFY_VERSIONS+="${version1}"
;;
*)
die "Invalid version specifier in WHITELIST_VERSIONS"
;;
esac
if [[ ${index} == 0 ]]; then
SPOTIFY_VERSIONS+=". "
elif [[ ${index} == 1 ]]; then
SPOTIFY_VERSIONS+=" and "
else
SPOTIFY_VERSIONS+=", "
fi
done
RDEPEND=" || ( ${deps[@]} )"
}
whitelist_versions
DESCRIPTION="Commandline tool to customize Spotify client."
HOMEPAGE="https://spicetify.app/"
SRC_URI="
https://github.com/spicetify/spicetify-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
"
LICENSE="Apache-2.0 BSD LGPL-2.1 MIT"
SLOT="0"
KEYWORDS="~amd64"
# no tests
RESTRICT="test"
INSTALLDIR="/opt/${PN}"
src_compile() {
ego build -ldflags "-X main.version=${PV}"
}
src_install() {
insinto "${INSTALLDIR}"
doins -r {CustomApps,Extensions,Themes,jsHelper,spicetify-cli}
dobin "${FILESDIR}/spicetify"
fperms +x "${INSTALLDIR}/spicetify-cli"
}
pkg_postinst() {
elog "Spicetify requires a Spotify install that it can modify."
elog "To give read and write permissions to everyone on the system to run the following commands."
elog "# chmod a+wr /opt/spotify/spotify-client"
elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R"
elog ""
elog "Spicetify compatibility is limited to the following Spotify versions:"
elog " ${SPOTIFY_VERSIONS}"
elog ""
elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:"
elog " https://spicetify.app/docs/advanced-usage/installation#spotify-installed-from-flatpak"
elog ""
elog "To install themes see:"
elog " https://spicetify.app/docs/advanced-usage/themes"
}

View File

@ -6,7 +6,13 @@ EAPI=8
inherit go-module inherit go-module
WHITELIST_VERSIONS=( WHITELIST_VERSIONS=(
"<> 1.2.8 1.2.26" "~ 1.2.25"
"~ 1.2.22"
"~ 1.2.20"
"~ 1.2.13"
"~ 1.2.11"
"~ 1.2.9"
"~ 1.2.8"
) )
whitelist_versions() { whitelist_versions() {

View File

@ -1,8 +1,5 @@
DIST genpatches-6.1-72.base.tar.xz 4057544 BLAKE2B 7af6ca30c523e00f1f30f97cf29c4ede16f83cff59669c2eca781e9115f9aa4b3469fdfddb2625302f52e56c573cf9f36737e7887b7caf3c6825473ac3e6eb0f SHA512 fff5387e2b60164d70facce3e3d8c6c8aac12563b0c2c0732a25464246d15197651c89903299953a72c0a38c8c2ec6948b7bf3c2c37a6b0e30921dbdb45200c8 DIST genpatches-6.1-72.base.tar.xz 4057544 BLAKE2B 7af6ca30c523e00f1f30f97cf29c4ede16f83cff59669c2eca781e9115f9aa4b3469fdfddb2625302f52e56c573cf9f36737e7887b7caf3c6825473ac3e6eb0f SHA512 fff5387e2b60164d70facce3e3d8c6c8aac12563b0c2c0732a25464246d15197651c89903299953a72c0a38c8c2ec6948b7bf3c2c37a6b0e30921dbdb45200c8
DIST genpatches-6.1-72.extras.tar.xz 3816 BLAKE2B a6de63bb21ba7a7f5ff88dde6eda62b6af5a2d205cf8072c88027f877b96f44c02465e825dfd13f503a636706f34d4fc0a11c0c71fa8a3c4059deca6f49da539 SHA512 736cc3baa53c31b8f93746677ec1e72616df48d58fb28d5e59b58c0004c484cfe1400bb5b23aa2c696923beeb1661bbbaf0fd8326e925ad486a0278e6b35f5e0 DIST genpatches-6.1-72.extras.tar.xz 3816 BLAKE2B a6de63bb21ba7a7f5ff88dde6eda62b6af5a2d205cf8072c88027f877b96f44c02465e825dfd13f503a636706f34d4fc0a11c0c71fa8a3c4059deca6f49da539 SHA512 736cc3baa53c31b8f93746677ec1e72616df48d58fb28d5e59b58c0004c484cfe1400bb5b23aa2c696923beeb1661bbbaf0fd8326e925ad486a0278e6b35f5e0
DIST genpatches-6.1-74.base.tar.xz 4113880 BLAKE2B 26d9abc23f66346e376b78bb687ae7bc955447093641abe0bf736ff9e1c4e7ca70a0bd26b581f295b168ecd94c6f84603f13f5d097cd8b05b9373ea03a9d0426 SHA512 4ec9211030d1d1cf8e412b46f6cc101768418a177d0113b58f3aa0c4468536faa45a0615483baec378eae7995a91b86da1c06af167a1dbc6eca9ff853ae838f3
DIST genpatches-6.1-74.extras.tar.xz 3812 BLAKE2B 52488fe7154cf6e0153a05184699dd1597a078a7a376e2866b68b923e7f82300757d1c70e7bc44920ab7813d500fb3d4677d49428261308e4b6b59a552381a9f SHA512 dd04bf075792824bf65cf349f6bc921d0c36cc66c878b8dfdd95c27f3a82de426d6725d79c02374e7372b74b68b9c0123875476de434f85646dd9aa8382d8de9
DIST gentoo-kernel-config-g11.tar.gz 5077 BLAKE2B dc17ded74f79baddd703a78084113b85e7130877b300b5fe60453cde515fe37c52ece7877049bb0ef384f74ecfc73d59d7d4a513f8fef7bf4f651599946383e8 SHA512 e91156765ef2a48396370f884fdecd7bb1d600e5167f6bad51130520f886e9198adae375adf3e40fa803abc5d5482057775fb0275ab2589bd8f94d8af4a03c4e DIST gentoo-kernel-config-g11.tar.gz 5077 BLAKE2B dc17ded74f79baddd703a78084113b85e7130877b300b5fe60453cde515fe37c52ece7877049bb0ef384f74ecfc73d59d7d4a513f8fef7bf4f651599946383e8 SHA512 e91156765ef2a48396370f884fdecd7bb1d600e5167f6bad51130520f886e9198adae375adf3e40fa803abc5d5482057775fb0275ab2589bd8f94d8af4a03c4e
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
DIST patch-6.1.64-rt17-xanmod1.xz 3204100 BLAKE2B 4f7e9bdb9bf203a7d39c9cb82e98ec907113d3e22e37b3a5edb3db72ca2111227a56296bebe238b5e319834deef9592a6fbf68a9cba46c6fd507e5b2452b56b6 SHA512 ee3ff104a16afa30a421fa5bbf9b2b23d921c3a06d8ccfb8a656a565ba0237b234a951a019b9d6d4dd49f69731ca416a446f5e518eded5d1409feec6557dcd7a DIST patch-6.1.64-rt17-xanmod1.xz 3204100 BLAKE2B 4f7e9bdb9bf203a7d39c9cb82e98ec907113d3e22e37b3a5edb3db72ca2111227a56296bebe238b5e319834deef9592a6fbf68a9cba46c6fd507e5b2452b56b6 SHA512 ee3ff104a16afa30a421fa5bbf9b2b23d921c3a06d8ccfb8a656a565ba0237b234a951a019b9d6d4dd49f69731ca416a446f5e518eded5d1409feec6557dcd7a
DIST patch-6.1.66-rt19-xanmod1.xz 3247220 BLAKE2B 01662e716921a25ea7fc585358c6bcd49c5dbf9fb134f26018379f2738c8f24f9d84afcf503269dfeea8b78e7f9e97ab058ed6c7276235dc55dba53d065d5565 SHA512 bf0ad94b9ef11faf9e91162f519b80d8ff513492862393af6d956e9112f05b559504614cfba659398b8ac21006edb8e7dda92ed3d23381d0111b3717744bfee6

View File

@ -1,106 +0,0 @@
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit kernel-build
MY_P=linux-${PV%.*}
MY_PV="${PV%_p*}"
GENPATCHES_P=genpatches-${MY_PV%.*}-$(( ${MY_PV##*.} + 8 ))
GENTOO_CONFIG_VER=g11
RT_PATCHSET="${PV/*_p}"
DESCRIPTION="Linux kernel built with XanMod and Gentoo patches"
HOMEPAGE="https://www.kernel.org/ https://xanmod.org/"
SRC_URI="
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
mirror://sourceforge/xanmod/patch-${MY_PV}-rt${RT_PATCHSET}-xanmod1.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/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
"
S=${WORKDIR}/${MY_P}
SLOT="${MY_PV}"
LICENSE="GPL-2"
KEYWORDS="-* ~amd64"
IUSE="debug"
RDEPEND="
!sys-kernel/xanmod-kernel-bin:${SLOT}
"
BDEPEND="
debug? ( dev-util/pahole )
"
PDEPEND="
>=virtual/dist-kernel-${MY_PV}
"
QA_FLAGS_IGNORED="
usr/src/linux-.*/scripts/gcc-plugins/.*.so
usr/src/linux-.*/vmlinux
"
src_prepare() {
# Remove linux-stable patches (see 0000_README)
find "${WORKDIR}" -maxdepth 1 -name "1[0-4][0-9][0-9]*.patch" -exec rm {} + || die
local PATCHES=(
# meh, genpatches have no directory
"${WORKDIR}"/patch-${MY_PV}-rt${RT_PATCHSET}-xanmod1
"${WORKDIR}"/*.patch
)
default
# prepare the default config
case ${ARCH} in
amd64)
cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v1" .config || die
;;
*)
die "Unsupported arch ${ARCH}"
;;
esac
rm "${S}"/localversion* || die
local myversion="-rt${RT_PATCHSET}-xanmod1-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
"${FILESDIR}"/no-debug-extra.config
)
kernel-build_merge_configs "${merge_configs[@]}"
}
# lazy workaround
kernel-install_pkg_preinst() {
debug-print-function ${FUNCNAME} "${@}"
local dir_ver=${PV}${KV_LOCALVERSION}
local kernel_dir=${ED}/usr/src/linux-${dir_ver}
local relfile=${kernel_dir}/include/config/kernel.release
[[ ! -d ${kernel_dir} ]] &&
die "Kernel directory ${kernel_dir} not installed!"
[[ ! -f ${relfile} ]] &&
die "Release file ${relfile} not installed!"
local release
release="$(<"${relfile}")" || die
if [[ -L ${EROOT}/lib && ${EROOT}/lib -ef ${EROOT}/usr/lib ]]; then
# Adjust symlinks for merged-usr.
rm "${ED}/lib/modules/${release}"/{build,source} || die
dosym "../../../src/linux-${dir_ver}" "/usr/lib/modules/${release}/build"
dosym "../../../src/linux-${dir_ver}" "/usr/lib/modules/${release}/source"
fi
}

View File

@ -1,7 +1,4 @@
DIST genpatches-6.1-72.base.tar.xz 4057544 BLAKE2B 7af6ca30c523e00f1f30f97cf29c4ede16f83cff59669c2eca781e9115f9aa4b3469fdfddb2625302f52e56c573cf9f36737e7887b7caf3c6825473ac3e6eb0f SHA512 fff5387e2b60164d70facce3e3d8c6c8aac12563b0c2c0732a25464246d15197651c89903299953a72c0a38c8c2ec6948b7bf3c2c37a6b0e30921dbdb45200c8 DIST genpatches-6.1-72.base.tar.xz 4057544 BLAKE2B 7af6ca30c523e00f1f30f97cf29c4ede16f83cff59669c2eca781e9115f9aa4b3469fdfddb2625302f52e56c573cf9f36737e7887b7caf3c6825473ac3e6eb0f SHA512 fff5387e2b60164d70facce3e3d8c6c8aac12563b0c2c0732a25464246d15197651c89903299953a72c0a38c8c2ec6948b7bf3c2c37a6b0e30921dbdb45200c8
DIST genpatches-6.1-72.extras.tar.xz 3816 BLAKE2B a6de63bb21ba7a7f5ff88dde6eda62b6af5a2d205cf8072c88027f877b96f44c02465e825dfd13f503a636706f34d4fc0a11c0c71fa8a3c4059deca6f49da539 SHA512 736cc3baa53c31b8f93746677ec1e72616df48d58fb28d5e59b58c0004c484cfe1400bb5b23aa2c696923beeb1661bbbaf0fd8326e925ad486a0278e6b35f5e0 DIST genpatches-6.1-72.extras.tar.xz 3816 BLAKE2B a6de63bb21ba7a7f5ff88dde6eda62b6af5a2d205cf8072c88027f877b96f44c02465e825dfd13f503a636706f34d4fc0a11c0c71fa8a3c4059deca6f49da539 SHA512 736cc3baa53c31b8f93746677ec1e72616df48d58fb28d5e59b58c0004c484cfe1400bb5b23aa2c696923beeb1661bbbaf0fd8326e925ad486a0278e6b35f5e0
DIST genpatches-6.1-74.base.tar.xz 4113880 BLAKE2B 26d9abc23f66346e376b78bb687ae7bc955447093641abe0bf736ff9e1c4e7ca70a0bd26b581f295b168ecd94c6f84603f13f5d097cd8b05b9373ea03a9d0426 SHA512 4ec9211030d1d1cf8e412b46f6cc101768418a177d0113b58f3aa0c4468536faa45a0615483baec378eae7995a91b86da1c06af167a1dbc6eca9ff853ae838f3
DIST genpatches-6.1-74.extras.tar.xz 3812 BLAKE2B 52488fe7154cf6e0153a05184699dd1597a078a7a376e2866b68b923e7f82300757d1c70e7bc44920ab7813d500fb3d4677d49428261308e4b6b59a552381a9f SHA512 dd04bf075792824bf65cf349f6bc921d0c36cc66c878b8dfdd95c27f3a82de426d6725d79c02374e7372b74b68b9c0123875476de434f85646dd9aa8382d8de9
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
DIST patch-6.1.64-rt17-xanmod1.xz 3204100 BLAKE2B 4f7e9bdb9bf203a7d39c9cb82e98ec907113d3e22e37b3a5edb3db72ca2111227a56296bebe238b5e319834deef9592a6fbf68a9cba46c6fd507e5b2452b56b6 SHA512 ee3ff104a16afa30a421fa5bbf9b2b23d921c3a06d8ccfb8a656a565ba0237b234a951a019b9d6d4dd49f69731ca416a446f5e518eded5d1409feec6557dcd7a DIST patch-6.1.64-rt17-xanmod1.xz 3204100 BLAKE2B 4f7e9bdb9bf203a7d39c9cb82e98ec907113d3e22e37b3a5edb3db72ca2111227a56296bebe238b5e319834deef9592a6fbf68a9cba46c6fd507e5b2452b56b6 SHA512 ee3ff104a16afa30a421fa5bbf9b2b23d921c3a06d8ccfb8a656a565ba0237b234a951a019b9d6d4dd49f69731ca416a446f5e518eded5d1409feec6557dcd7a
DIST patch-6.1.66-rt19-xanmod1.xz 3247220 BLAKE2B 01662e716921a25ea7fc585358c6bcd49c5dbf9fb134f26018379f2738c8f24f9d84afcf503269dfeea8b78e7f9e97ab058ed6c7276235dc55dba53d065d5565 SHA512 bf0ad94b9ef11faf9e91162f519b80d8ff513492862393af6d956e9112f05b559504614cfba659398b8ac21006edb8e7dda92ed3d23381d0111b3717744bfee6

View File

@ -1,51 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
XANMOD_VERSION=1
RT_PATCHSET="${PV/*_p}"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="74"
ETYPE="sources"
K_SECURITY_UNSUPPORTED="1"
K_NOSETEXTRAVERSION="1"
inherit kernel-2
detect_version
detect_arch
DESCRIPTION="Full XanMod sources with CONFIG_PREEMPT_RT and including the Gentoo patchset"
HOMEPAGE="https://xanmod.org"
LICENSE+=" CDDL"
SRC_URI="
${KERNEL_BASE_URI}/linux-${KV_MAJOR}.${KV_MINOR}.tar.xz
mirror://sourceforge/xanmod/patch-${OKV}-rt${RT_PATCHSET}-xanmod${XANMOD_VERSION}.xz
${GENPATCHES_URI}
"
KEYWORDS="~amd64"
src_unpack() {
UNIPATCH_STRICTORDER=1
UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${OKV}-rt${RT_PATCHSET}-xanmod${XANMOD_VERSION}.xz "
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 1*_linux-${KV_MAJOR}.${KV_MINOR}.*.patch"
kernel-2_src_unpack
}
src_prepare() {
default
# 627796
sed \
"s/default PREEMPT_NONE/default PREEMPT_RT/g" \
-i "${S}/kernel/Kconfig.preempt" || die "sed failed"
}
pkg_postinst() {
elog "MICROCODES"
elog "Use xanmod-sources with microcodes"
elog "Read https://wiki.gentoo.org/wiki/Intel_microcode"
}