diff options
author | Jakob (Jack/XDjackieXD) | 2024-01-11 01:55:19 +0100 |
---|---|---|
committer | Jakob (Jack/XDjackieXD) | 2024-01-11 01:55:19 +0100 |
commit | 2fccb3658303891529a0c0093cf94019fb51d81e (patch) | |
tree | a7f81830f7191187b60fee1ce8eb370cd642452e | |
download | aur-mkinitcpio-mlx5.tar.gz |
feat: initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | LICENSE | 14 | ||||
-rw-r--r-- | PKGBUILD | 16 | ||||
-rw-r--r-- | hook | 7 | ||||
-rw-r--r-- | install | 11 |
5 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6ba452bf0c69 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = mkinitcpio-mlx5 + pkgdesc = Archlinux mkinitcpio hook to pack mlx5_core kernel module + pkgver = 1.0.0 + pkgrel = 1 + arch = any + license = MIT + optdepends = mkinitcpio-netconf: Network interface configuration + source = hook + source = install + sha512sums = bcfa32d087c3de3c4c7e6396f2e96b30ac2d56e3cc50bd0dda4c170cefb6d4982005dcd193bf368f22bd0bc70d41fc06009cb7570d3e2d4371f9fd967f503e8b + sha512sums = 19333b4807ae11e9e4da12ba2d435653cb0bb9bac1d19da9c81f03495753759822a633d618360822ce62f2e36ff4077cb7346104ea138101bedb0c99b5eeb83d + +pkgname = mkinitcpio-mlx5 diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000000..aa8d86eddf99 --- /dev/null +++ b/LICENSE @@ -0,0 +1,14 @@ +Copyright 2024 Jakob (XDjackieXD) <aur at chaosfield dot at> + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0f4f4e67324b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Jakob (XDjackieXD) <aur at chaosfield dot at> +pkgname=mkinitcpio-mlx5 +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Archlinux mkinitcpio hook to pack mlx5_core kernel module" +arch=('any') +license=('MIT') +optdepends=('mkinitcpio-netconf: Network interface configuration') +source=('hook' 'install') +sha512sums=('bcfa32d087c3de3c4c7e6396f2e96b30ac2d56e3cc50bd0dda4c170cefb6d4982005dcd193bf368f22bd0bc70d41fc06009cb7570d3e2d4371f9fd967f503e8b' + '19333b4807ae11e9e4da12ba2d435653cb0bb9bac1d19da9c81f03495753759822a633d618360822ce62f2e36ff4077cb7346104ea138101bedb0c99b5eeb83d') + +package() { + install -Dm644 "$srcdir/hook" "$pkgdir/usr/lib/initcpio/hooks/mlx5" + install -Dm644 "$srcdir/install" "$pkgdir/usr/lib/initcpio/install/mlx5" +} @@ -0,0 +1,7 @@ +#!/usr/bin/ash + +run_hook () { +} + +run_cleanuphook () { +} diff --git a/install b/install new file mode 100644 index 000000000000..b4a0b613e244 --- /dev/null +++ b/install @@ -0,0 +1,11 @@ +#!/bin/bash + +build () { + add_module mlx5_core +} + +help () { + cat << EOF +This hook will just add mlx5_core module to initrd. Useful to use Mellanox NICs with mkinitcpio-netconf. +EOF +} |