<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ This project is a VPN Plugin for NetworkManager that handles client-side WireGuard connections.
+ It is based on the OpenVPN Plugin and was started as a Bachelor's Thesis at SBA Research.
+ </longdescription>
+ <use>
+ <flag name="glib">Enable libnm-glib compatibility.</flag>
+ </use>
</pkgmetadata>
--- /dev/null
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+EGIT_COMMIT="61646ade26750c52626a44b025cb1b165681c662"
+MY_PN="${PN/network/network-}"
+
+DESCRIPTION="NetworkManager WireGuard plugin"
+HOMEPAGE="https://github.com/max-moser/network-manager-wireguard"
+SRC_URI="https://github.com/max-moser/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+glib +gtk +nls"
+
+RDEPEND="
+ net-misc/networkmanager
+ net-vpn/wireguard
+ glib? ( dev-libs/glib )
+ gtk? (
+ app-crypt/libsecret
+ gnome-extra/nm-applet
+ x11-libs/gtk+:3
+ )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ sys-devel/gettext
+ )
+"
+
+S="${WORKDIR}/${MY_PN}-${EGIT_COMMIT}"
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-lto
+ --disable-more-warnings
+ --disable-static
+ $(use_with glib libnm-glib)
+ $(use_with gtk gnome)
+ $(use_enable nls)
+ --with-dist-version="Gentoo"
+ )
+
+ econf "${myeconfargs[@]}"
+}