New package: wireguard-0.0.20160808

This commit is contained in:
Christian Neukirchen 2016-08-11 14:31:19 +02:00
parent 110ebe7b60
commit e4fd7d0b78
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
# Template file for 'wireguard'
pkgname=wireguard
version=0.0.20160808
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"
checksum=1cf6eb537432c8282b97da1c53bab015acaea07054c513a79575fe86624f3a7d
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
}