Package Details: amneziawg-dkms 1.0.20241112-2

Git Clone URL: https://aur.archlinux.org/amneziawg-dkms.git (read-only, click to copy)
Package Base: amneziawg-dkms
Description: AmneziaWG is a contemporary version of the popular VPN protocol, WireGuard.
Upstream URL: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module
Licenses: GPLv2
Provides: AMNEZIAWG-MODULE
Submitter: VVL
Maintainer: VVL
Last Packager: VVL
Votes: 4
Popularity: 2.10
First Submitted: 2024-09-30 22:15 (UTC)
Last Updated: 2024-11-20 13:26 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

VVL commented on 2024-10-18 19:34 (UTC)

Thank you, I've added this fix to PKGBUILD.

ftk commented on 2024-10-13 14:25 (UTC) (edited on 2024-10-13 20:41 (UTC) by ftk)

diff --git a/PKGBUILD b/PKGBUILD
index 32c3d90..050f210 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,6 +13,14 @@ sha512sums=('0499fc3c29ceaa3e57611fd86c943e57b9621aa2db31f8fdafcfe0ff0dfaf5aa073

 package() {
     depends=("dkms")
+    cat > "${srcdir}/amneziawg-linux-kernel-module-${pkgver}/kernel-tree-scripts/prepare-sources.sh" <<'EOF'
+#!/bin/bash -eux
+kernel="${1%%[^0-9.]*}"
+kernel_major="${1%%[^0-9]*}"
+wget "https://cdn.kernel.org/pub/linux/kernel/v${kernel_major}.x/linux-${kernel}.tar.xz" -O- | tar -xvJf - --wildcards linux-${kernel}/drivers/net/wireguard "linux-${kernel}/K*" linux-${kernel}/include/uapi/linux/
+ln -sf linux-${kernel} kernel;
+EOF
+
     cd ${srcdir}/amneziawg-linux-kernel-module-${pkgver}/src
     make DESTDIR=${pkgdir} dkms-install
 }

fixes downloading wireguard sources during install

tannisroot commented on 2024-10-12 11:08 (UTC)

Doesn't actually get installed, here's make.log

DKMS make.log for amneziawg-1.0.0 for kernel 6.11.2-arch1-1 (x86_64)
Сб 12 окт 2024 14:05:33 MSK
make: Entering directory '/var/lib/dkms/amneziawg/1.0.0/build'
Makefile:80: *** 
You're running a modern Linux Kernel (version 6.11.2-arch1-1).

In order to build AmneziaWG kernel module for this kernel you must obtain sources of your kernel
by yourself and make a symlink to them into this directory:

    ln -s <path to kernel sources> kernel

After that please run make script again.  Stop.
make: Leaving directory '/var/lib/dkms/amneziawg/1.0.0/build'