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 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 19 | PACKAGES += "${PN}-wg-quick" |
| 20 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 21 | FILES:${PN} = " \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 22 | ${bindir}/wg \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 23 | ${sysconfdir} \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 24 | " |
| 25 | FILES:${PN}-wg-quick = " \ |
| 26 | ${bindir}/wg-quick \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 27 | ${systemd_system_unitdir} \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 28 | " |
| 29 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 30 | RDEPENDS:${PN}-wg-quick = "${PN} bash" |
| 31 | RRECOMMENDS:${PN} = " \ |
| 32 | kernel-module-wireguard \ |
| 33 | ${PN}-wg-quick \ |
| 34 | " |