blob: b16e0c8292a41a7096026fb830b586081db5c66a [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001require wireguard.inc
2
Andrew Geissler32b11992021-03-31 13:37:05 -05003SRCREV = "622408872fd6f3a58e98e88d39d30e98968314fa"
Andrew Geissler82c905d2020-04-13 13:39:40 -05004SRC_URI = "git://git.zx2c4.com/wireguard-tools"
5
6inherit bash-completion systemd pkgconfig
7
Andrew Geisslerd688a012020-09-18 13:36:00 -05008DEPENDS += "libmnl"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009
10do_install () {
11 oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
Andrew Geisslerbbbd5f42020-10-30 15:42:48 -050012 SYSTEMDUNITDIR="${systemd_system_unitdir}" \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
14 WITH_BASHCOMPLETION=yes \
15 WITH_WGQUICK=yes \
16 install
17}
18
Patrick Williams213cb262021-08-07 19:21:33 -050019FILES:${PN} = " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020 ${sysconfdir} \
Andrew Geisslerbbbd5f42020-10-30 15:42:48 -050021 ${systemd_system_unitdir} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050022 ${bindir} \
23"
24
Patrick Williams213cb262021-08-07 19:21:33 -050025RDEPENDS:${PN} = "bash"
26RRECOMMENDS:${PN} = "kernel-module-wireguard"