mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-29 23:31:11 +00:00
wireguard-tools: Use PACKAGECONFIG to select wg-quick and bash-completion
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>
This commit is contained in:
parent
9281dbcc21
commit
865411fbde
@ -11,24 +11,22 @@ do_install () {
|
|||||||
oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
|
oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
|
||||||
SYSTEMDUNITDIR="${systemd_system_unitdir}" \
|
SYSTEMDUNITDIR="${systemd_system_unitdir}" \
|
||||||
WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
|
WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
|
||||||
WITH_BASHCOMPLETION=yes \
|
${PACKAGECONFIG_CONFARGS} \
|
||||||
WITH_WGQUICK=yes \
|
|
||||||
install
|
install
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGES += "${PN}-wg-quick"
|
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} = " \
|
FILES:${PN} = " \
|
||||||
${bindir}/wg \
|
${bindir}/wg \
|
||||||
${sysconfdir} \
|
${sysconfdir} \
|
||||||
"
|
|
||||||
FILES:${PN}-wg-quick = " \
|
|
||||||
${bindir}/wg-quick \
|
${bindir}/wg-quick \
|
||||||
${systemd_system_unitdir} \
|
${systemd_system_unitdir} \
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS:${PN}-wg-quick = "${PN} bash"
|
|
||||||
RRECOMMENDS:${PN} = " \
|
RRECOMMENDS:${PN} = " \
|
||||||
kernel-module-wireguard \
|
kernel-module-wireguard \
|
||||||
${PN}-wg-quick \
|
|
||||||
"
|
"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user