wok-current view linux64-wireguard/receipt @ rev 25652
Fix get-texlive for 2008 version, add collection-latex
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Feb 07 18:01:05 2024 +0000 (10 months ago) |
parents | 4b3fc3102e2d |
children |
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"
16 SUGGESTED="wireguard-tools"
18 # Use cross toolchain instead uclibc
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
34 # Use cross toolchain x86_64
35 export PATH=$PATH:/cross/x86_64/tools/bin
37 make -k ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \
38 KERNELDIR="/usr/src/linux" && xz wireguard.ko
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 EXTRAVERSION=_$kvers
45 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc
46 cp $src/src/wireguard.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
47 }
49 post_install()
50 {
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
52 }
54 post_remove()
55 {
56 depmod -a
57 }