blob: c4ddbcb0e90f331c727a6a5b2567692d0c2c5df2 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001require wireguard.inc
2
3inherit bash-completion systemd pkgconfig
4
5DEPENDS = "wireguard-module libmnl"
6
7do_compile_prepend () {
8 cd ${S}/tools
9}
10
11do_install () {
12 cd ${S}/tools
13 oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
14 SYSTEMDUNITDIR="${systemd_unitdir}" \
15 WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
16 WITH_BASHCOMPLETION=yes \
17 WITH_WGQUICK=yes \
18 install
19}
20
21FILES_${PN} = " \
22 ${sysconfdir} \
23 ${systemd_unitdir} \
24 ${bindir} \
25"
26
27RDEPENDS_${PN} = "wireguard-module bash"