blob: 8def54ece69c2d0f539e082403a092b66d182886 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001require wireguard.inc
2
3SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8"
4SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master"
5
6inherit bash-completion systemd pkgconfig
7
8DEPENDS += "libmnl"
9
10do_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 Williamsac13d5f2023-11-24 18:59:46 -060014 ${PACKAGECONFIG_CONFARGS} \
Andrew Geissler595f6302022-01-24 19:11:47 +000015 install
16}
17
Patrick Williamsac13d5f2023-11-24 18:59:46 -060018PACKAGECONFIG ??= "bash-completion wg-quick"
19
20PACKAGECONFIG[bash-completion] = "WITH_BASHCOMPLETION=yes,WITH_BASHCOMPLETION=no,,bash,,"
21PACKAGECONFIG[wg-quick] = "WITH_WGQUICK=yes,WITH_WGQUICK=no,,bash,,"
Patrick Williams92b42cb2022-09-03 06:53:57 -050022
Andrew Geissler595f6302022-01-24 19:11:47 +000023FILES:${PN} = " \
Patrick Williams92b42cb2022-09-03 06:53:57 -050024 ${bindir}/wg \
Andrew Geissler595f6302022-01-24 19:11:47 +000025 ${sysconfdir} \
Patrick Williams92b42cb2022-09-03 06:53:57 -050026 ${bindir}/wg-quick \
Andrew Geissler595f6302022-01-24 19:11:47 +000027 ${systemd_system_unitdir} \
Andrew Geissler595f6302022-01-24 19:11:47 +000028"
29
Patrick Williams92b42cb2022-09-03 06:53:57 -050030RRECOMMENDS:${PN} = " \
31 kernel-module-wireguard \
Patrick Williams92b42cb2022-09-03 06:53:57 -050032 "