networkmanager: 1.8.0 -> 1.20.0

This commit is contained in:
Tim Biermann 2019-08-07 23:02:07 +00:00
parent e36c2980b1
commit ef160784c4
Signed by: tb
GPG Key ID: 42F8B4E30B673606
7 changed files with 142 additions and 93 deletions

View File

@ -2,6 +2,8 @@ drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/NetworkManager/
-rw-r--r-- root/root etc/NetworkManager/NetworkManager.conf
drwxr-xr-x root/root etc/NetworkManager/conf.d/
-rw-r--r-- root/root etc/NetworkManager/conf.d/dhcp.conf
-rw-r--r-- root/root etc/NetworkManager/conf.d/polkit.conf
drwxr-xr-x root/root etc/NetworkManager/dispatcher.d/
drwxr-xr-x root/root etc/NetworkManager/dispatcher.d/no-wait.d/
drwxr-xr-x root/root etc/NetworkManager/dispatcher.d/pre-down.d/
@ -9,10 +11,6 @@ drwxr-xr-x root/root etc/NetworkManager/dispatcher.d/pre-up.d/
drwxr-xr-x root/root etc/NetworkManager/dnsmasq-shared.d/
drwxr-xr-x root/root etc/NetworkManager/dnsmasq.d/
drwxr-xr-x root/root etc/NetworkManager/system-connections/
drwxr-xr-x root/root etc/dbus-1/
drwxr-xr-x root/root etc/dbus-1/system.d/
-rw-r--r-- root/root etc/dbus-1/system.d/nm-dispatcher.conf
-rw-r--r-- root/root etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/networkmanager
drwxr-xr-x root/root lib/
@ -20,6 +18,7 @@ drwxr-xr-x root/root lib/udev/
drwxr-xr-x root/root lib/udev/rules.d/
-rw-r--r-- root/root lib/udev/rules.d/84-nm-drivers.rules
-rw-r--r-- root/root lib/udev/rules.d/85-nm-unmanaged.rules
-rw-r--r-- root/root lib/udev/rules.d/90-nm-thunderbolt.rules
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/nm-online
@ -33,11 +32,14 @@ drwxr-xr-x root/root usr/include/libnm/
-rw-r--r-- root/root usr/include/libnm/NetworkManager.h
-rw-r--r-- root/root usr/include/libnm/nm-access-point.h
-rw-r--r-- root/root usr/include/libnm/nm-active-connection.h
-rw-r--r-- root/root usr/include/libnm/nm-autoptr.h
-rw-r--r-- root/root usr/include/libnm/nm-checkpoint.h
-rw-r--r-- root/root usr/include/libnm/nm-client.h
-rw-r--r-- root/root usr/include/libnm/nm-connection.h
-rw-r--r-- root/root usr/include/libnm/nm-core-enum-types.h
-rw-r--r-- root/root usr/include/libnm/nm-core-types.h
-rw-r--r-- root/root usr/include/libnm/nm-dbus-interface.h
-rw-r--r-- root/root usr/include/libnm/nm-device-6lowpan.h
-rw-r--r-- root/root usr/include/libnm/nm-device-adsl.h
-rw-r--r-- root/root usr/include/libnm/nm-device-bond.h
-rw-r--r-- root/root usr/include/libnm/nm-device-bridge.h
@ -51,12 +53,19 @@ drwxr-xr-x root/root usr/include/libnm/
-rw-r--r-- root/root usr/include/libnm/nm-device-macvlan.h
-rw-r--r-- root/root usr/include/libnm/nm-device-modem.h
-rw-r--r-- root/root usr/include/libnm/nm-device-olpc-mesh.h
-rw-r--r-- root/root usr/include/libnm/nm-device-ovs-bridge.h
-rw-r--r-- root/root usr/include/libnm/nm-device-ovs-interface.h
-rw-r--r-- root/root usr/include/libnm/nm-device-ovs-port.h
-rw-r--r-- root/root usr/include/libnm/nm-device-ppp.h
-rw-r--r-- root/root usr/include/libnm/nm-device-team.h
-rw-r--r-- root/root usr/include/libnm/nm-device-tun.h
-rw-r--r-- root/root usr/include/libnm/nm-device-vlan.h
-rw-r--r-- root/root usr/include/libnm/nm-device-vxlan.h
-rw-r--r-- root/root usr/include/libnm/nm-device-wifi-p2p.h
-rw-r--r-- root/root usr/include/libnm/nm-device-wifi.h
-rw-r--r-- root/root usr/include/libnm/nm-device-wimax.h
-rw-r--r-- root/root usr/include/libnm/nm-device-wireguard.h
-rw-r--r-- root/root usr/include/libnm/nm-device-wpan.h
-rw-r--r-- root/root usr/include/libnm/nm-device.h
-rw-r--r-- root/root usr/include/libnm/nm-dhcp-config.h
-rw-r--r-- root/root usr/include/libnm/nm-enum-types.h
@ -65,6 +74,7 @@ drwxr-xr-x root/root usr/include/libnm/
-rw-r--r-- root/root usr/include/libnm/nm-object.h
-rw-r--r-- root/root usr/include/libnm/nm-remote-connection.h
-rw-r--r-- root/root usr/include/libnm/nm-secret-agent-old.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-6lowpan.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-8021x.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-adsl.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-bluetooth.h
@ -75,6 +85,7 @@ drwxr-xr-x root/root usr/include/libnm/
-rw-r--r-- root/root usr/include/libnm/nm-setting-connection.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-dcb.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-dummy.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-ethtool.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-generic.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-gsm.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-infiniband.h
@ -84,11 +95,19 @@ drwxr-xr-x root/root usr/include/libnm/
-rw-r--r-- root/root usr/include/libnm/nm-setting-ip6-config.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-macsec.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-macvlan.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-match.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-olpc-mesh.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-ovs-bridge.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-ovs-dpdk.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-ovs-interface.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-ovs-patch.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-ovs-port.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-ppp.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-pppoe.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-proxy.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-serial.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-sriov.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-tc-config.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-team-port.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-team.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-tun.h
@ -96,10 +115,13 @@ drwxr-xr-x root/root usr/include/libnm/
-rw-r--r-- root/root usr/include/libnm/nm-setting-vlan.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-vpn.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-vxlan.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-wifi-p2p.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-wimax.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-wired.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-wireguard.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-wireless-security.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-wireless.h
-rw-r--r-- root/root usr/include/libnm/nm-setting-wpan.h
-rw-r--r-- root/root usr/include/libnm/nm-setting.h
-rw-r--r-- root/root usr/include/libnm/nm-simple-connection.h
-rw-r--r-- root/root usr/include/libnm/nm-types.h
@ -113,19 +135,24 @@ drwxr-xr-x root/root usr/include/libnm/
-rw-r--r-- root/root usr/include/libnm/nm-vpn-plugin-info.h
-rw-r--r-- root/root usr/include/libnm/nm-vpn-plugin-old.h
-rw-r--r-- root/root usr/include/libnm/nm-vpn-service-plugin.h
-rw-r--r-- root/root usr/include/libnm/nm-wifi-p2p-peer.h
-rw-r--r-- root/root usr/include/libnm/nm-wimax-nsp.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/NetworkManager/
drwxr-xr-x root/root usr/lib/NetworkManager/1.20.0/
-rwxr-xr-x root/root usr/lib/NetworkManager/1.20.0/libnm-device-plugin-adsl.so
-rwxr-xr-x root/root usr/lib/NetworkManager/1.20.0/libnm-device-plugin-wifi.so
-rwxr-xr-x root/root usr/lib/NetworkManager/1.20.0/libnm-settings-plugin-ifupdown.so
drwxr-xr-x root/root usr/lib/NetworkManager/VPN/
drwxr-xr-x root/root usr/lib/NetworkManager/conf.d/
-rwxr-xr-x root/root usr/lib/NetworkManager/libnm-device-plugin-adsl.la
-rwxr-xr-x root/root usr/lib/NetworkManager/libnm-device-plugin-adsl.so
-rwxr-xr-x root/root usr/lib/NetworkManager/libnm-device-plugin-wifi.la
-rwxr-xr-x root/root usr/lib/NetworkManager/libnm-device-plugin-wifi.so
-rwxr-xr-x root/root usr/lib/NetworkManager/libnm-settings-plugin-ibft.la
-rwxr-xr-x root/root usr/lib/NetworkManager/libnm-settings-plugin-ibft.so
-rwxr-xr-x root/root usr/lib/libnm.la
lrwxrwxrwx root/root usr/lib/libnm.so -> libnm.so.0.1.0
drwxr-xr-x root/root usr/lib/NetworkManager/dispatcher.d/
drwxr-xr-x root/root usr/lib/NetworkManager/dispatcher.d/no-wait.d/
drwxr-xr-x root/root usr/lib/NetworkManager/dispatcher.d/pre-down.d/
drwxr-xr-x root/root usr/lib/NetworkManager/dispatcher.d/pre-up.d/
drwxr-xr-x root/root usr/lib/NetworkManager/system-connections/
drwxr-xr-x root/root usr/lib/girepository-1.0/
-rw-r--r-- root/root usr/lib/girepository-1.0/NM-1.0.typelib
lrwxrwxrwx root/root usr/lib/libnm.so -> libnm.so.0
lrwxrwxrwx root/root usr/lib/libnm.so.0 -> libnm.so.0.1.0
-rwxr-xr-x root/root usr/lib/libnm.so.0.1.0
drwxr-xr-x root/root usr/lib/networkmanager/
@ -133,7 +160,6 @@ drwxr-xr-x root/root usr/lib/networkmanager/
-rwxr-xr-x root/root usr/lib/networkmanager/nm-dispatcher
-rwxr-xr-x root/root usr/lib/networkmanager/nm-iface-helper
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/NetworkManager.pc
-rw-r--r-- root/root usr/lib/pkgconfig/libnm.pc
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/NetworkManager
@ -154,10 +180,15 @@ drwxr-xr-x root/root usr/share/dbus-1/interfaces/
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Generic.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.IPTunnel.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Infiniband.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Lowpan.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Macsec.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Macvlan.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Modem.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.OlpcMesh.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.OvsBridge.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.OvsInterface.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.OvsPort.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Ppp.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Statistics.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Team.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Tun.xml
@ -165,8 +196,11 @@ drwxr-xr-x root/root usr/share/dbus-1/interfaces/
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Vlan.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Vxlan.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.WiMax.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.WifiP2P.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.WireGuard.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Wired.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Wireless.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.Wpan.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.Device.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.DnsManager.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.IP4Config.xml
@ -178,30 +212,20 @@ drwxr-xr-x root/root usr/share/dbus-1/interfaces/
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.VPN.Connection.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.VPN.Plugin.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.WiMax.Nsp.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.WifiP2PPeer.xml
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.NetworkManager.xml
drwxr-xr-x root/root usr/share/dbus-1/system-services/
-rw-r--r-- root/root usr/share/dbus-1/system-services/org.freedesktop.nm_dispatcher.service
drwxr-xr-x root/root usr/share/dbus-1/system.d/
-rw-r--r-- root/root usr/share/dbus-1/system.d/nm-dispatcher.conf
-rw-r--r-- root/root usr/share/dbus-1/system.d/org.freedesktop.NetworkManager.conf
drwxr-xr-x root/root usr/share/gir-1.0/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/nm-online.1.gz
-rw-r--r-- root/root usr/share/man/man1/nmcli.1.gz
-rw-r--r-- root/root usr/share/man/man1/nmtui-connect.1
-rw-r--r-- root/root usr/share/man/man1/nmtui-edit.1
-rw-r--r-- root/root usr/share/man/man1/nmtui-hostname.1
-rw-r--r-- root/root usr/share/man/man1/nmtui.1
drwxr-xr-x root/root usr/share/man/man5/
-rw-r--r-- root/root usr/share/man/man5/NetworkManager.conf.5
-rw-r--r-- root/root usr/share/man/man5/nm-settings-keyfile.5.gz
-rw-r--r-- root/root usr/share/man/man5/nm-settings.5.gz
-rw-r--r-- root/root usr/share/man/man5/nm-system-settings.conf.5
drwxr-xr-x root/root usr/share/man/man7/
-rw-r--r-- root/root usr/share/man/man7/nmcli-examples.7.gz
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/NetworkManager.8.gz
-rw-r--r-- root/root usr/share/gir-1.0/NM-1.0.gir
drwxr-xr-x root/root usr/share/polkit-1/
drwxr-xr-x root/root usr/share/polkit-1/actions/
-rw-r--r-- root/root usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
drwxr-xr-x root/root usr/share/polkit-1/rules.d/
-rw-r--r-- root/root usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwx------ root/root var/lib/NetworkManager/

