Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | require wireguard.inc |
| 2 | |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 3 | SRCREV = "6d3b876492298d0e311053567ecd7084972a8bc8" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 4 | SRC_URI = "git://git.zx2c4.com/wireguard-tools" |
| 5 | |
| 6 | inherit bash-completion systemd pkgconfig |
| 7 | |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 8 | DEPENDS += "libmnl" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 9 | |
| 10 | do_install () { |
| 11 | oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ |
Andrew Geissler | bbbd5f4 | 2020-10-30 15:42:48 -0500 | [diff] [blame] | 12 | SYSTEMDUNITDIR="${systemd_system_unitdir}" \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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} \ |
Andrew Geissler | bbbd5f4 | 2020-10-30 15:42:48 -0500 | [diff] [blame] | 21 | ${systemd_system_unitdir} \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 22 | ${bindir} \ |
| 23 | " |
| 24 | |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 25 | RDEPENDS_${PN} = "bash" |
| 26 | RRECOMMENDS_${PN} = "kernel-module-wireguard" |