Open djvdorp opened 5 years ago
So far I found out that it's buildable on Ubuntu 18.04 when installing this beforehand, however I want Debian (Stretch):
sudo apt install build-essential autoconf libglib2.0-dev libtool intltool gtk+-3.0 libnma-dev libsecret-1-dev network-manager libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev
And then:
./autogen.sh
make
Then:
sudo make sysconfdir=/etc libdir=/usr/lib install
Could be inspired by @morph027's:
https://gitlab.com/packaging/network-manager-wireguard/blob/master/.gitlab-ci.yml
Currently - for me on PureOS (Debian testing based) it's failing with a lot of missing dependencies:
Does Debian Buster have all these libs available in its repository?
@1989gironimo nope
E: Package 'libnm-util-dev' has no installation candidate
E: Package 'libnm-glib-dev' has no installation candidate
E: Package 'libnm-glib-vpn-dev' has no installation candidate
Network manager is 1.14 though
I found this commit message:
This removes libnm-glib, libnm-glib-vpn, and libnm-util for good. The it has been replaced with libnm since NetworkManager 1.0, disabled by default since 1.12 and no up-to-date distributions ship it for years now.
I guess Ubuntu is not an up-to-date distribution then ;) so since those three libs I mentioned in my last comment are not actually needed, because I assume the same dependencies are delivered by libnm-dev, what do we need to modify to make it work? I'm not good with this whole autoconf tool chain.
For the record, I can build and install it with ./configure --without-libnm-glib
, but then I don't see the Wireguard option in NM. (I also don't know what I'm doing at this point.)
(Edit: After reading #3, I can see it now, but I'm missing a dialog, because libnm-vpn-plugin-wireguard-editor.so
is missing...)
Okay, I figured it out. Summary to build nm-wireguard for Debian Buster/sid:
sudo apt install build-essential autoconf libglib2.0-dev libtool intltool gtk+-3.0 libnma-dev libsecret-1-dev network-manager libnm-dev
./autogen.sh --without-libnm-glib
make
sudo make libdir=/usr/lib/x86_64-linux-gnu install
sudo cp /usr/local/lib/NetworkManager/VPN/nm-wireguard-service.name /usr/lib/NetworkManager/VPN/
sudo cp /usr/lib/x86_64-linux-gnu/NetworkManager/libnm-vpn-plugin-wireguard-editor.* /usr/local/lib/NetworkManager
Hello.
sudo apt install build-essential autoconf libglib2.0-dev libtool intltool gtk+-3.0 libnma-dev libsecret-1-dev network-manager libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
E: Невозможно найти пакет gtk+-3.0
E: Не удалось найти ни один пакет с помощью шаблона «gtk+-3.0»
E: Невозможно найти пакет libnm-util-dev
E: Невозможно найти пакет libnm-glib-dev
E: Невозможно найти пакет libnm-glib-vpn-dev
Would be very useful! :smile:
28