SHARE
TWEET

networkmanager-iwd 1.20.4-1

a guest Oct 28th, 2019 156 in 16 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
  2. # Maintainer: Jan de Groot <jgc@archlinxu.org>
  3. # Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
  4. # Contributor: Tor Krill <tor@krill.nu>
  5. # Contributor: Will Rea <sillywilly@gmail.com>
  6. # Contributor: Valentine Sinitsyn <e_val@inbox.ru>
  7.  
  8. pkgbase=networkmanager-iwd
  9. pkgname=(networkmanager-iwd libnm-iwd)
  10. pkgver=1.20.4
  11. pkgrel=1
  12. pkgdesc="NM modified package to use exclusively iwd backend getting rid of wpa_supplicant dependency"
  13. url="https://wiki.gnome.org/Projects/NetworkManager"
  14. arch=(x86_64)
  15. license=(GPL2 LGPL2.1)
  16. _pppver=2.4.7
  17. makedepends=(intltool dhclient iptables gobject-introspection gtk-doc "ppp=$_pppver" modemmanager
  18.              iproute2 nss polkit wpa_supplicant curl systemd libmm-glib
  19.              libnewt libndp libteam vala perl-yaml python-gobject git jansson bluez-libs
  20.              glib2-docs dhcpcd iwd dnsmasq systemd-resolvconf libpsl audit meson)
  21. checkdepends=(libx11 python-dbus)
  22. _prefixver=1.20
  23. source=("https://download.gnome.org/sources/NetworkManager/$_prefixver/NetworkManager-$pkgver.tar.xz")
  24. sha256sums=("a3d738b7e702d9548b522a5781a5fb75ba69363f468c400ddd885ca65035914c")
  25.  
  26. #pkgver() {
  27. #  cd NetworkManager-$pkgver
  28. #  git describe | sed 's/-dev/dev/;s/-rc/rc/;s/-/+/g'
  29. #}
  30.  
  31. prepare() {
  32.   cd NetworkManager-$pkgver
  33. }
  34.  
  35. build() {
  36.   local meson_args=(
  37.     -D dbus_conf_dir=/usr/share/dbus-1/system.d
  38.     -D dist_version="$pkgver-$pkgrel"
  39.     -D session_tracking_consolekit=false
  40.     -D suspend_resume=systemd
  41.     -D modify_system=true
  42.     -D polkit_agent=true
  43.     -D selinux=false
  44.     -D iwd=true
  45.     -D pppd_plugin_dir=/usr/lib/pppd/$_pppver
  46.     -D teamdctl=true
  47.     -D bluez5_dun=true
  48.     -D ebpf=true
  49.     -D config_plugins_default=keyfile
  50.     -D vapi=true
  51.     -D docs=true
  52.     -D more_asserts=no
  53.     -D more_logging=false
  54.     -D qt=false
  55.   )
  56.  
  57.   arch-meson NetworkManager-$pkgver build "${meson_args[@]}"
  58.   ninja -C build
  59. }
  60.  
  61. check() {
  62.   # iproute2 bug
  63.   # https://gitlab.freedesktop.org/NetworkManager/NetworkManager/commit/be76d8b624fab99cbd76092ff511e6adc305279c
  64.   meson test -C build --print-errorlogs || :
  65. }
  66.  
  67. _pick() {
  68.   local p="$1" f d; shift
  69.   for f; do
  70.     d="$srcdir/$p/${f#$pkgdir/}"
  71.     mkdir -p "$(dirname "$d")"
  72.     mv "$f" "$d"
  73.     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
  74.   done
  75. }
  76.  
  77. package_networkmanager-iwd() {
  78.   depends=(libnm-iwd iproute2 polkit iwd libmm-glib libnewt libndp libteam curl
  79.            bluez-libs libpsl audit)
  80.   provides=("networkmanager")
  81.   conflicts=("networkmanager")
  82.   optdepends=('dnsmasq: connection sharing'
  83.               'bluez: Bluetooth support'
  84.               'ppp: dialup connection support'
  85.               'modemmanager: cellular network support')
  86.              
  87.   backup=(etc/NetworkManager/NetworkManager.conf)
  88.   groups=(gnome)
  89.   install="$pkgbase.install"
  90.   DESTDIR="$pkgdir" meson install -C build
  91.  
  92.   # /etc/NetworkManager
  93.   install -d "$pkgdir"/etc/NetworkManager/{conf,dnsmasq}.d
  94.   install -dm700 "$pkgdir/etc/NetworkManager/system-connections"
  95.   install -m644 /dev/stdin "$pkgdir/etc/NetworkManager/NetworkManager.conf" <<END
  96. # Configuration file for NetworkManager.
  97. # See "man 5 NetworkManager.conf" for details.
  98. END
  99.  
  100.   # packaged configuration
  101.   install -Dm644 /dev/stdin "$pkgdir/usr/lib/NetworkManager/conf.d/20-connectivity.conf" <<END
  102. [connectivity]
  103. uri=http://www.archlinux.org/check_network_status.txt
  104. END
  105.  
  106.   # iwd wifi backend
  107.   install -Dm644 /dev/stdin "$pkgdir/usr/lib/NetworkManager/conf.d/30-wifi-backend.conf" <<END
  108. [device]
  109. wifi.backend=iwd
  110. END
  111.  
  112.   # iwd.service overriding configuration
  113.   install -Dm644 /dev/stdin "$pkgdir/etc/systemd/system/iwd.service.d/90-networkmanager.conf" <<END
  114. [Unit]
  115. After=systemd-udevd.service
  116. Before=NetworkManager.service
  117. END
  118.  
  119. ### Split libnm
  120.   _pick libnm "$pkgdir"/usr/include/libnm
  121.   _pick libnm "$pkgdir"/usr/lib/girepository-1.0/NM-*
  122.   _pick libnm "$pkgdir"/usr/lib/libnm.*
  123.   _pick libnm "$pkgdir"/usr/lib/pkgconfig/libnm.pc
  124.   _pick libnm "$pkgdir"/usr/share/gir-1.0/NM-*
  125.   _pick libnm "$pkgdir"/usr/share/gtk-doc/html/libnm
  126.   _pick libnm "$pkgdir"/usr/share/vala/vapi/libnm.*
  127. }
  128.  
  129. package_libnm-iwd() {
  130.   pkgdesc="NetworkManager client library with iwd backend"
  131.   depends=(glib2 nss libutil-linux jansson systemd-libs)
  132.   provides=("libnm")
  133.   conflicts=("libnm")
  134.   mv libnm/* "$pkgdir"
  135. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top