wok-current annotate 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
rev   line source
pascal@25437 1 # SliTaz package receipt.
pascal@25437 2
pascal@25437 3 PACKAGE="linux64-wireguard"
pascal@25437 4 VERSION="1.0.20220627"
pascal@25437 5 CATEGORY="base-system"
pascal@25437 6 MAINTAINER="pascal.bellard@slitaz.org"
pascal@25437 7 LICENSE="GPL2"
pascal@25437 8 SHORT_DESC="The Wireguard VPN kernel module."
pascal@25437 9 WEB_SITE="https://www.wireguard.com/"
pascal@25437 10 SOURCE="wireguard-linux-compat"
pascal@25437 11 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@25437 12 WGET_URL="https://git.zx2c4.com/$SOURCE/snapshot/$TARBALL"
pascal@25437 13
pascal@25437 14 DEPENDS="linux64"
shann@25629 15 BUILD_DEPENDS="linux64-module-headers xz"
pascal@25437 16 SUGGESTED="wireguard-tools"
pascal@25437 17
shann@25629 18 # Use cross toolchain instead uclibc
pascal@25437 19
pascal@25445 20 # What is the latest version available today?
pascal@25445 21 current_version()
pascal@25445 22 {
pascal@25445 23 wget -O - https://git.zx2c4.com/wireguard-linux-compat/ 2>/dev/null | \
pascal@25445 24 sed '/tag\/.h=/!d;s|.*h=v||;s|.>.*||;q'
pascal@25445 25 }
pascal@25445 26
pascal@25437 27 # Rules to configure and make the package.
pascal@25437 28 compile_rules()
pascal@25437 29 {
pascal@25437 30 cd src
pascal@25437 31 sed -i '/Wframe-larger-than=2048/d' Kbuild
pascal@25437 32 patch -p0 < $stuff/socket.u
shann@25629 33
shann@25629 34 # Use cross toolchain x86_64
shann@25629 35 export PATH=$PATH:/cross/x86_64/tools/bin
shann@25629 36
shann@25629 37 make -k ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \
shann@25629 38 KERNELDIR="/usr/src/linux" && xz wireguard.ko
pascal@25437 39 }
pascal@25437 40
pascal@25437 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@25437 42 genpkg_rules()
pascal@25437 43 {
pascal@25437 44 EXTRAVERSION=_$kvers
pascal@25437 45 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc
pascal@25437 46 cp $src/src/wireguard.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
pascal@25437 47 }
pascal@25437 48
pascal@25437 49 post_install()
pascal@25437 50 {
pascal@25437 51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@25437 52 }
pascal@25437 53
pascal@25437 54 post_remove()
pascal@25437 55 {
pascal@25437 56 depmod -a
pascal@25437 57 }