blob: 20435338c375c135125f70e10391d479262e5ede [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)} \
14 WITH_BASHCOMPLETION=yes \
15 WITH_WGQUICK=yes \
16 install
17}
18
Patrick Williams92b42cb2022-09-03 06:53:57 -050019PACKAGES += "${PN}-wg-quick"
20
Andrew Geissler595f6302022-01-24 19:11:47 +000021FILES:${PN} = " \
Patrick Williams92b42cb2022-09-03 06:53:57 -050022 ${bindir}/wg \
Andrew Geissler595f6302022-01-24 19:11:47 +000023 ${sysconfdir} \
Patrick Williams92b42cb2022-09-03 06:53:57 -050024"
25FILES:${PN}-wg-quick = " \
26 ${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 -050030RDEPENDS:${PN}-wg-quick = "${PN} bash"
31RRECOMMENDS:${PN} = " \
32 kernel-module-wireguard \
33 ${PN}-wg-quick \
34 "