View File

@ -1,7 +1,10 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF314ZkbFZYyaqx7G4R6fiKOa9el1ldE4QtYLIPgUqiSDd5vazNODOxWO5EmEgSeDIXaPFUUDU55dYh/YsWM/NPQM=
SHA256 (Pkgfile) = 4a92528f392f2ecd5b9d7776e7970e58decd8cfb8acd9d9206aa85fc66ecc77a
SHA256 (.footprint) = e0cd5e8dae2f8337c638c3cac2ae428fed43648d470c42735521bedcca048cf6
SHA256 (NetworkManager-1.8.0.tar.xz) = fa5a5c6a36cdf95b12df34cc575bd61a74f297ede9be22cac4807a1aff3cf69e
RWSagIOpLGJF3/3KdHx9OljI6FaOVu9LNR6Y51nQziND4KN5MV7Ap6zv07h025MfqySjjL37homFY4XWkGQbeYz5C/WuOTNx8Q4=
SHA256 (Pkgfile) = c3cb605eb62eb37339c7c21f14dd778bd48ff0d272a038d228f0ea72283068a9
SHA256 (.footprint) = 05813939654c7899b7794fb178bf96f28a2e3a8c87404953d31d79a630cab713
SHA256 (NetworkManager-1.20.0.tar.xz) = b7e605055491ea8ef433bc149d55349111b9c789ad1cd0578f19ece39b1ac7c4
SHA256 (networkmanager.rc) = dc0b743685214c0402d392a6a9b2632b19714795a04c0f42ba10026250d9f3fc
SHA256 (NetworkManager.conf) = b854c04d516f832d93416fd4150d30bb0188e1125c431fddbc6b8a84ba53f8d1
SHA256 (NetworkManager.conf) = 44b048804c7c0b8b3b0c29b8632b6ad613c397d0a1635ec918e10c0fbcdadf21
SHA256 (polkit.conf) = 7410be567871e4dc8ef1e8204f80b7cfd0dd08abfa514408b7d549bdc70dbaba
SHA256 (dhcp.conf) = cd2a4b0079c0726973c1cf226c4e1cb4f2d27d02c16e0e08af7e4d6b8770423c
SHA256 (org.freedesktop.NetworkManager.rules) = 7708da5de800684eb7036f29534ac6f3004115695428484e09b712da5bb1e8a5

