diff options
author | abelian424 | 2021-02-24 10:13:18 +0600 |
---|---|---|
committer | abelian424 | 2021-02-24 10:13:18 +0600 |
commit | 198b11bd718e060f1f4a87cf7bbbb8f8f495d84f (patch) | |
tree | 5fa1f958b4e7d388698f749ec6216817679c291d | |
parent | ef84a794c505f235dd3c8a13a1b79721718dd0f0 (diff) | |
download | aur-198b11bd718e060f1f4a87cf7bbbb8f8f495d84f.tar.gz |
Bump
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | 90-cleanup.hook | 14 | ||||
-rw-r--r-- | PKGBUILD | 18 | ||||
-rw-r--r-- | cleanup | 10 |
4 files changed, 39 insertions, 5 deletions
@@ -28,7 +28,7 @@ pkgbase = linux-mainline-bcachefs options = !strip options = docs source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.tar.xz - source = https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-5.10.15.xz + source = https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-5.10.18.xz source = https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.8%2B.patch source = https://raw.githubusercontent.com/Frogging-Family/linux-tkg/master/linux-tkg-config/5.10/config.x86_64 source = https://raw.githubusercontent.com/Frogging-Family/linux-tkg/master/linux-tkg-config/5.10/config_hardened.x86_64 diff --git a/90-cleanup.hook b/90-cleanup.hook new file mode 100644 index 000000000000..99f5221b76a1 --- /dev/null +++ b/90-cleanup.hook @@ -0,0 +1,14 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/lib/modules/*/ +Target = !usr/lib/modules/*/?* + +[Action] +Description = Cleaning up... +When = PostTransaction +Exec = /usr/share/libalpm/scripts/cleanup +NeedsTargets + @@ -11,6 +11,11 @@ _ispkgbuild="true" source "$_where"/customization.cfg # load default configuration from file source "$_where"/prepare +if [ -e "$_EXT_CONFIG_PATH" ]; then + msg2 "External configuration file $_EXT_CONFIG_PATH will be used and will override customization.cfg values." + source "$_EXT_CONFIG_PATH" +fi + _tkg_initscript if [[ "$_sub" = rc* ]]; then @@ -51,8 +56,8 @@ options=('!strip' 'docs') "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.8%2B.patch" "https://raw.githubusercontent.com/Frogging-Family/linux-tkg/master/linux-tkg-config/5.10/config.x86_64" # stock Arch config "https://raw.githubusercontent.com/Frogging-Family/linux-tkg/master/linux-tkg-config/5.10/config_hardened.x86_64" # hardened Arch config - "https://raw.githubusercontent.com/Frogging-Family/linux-tkg/master/linux-tkg-config/5.10/90-cleanup.hook" - "https://raw.githubusercontent.com/Frogging-Family/linux-tkg/master/linux-tkg-config/5.10/cleanup" + 90-cleanup.hook + cleanup # ARCH Patches "https://raw.githubusercontent.com/Frogging-Family/linux-tkg/master/linux-tkg-patches/5.10/0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch" # TkG @@ -84,8 +89,6 @@ options=('!strip' 'docs') 'SKIP' '458d1ca195f3fee5501683a4b61ef0ed0cfa7e5219eccab3390fb40c0289898a' 'eb1da1a028a1c967222b5bdac1db2b2c4d8285bafd714892f6fc821c10416341' - 'SKIP' - 'SKIP' '1e15fc2ef3fa770217ecc63a220e5df2ddbcf3295eb4a021171e7edd4c6cc898' '66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997' 'f6383abef027fd9a430fd33415355e0df492cdc3c90e9938bf2d98f4f63b32e6' @@ -206,6 +209,13 @@ hackbase() { hackheaders() { pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel" provides=("linux-headers=${pkgver}" "${pkgbase}-headers=${pkgver}") + case $_basever in + 54|57|58|59|510) + ;; + *) + depends=('pahole') + ;; + esac cd "${srcdir}/${_srcpath}" local builddir="${pkgdir}/usr/lib/modules/$(<version)/build" diff --git a/cleanup b/cleanup new file mode 100644 index 000000000000..c00c08d82679 --- /dev/null +++ b/cleanup @@ -0,0 +1,10 @@ +#!/bin/bash + +for _f in /usr/lib/modules/*tkg*; do + if [[ ! -e ${_f}/vmlinuz ]]; then + rm -rf "$_f" + fi +done + +# vim:set ft=sh sw=2 et: + |