27 lines
808 B
Bash
27 lines
808 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=97ff31489217bb265b7ae850d3d0f335ab07d2652ba1feec88b734bc96bd05ac
|
|
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
|
|
}
|