Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | require wireguard.inc |
| 2 | |
| 3 | inherit bash-completion systemd pkgconfig |
| 4 | |
| 5 | DEPENDS = "wireguard-module libmnl" |
| 6 | |
| 7 | do_compile_prepend () { |
| 8 | cd ${S}/tools |
| 9 | } |
| 10 | |
| 11 | do_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 | |
| 21 | FILES_${PN} = " \ |
| 22 | ${sysconfdir} \ |
| 23 | ${systemd_unitdir} \ |
| 24 | ${bindir} \ |
| 25 | " |
| 26 | |
| 27 | RDEPENDS_${PN} = "wireguard-module bash" |