summaryrefslogtreecommitdiff
path: root/repo/skip/networkmanager.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-17 21:57:57 +0000
committerdavidovski <david@davidovski.xyz>2022-01-17 21:57:57 +0000
commit93efc21a715ecbc4f2a0c1325488369697c2ff8d (patch)
tree8d88d816ffc527e3551e5e4d24c2ad3ceedd9d47 /repo/skip/networkmanager.xibuild
parentd838c9b643c21b1efc55aa8fb5e6b9ae8dc2c849 (diff)
added bootscripts
Diffstat (limited to 'repo/skip/networkmanager.xibuild')
-rw-r--r--repo/skip/networkmanager.xibuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/repo/skip/networkmanager.xibuild b/repo/skip/networkmanager.xibuild
new file mode 100644
index 0000000..d524935
--- /dev/null
+++ b/repo/skip/networkmanager.xibuild
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+DEPS=(jansson libndp curl wpa_supplicant newt nss polkit libpsl audit)
+
+PKG_VER=1.34
+SOURCE=https://download.gnome.org/sources/NetworkManager/$(echo $PKG_VER | cut -d. -f-2)/NetworkManager-$PKG_VER.tar.xz
+DESC="Network connection manager and user applications"
+
+prepare () {
+ grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'
+
+}
+
+build () {
+ mkdir build &&
+ cd build &&
+
+ CXXFLAGS+="-O2 -fPIC" \
+ meson --prefix=/usr \
+ --buildtype=release \
+ -Dlibaudit=no \
+ -Dlibpsl=false \
+ -Dnmtui=true \
+ -Dovs=false \
+ -Dppp=false \
+ -Dselinux=false \
+ -Dsession_tracking=elogind \
+ -Dmodem_manager=false \
+ -Dsystemdsystemunitdir=no \
+ -Dsystemd_journal=false \
+ -Dqt=false \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install &&
+ mv -v $PKG_DEST/usr/share/doc/NetworkManager{,-$PKG_VER}
+
+ # create minimum config file
+ cat >> $PKG_DEST/etc/NetworkManager/NetworkManager.conf << "EOF"
+[main]
+plugins=keyfile
+EOF
+ cat > $PKG_DEST/etc/NetworkManager/conf.d/polkit.conf << "EOF"
+[main]
+auth-polkit=true
+EOF
+
+# TODO add boot scripts
+}