void-packages/srcpkgs/wireguard/template

39 lines
1 KiB
Bash
Raw Normal View History

2016-08-11 12:31:19 +00:00
# Template file for 'wireguard'
pkgname=wireguard
2016-10-15 14:43:15 +00:00
version=0.0.20161014
2016-08-11 12:31:19 +00:00
revision=1
wrksrc="WireGuard-experimental-${version}"
build_wrksrc="src/tools"
build_style=gnu-makefile
makedepends="libmnl-devel"
depends="dkms"
short_desc="Fast, modern, secure VPN tunnel"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="https://www.wireguard.io/"
distfiles="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-experimental-${version}.tar.xz"
2016-10-15 14:43:15 +00:00
checksum=687abcd64141cb9d12cc1e65396aeeab45c193e1a9d3acd306d0f2fbad33b4a1
2016-08-11 12:31:19 +00:00
triggers="dkms"
dkms_modules="wireguard ${version}"
post_extract() {
sed -i 's/^CFLAGS /override &/' ${build_wrksrc}/Makefile
}
post_install() {
cd ${wrksrc}/src
vmkdir usr/src/wireguard-${version}
cp -a Kbuild Kconfig Makefile *.c *.h crypto selftest \
${DESTDIR}/usr/src/wireguard-${version}
cat >${DESTDIR}/usr/src/wireguard-${version}/dkms.conf <<EOF
PACKAGE_NAME="$pkgname"
PACKAGE_VERSION=$version
AUTOINSTALL=yes
BUILT_MODULE_NAME="$pkgname"
DEST_MODULE_LOCATION="/kernel/net"
EOF
}