2018-06-20 01:18:12 +00:00
|
|
|
require wireguard-tools.inc
|
|
|
|
|
|
|
|
inherit bash-completion systemd pkgconfig
|
|
|
|
|
|
|
|
DEPENDS = "libmnl"
|
|
|
|
|
|
|
|
do_compile_prepend () {
|
|
|
|
cd ${S}/tools
|
|
|
|
}
|
|
|
|
|
2018-07-03 18:50:33 +00:00
|
|
|
do_unpack () {
|
|
|
|
tar -xvf ${DL_DIR}/WireGuard-0.0.20180613.tar.xz -C ${WORKDIR}/
|
|
|
|
# Remove symlink pointing to non-existent file as this causes the
|
|
|
|
# reproducible_build .bbclass to fail
|
|
|
|
rm ${WORKDIR}/WireGuard-0.0.20180613/src/tools/wg-quick/wg
|
|
|
|
}
|
|
|
|
|
2018-06-20 01:18:12 +00:00
|
|
|
do_install () {
|
|
|
|
cd ${S}/tools
|
|
|
|
oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
|
|
|
|
SYSTEMDUNITDIR="${systemd_unitdir}" \
|
|
|
|
WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
|
|
|
|
WITH_BASHCOMPLETION=yes \
|
|
|
|
WITH_WGQUICK=yes \
|
|
|
|
install
|
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN} = " \
|
|
|
|
${sysconfdir} \
|
|
|
|
${systemd_unitdir} \
|
|
|
|
${bindir} \
|
|
|
|
"
|
|
|
|
|
|
|
|
RDEPENDS_${PN} = "bash"
|