2019-01-15 17:02:49 +00:00
|
|
|
SUMMARY = "NetworkManager-openvpn-plugin"
|
|
|
|
SECTION = "net/misc"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
LICENSE = "GPL-2.0-or-later"
|
2019-01-15 17:02:49 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=100d5a599bead70ddcd70dcd73f2e29c"
|
|
|
|
|
|
|
|
DEPENDS = "dbus dbus-glib networkmanager openvpn intltool-native glib-2.0-native"
|
|
|
|
|
|
|
|
inherit gnomebase useradd gettext systemd
|
|
|
|
|
|
|
|
SRC_URI = "${GNOME_MIRROR}/NetworkManager-openvpn/${@gnome_verdir("${PV}")}/NetworkManager-openvpn-${PV}.tar.xz"
|
|
|
|
|
2022-11-15 17:25:32 +00:00
|
|
|
SRC_URI[sha256sum] = "5745d4107f3398a97afbb93f69239b510c9e45eb7fb62d60d9ed0a7297f4d101"
|
2019-01-15 17:02:49 +00:00
|
|
|
|
|
|
|
S = "${WORKDIR}/NetworkManager-openvpn-${PV}"
|
|
|
|
|
2021-05-05 12:45:55 +00:00
|
|
|
# meta-gnome in layers is required using gnome:
|
|
|
|
PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 libnma libsecret"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
do_configure:append() {
|
2021-05-05 12:45:55 +00:00
|
|
|
# network-manager-openvpn.metainfo.xml is created in source folder but
|
|
|
|
# compile expects it in build folder. As long as nobody comes up with a
|
|
|
|
# better solution just support build:
|
|
|
|
if [ -e ${S}/appdata/network-manager-openvpn.metainfo.xml ]; then
|
|
|
|
mkdir -p ${B}/appdata
|
|
|
|
cp -f ${S}/appdata/network-manager-openvpn.metainfo.xml ${B}/appdata/
|
|
|
|
fi
|
|
|
|
}
|
2019-01-15 17:02:49 +00:00
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
do_install:append () {
|
2019-01-15 17:02:49 +00:00
|
|
|
rm -rf ${D}${libdir}/NetworkManager/*.la
|
|
|
|
}
|
|
|
|
|
|
|
|
# Create user and group nm-openvpn that are needed since version 1.0.6
|
|
|
|
USERADD_PACKAGES = "${PN}"
|
2022-05-28 15:20:07 +00:00
|
|
|
USERADD_PARAM:${PN} = "--system nm-openvpn"
|
2019-01-15 17:02:49 +00:00
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
FILES:${PN} += " \
|
2021-05-05 12:45:55 +00:00
|
|
|
${datadir}/dbus-1 \
|
|
|
|
${datadir}/metainfo \
|
2019-01-15 17:02:49 +00:00
|
|
|
${libdir}/NetworkManager/*.so \
|
|
|
|
${nonarch_libdir}/NetworkManager/VPN/nm-openvpn-service.name \
|
|
|
|
"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
FILES:${PN}-staticdev += " \
|
2019-01-15 17:02:49 +00:00
|
|
|
${libdir}/NetworkManager/*.a \
|
|
|
|
"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
RDEPENDS:${PN} = " \
|
2019-01-15 17:02:49 +00:00
|
|
|
networkmanager \
|
|
|
|
openvpn \
|
|
|
|
"
|