28 lines
809 B
Bash
28 lines
809 B
Bash
# Template file for 'wireguard-tools'
|
|
pkgname=wireguard-tools
|
|
version=1.0.20210914
|
|
revision=2
|
|
build_wrksrc="src"
|
|
build_style=gnu-makefile
|
|
make_install_args="WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes"
|
|
depends="openresolv"
|
|
checkdepends="clang-analyzer"
|
|
short_desc="Fast, modern, secure VPN tunnel - userland tools"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://www.wireguard.com/"
|
|
distfiles="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${version}.tar.xz"
|
|
checksum=@e986587d012ba4ea767479ef8e27f928b8ae63e8264b729050d5a21e7f6cc4bc
|
|
make_dirs="/etc/wireguard 0700 root root"
|
|
|
|
post_patch() {
|
|
vsed -i 's/^CFLAGS /override &/' Makefile
|
|
}
|
|
|
|
post_install() {
|
|
vsv wireguard
|
|
|
|
vmkdir usr/share/$pkgname/examples
|
|
vcopy ../contrib/* usr/share/$pkgname/examples
|
|
}
|