View File

@ -1,10 +1,2 @@
[main]
plugins=keyfile
dhcp=dhcpcd
[keyfile]
# hostname=
[logging]
level=INFO
domains=ALL

View File

@ -1,67 +1,88 @@
# Description: Network configuration tool
# URL: http://www.gnome.org/projects/NetworkManager/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: intltool dbus-glib libnl nss libndp p5-xml-parser openresolv dhcpcd polkit upower
# Optional: ppp avahi bash-completion dbus libnl jansson libteam dnsmasq
# URL: https://wiki.gnome.org/Projects/NetworkManager/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: curl dbus libndp libnewt libxslt nss polkit python-gobject
# Optional: ppp avahi bash-completion dbus libnl jansson libteam dnsmasq
name=networkmanager
version=1.8.0
release=2
version=1.20.0
release=1
source=(
http://ftp.gnome.org/pub/gnome/sources/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz
https://ftp.gnome.org/pub/gnome/sources/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz
networkmanager.rc
NetworkManager.conf
polkit.conf
dhcp.conf
org.freedesktop.NetworkManager.rules
)
build() {
cd NetworkManager-$version
cd NetworkManager-$version
CONFIG_SHELL=/bin/bash \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--with-udev-dir=/lib/udev \
--with-systemdsystemunitdir=no \
--disable-nls \
--disable-static \
--enable-polkit \
--enable-wifi \
--enable-tests=no \
--enable-gtk-doc=no \
--enable-gtk-doc-html=no \
--enable-introspection=no \
--with-suspend-resume=upower \
--with-dhcpcd=/sbin/dhcpcd \
--with-resolvconf=/usr/sbin/resolvconf \
--with-iptables=/usr/sbin/iptables \
--with-crypto=nss \
--enable-more-warnings=no \
--enable-modify-system \
--with-session-tracking=consolekit \
--with-suspend-resume=upower \
--without-libnm-glib \
--$(test -f /usr/include/pppd/pppd.h && echo enable || echo disable)-ppp
sed '/initrd/d' -i src/meson.build
make
make DESTDIR=$PKG install
mkdir build
cd build
# Fix the CRUX oddity
#mkdir $PKG/usr/etc
#mv $PKG/etc/dbus-1 $PKG/usr/etc
CXXFLAGS+="-O2 -fPIC" \
meson --prefix /usr \
--sysconfdir /etc \
--localstatedir /var \
--libexecdir /usr/lib/networkmanager \
-Ddbus_conf_dir=/usr/share/dbus-1/system.d \
-Dudev_dir=/lib/udev \
-Ddhcpcd=/sbin/dhcpcd \
-Dresolvconf=true \
-Dconfig_dns_rc_manager_default=resolvconf \
-Dcrypto=nss \
-Dintrospection=true \
-Dsession_tracking_consolekit=true \
-Dwifi=true \
-Dwext=true \
-Dpolkit=true \
-Dpolkit_agent=true \
-Dmodify_system=true \
-Difupdown=true \
-Dnmtui=true \
-Dnmcli=true \
-Dlibnm_glib=false \
-Dsession_tracking=no \
-Db_lto=false \
-Dlibaudit=no \
-Dlibpsl=false \
-Dppp=false \
-Dofono=false \
-Dselinux=false \
-Djson_validation=false \
-Dovs=false \
-Dmodem_manager=false \
-Dsystemdsystemunitdir=no \
-Dsystemd_journal=false \
-Dqt=false \
-Ddocs=false \
-Dtests=no \
-Dmore_logging=false \
-Dmore_asserts=0 \
-Dlibpsl=false \
..
# Install config file
install -D -m 644 -o root -g root $SRC/NetworkManager.conf $PKG/etc/NetworkManager/NetworkManager.conf
ninja
DESTDIR=$PKG ninja install
# Install startup script
install -D -m 755 -o root -g root $SRC/$name.rc $PKG/etc/rc.d/$name
# Install config file
install -Dm 644 $SRC/NetworkManager.conf $PKG/etc/NetworkManager/NetworkManager.conf
install -Dm 644 $SRC/dhcp.conf $PKG/etc/NetworkManager/conf.d/dhcp.conf
install -Dm 644 $SRC/polkit.conf $PKG/etc/NetworkManager/conf.d/polkit.conf
# Remove rundir
rm -rf $PKG/var/run $PKG/usr/share/{gtk-,}doc $PKG/usr/share/man/man5/nmcli-examples.5
# Install startup script
install -Dm 755 $SRC/$name.rc $PKG/etc/rc.d/$name
# Remove bash-completion config unless it's installed
if [ ! -f /usr/lib/pkgconfig/bash-completion.pc ]; then
rm -rf $PKG/usr/share/bash-completion
fi
# Remove rundir etc
rm -rf $PKG/var/run $PKG/usr/share/{gtk-,}doc $PKG/usr/share/man/man5/nmcli-examples.5 $PKG/usr/share/locale $PKG/usr/share/bash-completion
# install polkit rules
install -Dm 644 $SRC/org.freedesktop.NetworkManager.rules $PKG/usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules
# Remove bash-completion config
rm -rf $PKG/usr/share/bash-completion
}

2
networkmanager/dhcp.conf Normal file
View File

@ -0,0 +1,2 @@
[main]
dhcp=dhcpcd

View File

@ -0,0 +1,5 @@
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});

View File

@ -0,0 +1,2 @@
[main]
auth-polkit=true