added my Recipes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
require wireguard.inc
|
||||
|
||||
SRCREV = "18fbcd68a35a892527345dc5679d0b2d860ee004"
|
||||
|
||||
SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat;protocol=https;branch=master"
|
||||
|
||||
inherit module kernel-module-split
|
||||
|
||||
DEPENDS = "virtual/kernel libmnl"
|
||||
|
||||
# This module requires Linux 3.10 higher and several networking related
|
||||
# configuration options. For exact kernel requirements visit:
|
||||
# https://www.wireguard.io/install/#kernel-requirements
|
||||
|
||||
EXTRA_OEMAKE:append = " \
|
||||
KERNELDIR=${STAGING_KERNEL_DIR} \
|
||||
"
|
||||
|
||||
MAKE_TARGETS = "module"
|
||||
MODULES_INSTALL_TARGET = "module-install"
|
||||
|
||||
RRECOMMENDS:${PN} = "kernel-module-xt-hashlimit"
|
||||
MODULE_NAME = "wireguard"
|
||||
|
||||
|
||||
# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
|
||||
# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
|
||||
# for reference machines e.g. qemu
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
require wireguard.inc
|
||||
|
||||
SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8"
|
||||
SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master"
|
||||
|
||||
inherit bash-completion systemd pkgconfig
|
||||
|
||||
DEPENDS += "libmnl"
|
||||
|
||||
do_install () {
|
||||
oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
|
||||
SYSTEMDUNITDIR="${systemd_system_unitdir}" \
|
||||
WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
|
||||
WITH_BASHCOMPLETION=yes \
|
||||
WITH_WGQUICK=yes \
|
||||
install
|
||||
}
|
||||
|
||||
PACKAGES += "${PN}-wg-quick"
|
||||
|
||||
FILES:${PN} = " \
|
||||
${bindir}/wg \
|
||||
${sysconfdir} \
|
||||
"
|
||||
FILES:${PN}-wg-quick = " \
|
||||
${bindir}/wg-quick \
|
||||
${systemd_system_unitdir} \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-wg-quick = "${PN} bash"
|
||||
RRECOMMENDS:${PN} = " \
|
||||
kernel-module-wireguard \
|
||||
${PN}-wg-quick \
|
||||
"
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "WireGuard is an extremely simple yet fast and modern VPN"
|
||||
DESCRIPTION="WireGuard is a secure network tunnel, operating at layer 3, \
|
||||
implemented as a kernel virtual network interface for Linux, which aims to \
|
||||
replace both IPsec for most use cases, as well as popular user space and/or \
|
||||
TLS-based solutions like OpenVPN, while being more secure, more performant, \
|
||||
and easier to use."
|
||||
SECTION = "networking"
|
||||
HOMEPAGE = "https://www.wireguard.io/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
S = "${WORKDIR}/git/src"
|
||||
Reference in New Issue
Block a user