blob: f698b9a9afe8e92855e8d9cd5d2a5379bd57616c [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001require wireguard.inc
2
3SRCREV = "a8063adc8ae9b4fc9848500e93f94bee8ad2e585"
4SRC_URI = "git://git.zx2c4.com/wireguard-tools"
5
6inherit bash-completion systemd pkgconfig
7
8DEPENDS += "wireguard-module libmnl"
9
10do_install () {
11 oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
12 SYSTEMDUNITDIR="${systemd_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_unitdir} \
22 ${bindir} \
23"
24
25RDEPENDS_${PN} = "wireguard-module bash"