wok view linux64-wireguard/receipt @ rev 25437

Add wireguard for linux64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 31 17:31:14 2022 +0000 (20 months ago)
parents
children 4b3fc3102e2d
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-wireguard"
4 VERSION="1.0.20220627"
5 CATEGORY="base-system"
6 MAINTAINER="pascal.bellard@slitaz.org"
7 LICENSE="GPL2"
8 SHORT_DESC="The Wireguard VPN kernel module."
9 WEB_SITE="https://www.wireguard.com/"
10 SOURCE="wireguard-linux-compat"
11 TARBALL="$SOURCE-$VERSION.tar.xz"
12 WGET_URL="https://git.zx2c4.com/$SOURCE/snapshot/$TARBALL"
14 DEPENDS="linux64"
15 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
16 SUGGESTED="wireguard-tools"
18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
20 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd src
25 sed -i '/Wframe-larger-than=2048/d' Kbuild
26 patch -p0 < $stuff/socket.u
27 make -k ARCH=x86_64 KERNELDIR="/usr/src/linux" && xz wireguard.ko
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 EXTRAVERSION=_$kvers
34 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc
35 cp $src/src/wireguard.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
36 }
38 post_install()
39 {
40 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
41 }
43 post_remove()
44 {
45 depmod -a
46 }