mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
865411fbde
Condition the creation of some files and their consequences to a PACKAGECONFIG, which can be overridden outside the meta layer. It removes the sub package wireguard-tools-wg-quick as PACKAGECONFIG is supposed to work to configure a package only, and not deal with sub packages. Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
33 lines
888 B
BlitzBasic
33 lines
888 B
BlitzBasic
require wireguard.inc
|
|
|
|
SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8"
|
|
SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master"
|
|
|
|
inherit bash-completion systemd pkgconfig
|
|
|
|
DEPENDS += "libmnl"
|
|
|
|
do_install () {
|
|
oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
|
|
SYSTEMDUNITDIR="${systemd_system_unitdir}" \
|
|
WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
|
|
${PACKAGECONFIG_CONFARGS} \
|
|
install
|
|
}
|
|
|
|
PACKAGECONFIG ??= "bash-completion wg-quick"
|
|
|
|
PACKAGECONFIG[bash-completion] = "WITH_BASHCOMPLETION=yes,WITH_BASHCOMPLETION=no,,bash,,"
|
|
PACKAGECONFIG[wg-quick] = "WITH_WGQUICK=yes,WITH_WGQUICK=no,,bash,,"
|
|
|
|
FILES:${PN} = " \
|
|
${bindir}/wg \
|
|
${sysconfdir} \
|
|
${bindir}/wg-quick \
|
|
${systemd_system_unitdir} \
|
|
"
|
|
|
|
RRECOMMENDS:${PN} = " \
|
|
kernel-module-wireguard \
|
|
"
|