diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/networkmanager/networkmanager.xibuild | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/networkmanager/networkmanager.xibuild')
-rw-r--r-- | repo/networkmanager/networkmanager.xibuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/repo/networkmanager/networkmanager.xibuild b/repo/networkmanager/networkmanager.xibuild new file mode 100644 index 0000000..b1ef2da --- /dev/null +++ b/repo/networkmanager/networkmanager.xibuild @@ -0,0 +1,66 @@ +#!/bin/sh + +MAKEDEPS="grep meson ninja python intltool glib" +DEPS="libndp curl wpa_supplicant newt nss polkit libpsl dbus gobject-introspection dhcp eudev intltool modemmanager nspr mobile-broadband-provider-info python-gobject" + +PKG_VER=1.39.2 +SOURCE=https://download.gnome.org/sources/NetworkManager/${PKG_VER%.*}/NetworkManager-$PKG_VER.tar.xz + +ADDITIONAL=" +networkmanager.conf +networkmanager-dispatcher.initd +networkmanager.initd +networkmanager.rules +" + +DESC="Network connection manager and user applications" + +prepare () { + ggrep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/' + dbus-uuidgen --ensure +} + +build () { + mkdir build && + cd build && + meson \ + --prefix=/usr \ + -Dsystemdsystemunitdir=no \ + -Dudev_dir=/lib/udev \ + -Dmodify_system=true \ + -Dselinux=false \ + -Dsystemd_journal=false \ + -Dlibaudit=no \ + -Diwd=true \ + -Dppp=false \ + -Dconfig_plugins_default=ifupdown \ + -Difupdown=true \ + -Ddhcpcd=true \ + -Dconfig_dhcp_default=internal \ + -Dvapi=true \ + -Dtests="no" \ + -Dpolkit=true \ + -Dsession_tracking=no \ + -Dqt=false \ + -Dovs=false \ + -Dofono=true \ + -Dcrypto=nss \ + -Ddbus_conf_dir=/usr/share/dbus-1/system.d \ + -Ddocs=false \ + .. + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install && + mv $PKG_DEST/usr/share/doc/NetworkManager \ + $PKG_DEST/usr/share/doc/NetworkManager-$PKG_VER + + install -m644 -D networkmanager.rules \ + "$PKG_DEST/usr/share/polkit-1/rules.d/01-org.freedesktop.NetworkManager.settings.modify.system.rules" + + cd .. + install -m755 -D networkmanager.initd $PKG_DEST/etc/init.d/networkmanager + install -m755 -D networkmanager-dispatcher.initd $PKG_DEST/etc/init.d/networkmanager-dispatcher + install -m755 -D networkmanager.conf $PKG_DEST/etc/NetworkManager/NetworkManager.conf +} |