1require wireguard.inc 2 3SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8" 4SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master" 5 6inherit bash-completion systemd pkgconfig 7 8DEPENDS += "libmnl" 9 10do_install () { 11 oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ 12 SYSTEMDUNITDIR="${systemd_system_unitdir}" \ 13 WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ 14 ${PACKAGECONFIG_CONFARGS} \ 15 install 16} 17 18PACKAGECONFIG ??= "bash-completion wg-quick" 19 20PACKAGECONFIG[bash-completion] = "WITH_BASHCOMPLETION=yes,WITH_BASHCOMPLETION=no,,bash,," 21PACKAGECONFIG[wg-quick] = "WITH_WGQUICK=yes,WITH_WGQUICK=no,,bash,," 22 23FILES:${PN} = " \ 24 ${bindir}/wg \ 25 ${sysconfdir} \ 26 ${bindir}/wg-quick \ 27 ${systemd_system_unitdir} \ 28" 29 30RRECOMMENDS:${PN} = " \ 31 kernel-module-wireguard \ 32 " 33