wok-current view linux64-wireguard/receipt @ rev 25624
Patch gst-ffmpeg to work with new gcc
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Sep 04 19:03:50 2023 +0000 (11 months ago) |
parents | 511d41fb7f76 |
children | a23978bfa665 |
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://git.zx2c4.com/wireguard-linux-compat/ 2>/dev/null | \
24 sed '/tag\/.h=/!d;s|.*h=v||;s|.>.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd src
31 sed -i '/Wframe-larger-than=2048/d' Kbuild
32 patch -p0 < $stuff/socket.u
33 make -k ARCH=x86_64 KERNELDIR="/usr/src/linux" && xz wireguard.ko
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 EXTRAVERSION=_$kvers
40 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc
41 cp $src/src/wireguard.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
42 }
44 post_install()
45 {
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
47 }
49 post_remove()
50 {
51 depmod -a
52 }