2016-08-11 14:31:19 +02:00
|
|
|
# Template file for 'wireguard'
|
|
|
|
pkgname=wireguard
|
2017-02-23 21:36:09 +01:00
|
|
|
version=0.0.20170223
|
2016-08-11 14:31:19 +02:00
|
|
|
revision=1
|
2017-02-12 16:59:37 +01:00
|
|
|
wrksrc="WireGuard-${version}"
|
2016-08-11 14:31:19 +02:00
|
|
|
build_wrksrc="src/tools"
|
|
|
|
build_style=gnu-makefile
|
2017-02-12 16:59:37 +01:00
|
|
|
make_install_args="WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes"
|
2016-08-11 14:31:19 +02:00
|
|
|
makedepends="libmnl-devel"
|
|
|
|
depends="dkms"
|
|
|
|
short_desc="Fast, modern, secure VPN tunnel"
|
2017-02-12 16:59:37 +01:00
|
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
2016-08-11 14:31:19 +02:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://www.wireguard.io/"
|
2017-02-12 16:59:37 +01:00
|
|
|
distfiles="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"
|
2017-02-23 21:36:09 +01:00
|
|
|
checksum=6d2c8cd29c4f9fb404546a4749ec050739a26b4a49b5864f1dec531377c3c50d
|
2016-08-11 14:31:19 +02:00
|
|
|
|
|
|
|
triggers="dkms"
|
|
|
|
dkms_modules="wireguard ${version}"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
sed -i 's/^CFLAGS /override &/' ${build_wrksrc}/Makefile
|
|
|
|
}
|
|
|
|
post_install() {
|
2017-02-14 13:39:54 +01:00
|
|
|
make -C .. DESTDIR="${DESTDIR}" \
|
|
|
|
DKMSDIR="/usr/src/wireguard-${version}/" dkms-install
|
2016-08-11 14:31:19 +02:00
|
|
|
}
|