parent
8253988f65
commit
4b397fefc0
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'wireguard'
|
||||
pkgname=wireguard
|
||||
version=0.0.20170213
|
||||
version=0.0.20170214
|
||||
revision=1
|
||||
wrksrc="WireGuard-${version}"
|
||||
build_wrksrc="src/tools"
|
||||
|
@ -13,7 +13,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|||
license="GPL-2"
|
||||
homepage="https://www.wireguard.io/"
|
||||
distfiles="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"
|
||||
checksum=256a7d41cf228f2a88e1b03b3911746dc827fe7be5b982c60080e7f81998cc6d
|
||||
checksum=1e4ee213d2a5ac672c952c59e9c64d6d7d5dc3e21c003aee30d75208237e8bf5
|
||||
|
||||
triggers="dkms"
|
||||
dkms_modules="wireguard ${version}"
|
||||
|
@ -21,19 +21,7 @@ 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
|
||||
make -C .. DESTDIR="${DESTDIR}" \
|
||||
DKMSDIR="/usr/src/wireguard-${version}/" dkms-install
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue