blob: 0c686aae2aa0ee0ea842bcefccc29d7ccd32d041 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001require 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 WITH_BASHCOMPLETION=yes \
15 WITH_WGQUICK=yes \
16 install
17}
18
19FILES:${PN} = " \
20 ${sysconfdir} \
21 ${systemd_system_unitdir} \
22 ${bindir} \
23"
24
25RDEPENDS:${PN} = "bash"
26RRECOMMENDS:${PN} = "kernel-module-wireguard"