Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | require wireguard.inc |
| 2 | |
| 3 | SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8" |
| 4 | SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master" |
| 5 | |
| 6 | inherit bash-completion systemd pkgconfig |
| 7 | |
| 8 | DEPENDS += "libmnl" |
| 9 | |
| 10 | do_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 | |
| 19 | FILES:${PN} = " \ |
| 20 | ${sysconfdir} \ |
| 21 | ${systemd_system_unitdir} \ |
| 22 | ${bindir} \ |
| 23 | " |
| 24 | |
| 25 | RDEPENDS:${PN} = "bash" |
| 26 | RRECOMMENDS:${PN} = "kernel-module-wireguard" |