wok diff linux64-wireguard/receipt @ rev 25438

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 01 11:12:31 2022 +0000 (21 months ago)
parents
children 4b3fc3102e2d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux64-wireguard/receipt	Thu Sep 01 11:12:31 2022 +0000
     1.3 @@ -0,0 +1,46 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux64-wireguard"
     1.7 +VERSION="1.0.20220627"
     1.8 +CATEGORY="base-system"
     1.9 +MAINTAINER="pascal.bellard@slitaz.org"
    1.10 +LICENSE="GPL2"
    1.11 +SHORT_DESC="The Wireguard VPN kernel module."
    1.12 +WEB_SITE="https://www.wireguard.com/"
    1.13 +SOURCE="wireguard-linux-compat"
    1.14 +TARBALL="$SOURCE-$VERSION.tar.xz"
    1.15 +WGET_URL="https://git.zx2c4.com/$SOURCE/snapshot/$TARBALL"
    1.16 +
    1.17 +DEPENDS="linux64"
    1.18 +BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
    1.19 +SUGGESTED="wireguard-tools"
    1.20 +
    1.21 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    1.22 +
    1.23 +# Rules to configure and make the package.
    1.24 +
    1.25 +compile_rules()
    1.26 +{
    1.27 +	cd src
    1.28 +	sed -i '/Wframe-larger-than=2048/d' Kbuild
    1.29 +	patch -p0 < $stuff/socket.u
    1.30 +	make -k ARCH=x86_64 KERNELDIR="/usr/src/linux" && xz wireguard.ko
    1.31 +}
    1.32 +	
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{	
    1.36 +	EXTRAVERSION=_$kvers
    1.37 +	mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc
    1.38 +	cp $src/src/wireguard.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
    1.39 +}
    1.40 +
    1.41 +post_install()
    1.42 +{
    1.43 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    1.44 +}
    1.45 +
    1.46 +post_remove()
    1.47 +{
    1.48 +	depmod -a
    1.49 +}