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)} \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame^] | 14 | ${PACKAGECONFIG_CONFARGS} \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 15 | install |
| 16 | } |
| 17 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame^] | 18 | PACKAGECONFIG ??= "bash-completion wg-quick" |
| 19 | |
| 20 | PACKAGECONFIG[bash-completion] = "WITH_BASHCOMPLETION=yes,WITH_BASHCOMPLETION=no,,bash,," |
| 21 | PACKAGECONFIG[wg-quick] = "WITH_WGQUICK=yes,WITH_WGQUICK=no,,bash,," |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 22 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 23 | FILES:${PN} = " \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 24 | ${bindir}/wg \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 25 | ${sysconfdir} \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 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 | RRECOMMENDS:${PN} = " \ |
| 31 | kernel-module-wireguard \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 32 | " |